/* Round 3, look "opus" (Opus Lily): the Cabernet Franc 2020 label. A white lily on an ochre-and-orange wash, CAB
   FRANC cut around it in heavy black block letters, teal leaves at its foot. The palette is sampled from the print
   file: the label's cream, ochre and orange, its warm black, the leaves' teal (taken darker for text) and the
   stamens' rust. Big Shoulders Display (OFL), tall and condensed like the cut letters, for headings in capitals;
   the core's Schibsted Grotesk for text. Square corners and hard offset shadows, like a block print; the art sits in
   a black frame on the ochre. Art: assets/img/labels/opus-cabfranc.webp (scripts/make-label-looks.py). */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../../assets/fonts/big-shoulders-display-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@layer themes {
  :root[data-look="opus"],
  [data-look="opus"] .nav,
  [data-look="opus"] .hero {
    --o-cream: #f8f5d5;
    --o-ochre: #f0c156;
    --o-orange: #eaa438;
    --o-ink: #312d2a;
    --o-ink-2: #46413c;
    --o-teal: #2ca1aa;
    --o-teal-ink: #1f6f75; /* the leaves' teal at text strength (5.3:1 on the cream) */
    --o-rust: #a14b36;
    --o-white: #ffffff;
    --color-background: var(--o-cream);
    --color-surface: var(--o-white);
    --color-surface-raised: var(--o-white);
    --color-text: var(--o-ink);
    --color-text-muted: #5e574f;
    --color-text-subtle: #5e574f;
    --color-border: color-mix(in oklab, var(--o-ink) 30%, var(--o-cream));
    --color-border-subtle: color-mix(in oklab, var(--o-ink) 15%, var(--o-cream));
    --color-border-strong: var(--o-ink);
    --accent: var(--o-rust);
    --accent-ink: var(--o-rust);
    --accent-fill: var(--o-ink);
    --accent-fill-hover: var(--o-rust);
    --on-accent: var(--o-cream);
    --on-accent-fill: var(--o-cream);
    --color-focus: var(--o-ink);
    --band-inverse: var(--o-ink);
  }
  [data-look="opus"] .nav { --nav-bg: var(--o-ink); --nav-ink: var(--o-cream); --color-text: var(--o-cream); --color-focus: var(--o-ochre); }
  :root[data-look="opus"] {
    --color-info: var(--o-teal-ink); /* the estimate notes ("About this estimate") in the look's colours */
    --color-info-subtle: color-mix(in oklab, var(--o-ochre) 22%, #ffffff);
    --font-heading: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
    --radius-control: 0.25rem;
    --radius-card: 0px;
    --wine-grid-row-gap: var(--space-xl);
  }
  [data-look="opus"] [data-look-art~="opus"] { display: block; }
  [data-look="opus"] body { background: var(--o-cream); color: var(--o-ink); }
  [data-look="opus"] :is(h1, h2, h3, .hero__headline) {
    font-family: var(--font-heading); font-weight: 850; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.98; text-wrap: balance;
  }
  [data-look="opus"] .eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--o-teal-ink); }
  [data-look="opus"] main a:not(.button, .nav__link, .nav__brand, .nav__cta, .wine-card__link) { color: var(--o-rust); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
  [data-look="opus"] :focus-visible { outline: 3px solid var(--o-ink); outline-offset: 3px; }
  [data-look="opus"] .nav :focus-visible { outline-color: var(--o-ochre); }

  /* Nav: a black bar, the name in tall capitals; the page you are on underlined in ochre. */
  /* Full-bleed bar by border-image, not box-shadow + clip-path: the clip-path also clipped the look picker's list to
     the bar's height, so it opened behind the hero (Neil, 2026-11-23). border-image outset paints but never scrolls. */
  [data-look="opus"] .nav { background: var(--o-ink); color: var(--o-cream); border: 0; border-image: linear-gradient(var(--o-ink) 0 0) fill 0 / 0 / 0 100vmax; }
  [data-look="opus"] .nav__brand {
    font-family: var(--font-heading); font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--step-1);
    color: var(--o-ochre); flex-shrink: 1; min-inline-size: 0; line-height: 1;
  }
  [data-look="opus"] .nav__link { color: var(--o-cream); font-weight: 600; letter-spacing: 0.02em; }
  [data-look="opus"] .nav__link[aria-current] { text-decoration: underline; text-decoration-color: var(--o-ochre); text-decoration-thickness: 3px; text-underline-offset: 0.4em; }
  [data-look="opus"] .nav__cta { background: var(--o-ochre); color: var(--o-ink); border-color: var(--o-ochre); border-radius: var(--radius-control); }
  [data-look="opus"] .preview-note { background: var(--o-ochre); color: var(--o-ink); border: 0; font-weight: 600; }

  /* Buttons: blocks of ink with a hard shadow; rust on hover. */
  [data-look="opus"] .button {
    border-radius: var(--radius-control); font-weight: 700; letter-spacing: 0.03em;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }
  [data-look="opus"] .button[data-variant="primary"], [data-look="opus"] .button:not([data-variant]) { background: var(--o-ink); color: var(--o-cream); border: 2px solid var(--o-ink); box-shadow: 0.25rem 0.25rem 0 var(--o-orange); }
  [data-look="opus"] .button[data-variant="primary"]:hover, [data-look="opus"] .button:not([data-variant]):hover { background: var(--o-rust); border-color: var(--o-rust); }
  [data-look="opus"] .button[data-variant="outline"] { background: var(--o-cream); color: var(--o-ink); border: 2px solid var(--o-ink); box-shadow: 0.25rem 0.25rem 0 var(--o-ink); }
  [data-look="opus"] .button[data-variant="outline"]:hover { background: var(--o-white); }
  [data-look="opus"] .button:active { transform: translate(0.15rem, 0.15rem); box-shadow: 0.1rem 0.1rem 0 var(--o-ink); }

  /* Hero: a full-width ochre wash (the label's ground, ochre into orange), the headline set huge in black capitals,
     and the label itself in a black frame with a teal block behind it, like the leaves. */
  [data-look="opus"] .hero {
    --hero-background: transparent;
    background: linear-gradient(115deg, var(--o-ochre) 0 55%, var(--o-orange) 100%);
    padding-block: var(--space-xl);
    border-block-end: 0.5rem solid var(--o-ink);
  }
  [data-look="opus"] .hero__headline { font-size: clamp(3rem, 1.5rem + 6.2vw, 7.4rem); font-weight: 900; line-height: 1.04; color: var(--o-ink); } /* the parentheses hang below the baseline: 1.04 keeps "(BATCH)" clear of the next line */
  [data-look="opus"] .hero .eyebrow { color: var(--o-ink); }
  [data-look="opus"] .hero__subheadline, [data-look="opus"] .lede { font-family: var(--font-body); }
  [data-look="opus"] .hero__subheadline { color: var(--o-ink); font-size: var(--step-1); line-height: 1.5; max-inline-size: 32rem; }
  [data-look="opus"] .hero .button[data-variant="outline"] { background: transparent; }
  [data-look="opus"] .hero .button[data-variant="primary"] { box-shadow: 0.25rem 0.25rem 0 var(--o-cream); }
  [data-look="opus"] .hero__art--opus { inline-size: min(100% - 1.5rem, 27rem); margin-block: var(--space-s); justify-self: start; }
  @media (min-width: 52rem) { [data-look="opus"] .hero__art--opus { justify-self: center; } }
  [data-look="opus"] .hero__art--opus img {
    border: 0.6rem solid var(--o-ink); transform: rotate(2deg);
    box-shadow: 1.1rem 1.1rem 0 var(--o-teal-ink);
  }

  /* Sections: headings in tall capitals with a short rust rule above. */
  [data-look="opus"] .section .container { border: 0; }
  [data-look="opus"] .section__head { border: 0; padding-block-start: 0; }
  [data-look="opus"] .section__head h1, [data-look="opus"] .section__head h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
  [data-look="opus"] .section__head::before { content: ""; display: block; inline-size: 3.5rem; block-size: 0.4rem; background: var(--o-rust); margin-block-end: var(--space-s); }
  [data-look="opus"] .text-block .prose { font-size: var(--step-1); line-height: 1.55; max-inline-size: 36rem; }
  [data-look="opus"] #diy { background: var(--o-ink); color: var(--o-cream); }
  [data-look="opus"] #diy :is(h2, p) { color: var(--o-cream); }
  [data-look="opus"] #diy .eyebrow { color: var(--o-ochre); }
  [data-look="opus"] #diy .section__head::before { background: var(--o-ochre); }
  /* Beside the manifesto, the lily from the label, cropped close, in the black frame. */
  @media (min-width: 52rem) {
    [data-look="opus"] #diy .container { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: center; }
    [data-look="opus"] #diy .container > * { grid-column: 1; }
    [data-look="opus"] #diy .container::after {
      content: ""; grid-column: 2; grid-row: 1 / span 2; align-self: stretch; min-block-size: 24rem;
      background: var(--o-ochre) url("../../assets/img/labels/opus-cabfranc.webp") 58% 40% / 190% auto no-repeat;
      border: 0.5rem solid var(--o-cream); box-shadow: 0.8rem 0.8rem 0 var(--o-teal-ink);
    }
  }

  /* Wine cards: a white print in a black frame on a hard ochre shadow (teal on hover); the photo on ochre, the
     name in tall capitals, the price in the same face. */
  [data-look="opus"] .wine-grid { column-gap: var(--space-l); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
  [data-look="opus"] .wine-card {
    background: var(--o-white); border: 3px solid var(--o-ink); box-shadow: 0.5rem 0.5rem 0 var(--o-ochre);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  [data-look="opus"] .wine-card:hover { box-shadow: 0.5rem 0.5rem 0 var(--o-teal); transform: translate(-2px, -2px); }
  [data-look="opus"] .wine-card__media { background: var(--o-ochre); border-block-end: 3px solid var(--o-ink); }
  [data-look="opus"] .wine-card__nophoto { font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; color: var(--o-ink); font-size: var(--step-3); }
  [data-look="opus"] .wine-card__body { padding: var(--space-s) var(--space-s) var(--space-xs); }
  [data-look="opus"] .wine-card__title { font-size: var(--step-2); font-weight: 850; line-height: 1; }
  [data-look="opus"] .wine-card__link:hover .wine-card__title { text-decoration: none; color: var(--o-rust); }
  [data-look="opus"] .wine-card__facts { text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--2); font-weight: 600; }
  [data-look="opus"] .wine-card__meta { justify-content: space-between; }
  [data-look="opus"] .wine-card__price { font-family: var(--font-heading); font-weight: 850; font-size: var(--step-2); }
  [data-look="opus"] .wine-card__action { padding: 0 var(--space-s) var(--space-s); }
  [data-look="opus"] .badge { border-radius: var(--radius-control); border: 2px solid var(--o-ink); background: transparent; color: var(--o-ink); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; font-size: var(--step--2); }
  [data-look="opus"] .badge[data-status="good"] { background: var(--o-ochre); }

  /* One wine. */
  [data-look="opus"] .wine__media img { border: 0.45rem solid var(--o-ink); box-shadow: 0.9rem 0.9rem 0 var(--o-ochre); }
  [data-look="opus"] .wine h1 { font-size: clamp(3rem, 1.6rem + 4.6vw, 5.8rem); }
  [data-look="opus"] .wine__price { font-family: var(--font-heading); font-size: var(--step-3); font-weight: 900; }
  [data-look="opus"] .wine__facts dt { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--1); color: var(--color-text-muted); font-weight: 700; }

  /* Shipping estimate and forms: a white block in the black frame. */
  [data-look="opus"] .ship-estimate { background: var(--o-white); border: 3px solid var(--o-ink); box-shadow: 0.6rem 0.6rem 0 var(--o-ochre); }
  [data-look="opus"] .ship-estimate input:not([type="checkbox"]), [data-look="opus"] .ship-estimate select,
  [data-look="opus"] .cart input:not([type="checkbox"]), [data-look="opus"] .cart select { border: 2px solid var(--o-ink); background-color: var(--o-cream); }
  [data-look="opus"] .ship-estimate__total { font-family: var(--font-heading); font-weight: 900; }
  [data-look="opus"] .form-label { font-weight: 700; }
  [data-look="opus"] input[type="checkbox"] { accent-color: var(--o-ink); }

  /* Labels page and FAQ. */
  [data-look="opus"] .label-grid img { border: 3px solid var(--o-ink); background: var(--o-white); }
  [data-look="opus"] .faq-group__title { font-family: var(--font-heading); text-transform: uppercase; }

  /* Footer: black, with the ochre and teal of the label as two rules at its top. */
  [data-look="opus"] .site-footer {
    --_footer-bg: var(--o-ink);
    background: var(--o-ink);
    border-block-start: 0.6rem solid var(--o-ochre);
    box-shadow: inset 0 0.5rem 0 var(--o-teal-ink);
  }
  [data-look="opus"] .site-footer__name { font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--step-2); line-height: 1; color: var(--o-ochre); }

  @media (prefers-reduced-motion: reduce) {
    [data-look="opus"] :is(.wine-card, .button) { transition: none; }
    [data-look="opus"] .wine-card:hover, [data-look="opus"] .button:active { transform: none; }
  }

  /* Full QA 2026-11-23: the footer is ink, so its focus ring is ochre there (it was ink on ink). */
  [data-look="opus"] .site-footer :focus-visible { outline-color: var(--o-ochre); }
}
