/* ─── Heritage / discontinued product pages ────────────────────────────
   Shared by mini, wine, comics, soho, scanabout-pro. Each product sets
   --heritage-accent inline to color its eyebrow, press quote, headings,
   highlight underline, and today-CTA accents. The rest of the page is
   intentionally restrained so the product hero photo and the original
   prose carry the page.

   Highlights: the original site decorated key phrases with classes like
   `highlight`, `blueHighlight`, `chrHighlight`. Our data file carries
   them forward as `<mark>` tags and we style them here — soft cream
   background washed in the product accent, with a tinted underline.
   ──────────────────────────────────────────────────────────────────── */

.discontinued-product {
    max-width: 960px;
    margin: var(--wa-space-l) auto var(--wa-space-2xl);
    padding: 0 var(--wa-space-l);
}

/* ─── Banner ──────────────────────────────────────────────────────── */

.discontinued-banner {
    margin-bottom: var(--wa-space-2xl);
}

.discontinued-banner-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wa-space-m);
    align-items: center;
    justify-content: space-between;
}

.discontinued-banner-row > div {
    flex: 1 1 320px;
}

.discontinued-era,
.discontinued-blurb {
    color: var(--wa-color-text-quiet);
    margin-left: var(--wa-space-2xs);
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.heritage-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--wa-space-2xl);
    align-items: center;
    margin-bottom: var(--wa-space-2xl);
}

@media (max-width: 720px) {
    .heritage-hero {
        grid-template-columns: 1fr;
    }
}

.heritage-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--wa-font-size-2xs);
    color: var(--heritage-accent);
    margin: 0 0 var(--wa-space-s);
    font-weight: 700;
}

.heritage-hero-text h1 {
    font-family: var(--wa-font-family-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 var(--wa-space-m);
}

.heritage-tagline {
    font-size: var(--wa-font-size-l);
    color: var(--wa-color-text-quiet);
    margin: 0 0 var(--wa-space-m);
    line-height: 1.4;
}

.heritage-press-quote {
    border-left: 3px solid var(--heritage-accent);
    margin: var(--wa-space-l) 0 0;
    padding: var(--wa-space-s) 0 var(--wa-space-s) var(--wa-space-m);
    font-style: italic;
}

.heritage-press-quote p {
    margin: 0;
    font-size: var(--wa-font-size-m);
    line-height: 1.5;
}

.heritage-press-quote cite {
    display: block;
    margin-top: var(--wa-space-xs);
    font-style: normal;
    font-size: var(--wa-font-size-s);
    color: var(--wa-color-text-quiet);
}

.heritage-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--wa-border-radius-l);
    display: block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
}

/* ─── Tab nav (matches existing per-slug pages) ───────────────────── */

.product-tab-nav.heritage-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wa-space-s);
    border-bottom: 1px solid var(--wa-color-surface-border);
    margin-bottom: var(--wa-space-xl);
}

.heritage-tab-nav .product-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--wa-space-2xs);
    padding: var(--wa-space-s) var(--wa-space-m);
    text-decoration: none;
    color: var(--wa-color-text-quiet);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 120ms ease, border-color 120ms ease;
}

.heritage-tab-nav .product-tab:hover { color: var(--wa-color-text-normal); }

.heritage-tab-nav .product-tab.is-active {
    color: var(--heritage-accent);
    border-bottom-color: var(--heritage-accent);
}

/* ─── Prose tab content ──────────────────────────────────────────── */

.heritage-prose {
    line-height: 1.6;
    font-size: var(--wa-font-size-m);
}

.heritage-prose h2 {
    font-family: var(--wa-font-family-heading);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.3;
    margin: var(--wa-space-xl) 0 var(--wa-space-s);
    color: var(--heritage-accent);
}

.heritage-prose p,
.heritage-prose li {
    line-height: 1.6;
}

.heritage-prose p {
    margin: 0 0 var(--wa-space-m);
}

.heritage-prose ul {
    margin: var(--wa-space-s) 0 var(--wa-space-m) var(--wa-space-l);
    padding: 0;
}

.heritage-prose li {
    margin-bottom: var(--wa-space-xs);
}

/* ─── Highlight markers <mark> ───────────────────────────────────── */
/* The original site decorated key phrases with `highlight`, `blueHighlight`,
   `chrHighlight`. We carry those forward as `<mark>` and style with a
   soft, integrated wash — same text color as the body, just a subtle
   tinted background that reads as gentle emphasis. No underline, no
   color shift; the highlight should feel "in line" with the prose. */
.heritage-prose mark {
    background: color-mix(in srgb, var(--heritage-accent) 11%, transparent);
    color: inherit;
    padding: 0.04em 0.12em;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Dark mode: brighten the wash so the highlight stays legible. */
@media (prefers-color-scheme: dark) {
    .heritage-prose mark {
        background: color-mix(in srgb, var(--heritage-accent) 22%, transparent);
    }
}

/* ─── Click-to-zoom anchor ───────────────────────────────────────── */

.zoom-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--wa-border-radius-m);
    cursor: zoom-in;
    line-height: 0;
}

.zoom-link img {
    transition: transform 220ms ease, filter 220ms ease;
}

.zoom-link:hover img {
    transform: scale(1.015);
}

.zoom-link-icon {
    position: absolute;
    bottom: var(--wa-space-s);
    right: var(--wa-space-s);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.zoom-link:hover .zoom-link-icon,
.zoom-link:focus-visible .zoom-link-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Hero variant — keep the rounded-corner shadow on the anchor itself
   so it visually wraps the image cleanly. */
.heritage-hero-art .zoom-link {
    border-radius: var(--wa-border-radius-l);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
}

.heritage-hero-art .heritage-hero-img {
    box-shadow: none; /* shadow lives on the anchor now */
}

/* ─── Photos gallery ─────────────────────────────────────────────── */

.heritage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--wa-space-m);
}

.heritage-gallery figure {
    margin: 0;
    background: var(--wa-color-surface-raised);
    border: 1px solid var(--wa-color-surface-border);
    border-radius: var(--wa-border-radius-m);
    overflow: hidden;
}

.heritage-gallery figure .zoom-link {
    border-radius: 0; /* figure provides the corner */
}

.heritage-gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.heritage-gallery figcaption {
    padding: var(--wa-space-s) var(--wa-space-m);
    font-size: var(--wa-font-size-s);
    color: var(--wa-color-text-quiet);
    line-height: 1.4;
}

/* ─── Closing "what we make today" ───────────────────────────────── */
/* Full border in the accent color (the user prefers an all-around
   frame to a single left bar). The body sits on a faint accent wash
   so the block reads as a callout, not just a bordered box. */

.heritage-today {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wa-space-l);
    align-items: center;
    justify-content: space-between;
    padding: var(--wa-space-l);
    margin: var(--wa-space-2xl) 0 var(--wa-space-l);
    background: color-mix(in srgb, var(--heritage-accent) 5%, var(--wa-color-surface-default));
    border: 1.5px solid var(--heritage-accent);
    border-radius: var(--wa-border-radius-l);
}

.heritage-today-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--wa-font-size-2xs);
    color: var(--heritage-accent);
    margin: 0 0 var(--wa-space-2xs);
    font-weight: 700;
}

.heritage-today-blurb {
    margin: 0;
    font-size: var(--wa-font-size-m);
    line-height: 1.5;
}

/* ─── Archives section on /products grid ─────────────────────────── */

.archives-products .tile-link {
    /* Sepia veil over the heritage tile photo so it reads "old". */
    --archives-veil: 0.18;
}

/* Cap art height so portrait shots (mini, SOHO) don't stretch their tiles
   to twice the height of landscape shots (wine, comics). object-fit:contain
   keeps the whole photo visible — the box just stops growing. */
.archives-products .tile-art {
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: 220px;
    overflow: hidden;
}

.archives-products .tile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(var(--archives-veil)) saturate(0.85);
    transition: filter 200ms ease;
}

.archives-products .tile-link:hover .tile-photo {
    filter: sepia(0) saturate(1);
}

.archives-products .tile-top .price-italic {
    font-size: var(--wa-font-size-s);
    letter-spacing: 0.05em;
}
