/* Round 3, look "glyph" (Moon Glyph): the original Moon Unit Chardonnay label (2019). Black marker on white: MOON in
   fat rounded letters, a ringed eye-sun, rockets, spikes and rows of rounded dashes, U·N·I·T underneath. The
   palette is the scan's own four values: white, black, the grey of its half-tones and the light grey of its edges.
   Dela Gothic One (OFL), heavy and round-cornered like the marker letters, for headings in capitals; the core's
   Schibsted Grotesk for text. The label's row of dashes (cut from the drawing, used as a mask so it takes the ink
   colour) rules the page under the nav and above the footer; its eye-sun marks the DIY section; cards and buttons
   take the dashes' fat round ends. Art: assets/img/labels/glyph-*.{webp,png} (scripts/make-label-looks.py). */
@font-face {
  font-family: "Dela Gothic One";
  src: url("../../assets/fonts/dela-gothic-one-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@layer themes {
  :root[data-look="glyph"],
  [data-look="glyph"] .nav,
  [data-look="glyph"] .hero {
    --y-paper: #ffffff;
    --y-ink: #000000;
    --y-grey: #363636;
    --y-line: #cccccc;
    --color-background: var(--y-paper);
    --color-surface: var(--y-paper);
    --color-surface-raised: var(--y-paper);
    --color-text: var(--y-ink);
    --color-text-muted: var(--y-grey);
    --color-text-subtle: var(--y-grey);
    --color-border: var(--y-line);
    --color-border-subtle: #e6e6e6;
    --color-border-strong: var(--y-ink);
    --accent: var(--y-ink);
    --accent-ink: var(--y-ink);
    --accent-fill: var(--y-ink);
    --accent-fill-hover: var(--y-grey);
    --on-accent: var(--y-paper);
    --on-accent-fill: var(--y-paper);
    --color-focus: var(--y-ink);
    --nav-bg: var(--y-paper);
    --nav-ink: var(--y-ink);
    --band-inverse: var(--y-ink);
  }
  :root[data-look="glyph"] {
    --color-info: var(--y-ink); /* the estimate notes ("About this estimate") in the look's colours */
    --color-info-subtle: #f2f2f2;
    --font-heading: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
    --radius-control: 999px;
    --radius-card: 1.75rem;
    --look-field-pad: calc(1.25 * var(--step-0));
    --select-arrow-inset: 1.4em;
    --wine-grid-row-gap: var(--space-xl);
    --y-band: url("../../assets/img/labels/glyph-band.png");
    --y-sun: url("../../assets/img/labels/glyph-sun.png");
  }
  [data-look="glyph"] [data-look-art~="glyph"] { display: block; }
  [data-look="glyph"] body { background: var(--y-paper); color: var(--y-ink); }
  [data-look="glyph"] :is(h1, h2, h3, .hero__headline) {
    font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.06; text-wrap: balance;
  }
  /* Dela Gothic is wide: a heading never breaks inside a word. The boxes that hold headings are size containers and
     each heading is capped at its box's width over about 11 em, CHARDONNAY in these capitals (the hero is a
     container already, Fluid hero.css). Never on a wine card: a card is a subgrid (see sk.css). */
  [data-look="glyph"] :is(.wine__body, .section__head, .ship-estimate__head, .faq-group) { container-type: inline-size; }
  [data-look="glyph"] { --y-fit: calc(100cqi / 11); }
  [data-look="glyph"] .eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--y-ink); }
  /* U·N·I·T: the label's dots between the letters of an eyebrow's words. */
  [data-look="glyph"] .eyebrow::before { content: "● "; font-size: 0.6em; vertical-align: 0.25em; letter-spacing: 0.4em; }
  [data-look="glyph"] main a:not(.button, .nav__link, .nav__brand, .nav__cta, .wine-card__link) { color: var(--y-ink); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
  [data-look="glyph"] :focus-visible { outline: 3px solid var(--y-ink); outline-offset: 3px; }

  /* Nav: white, the name in the marker capitals; under it the label's row of fat dashes. */
  [data-look="glyph"] .nav { border: 0; }
  [data-look="glyph"] .nav__brand { font-family: var(--font-heading); text-transform: uppercase; font-size: var(--step-0); letter-spacing: 0; flex-shrink: 1; min-inline-size: 0; line-height: 1.1; }
  [data-look="glyph"] .nav__link { font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--1); }
  [data-look="glyph"] .nav__link[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
  [data-look="glyph"] main::before {
    content: ""; display: block; block-size: clamp(0.7rem, 0.5rem + 0.6vw, 1.05rem);
    margin: var(--space-2xs, 0.4rem) var(--page-edge, 1rem) 0;
    background: var(--y-ink);
    -webkit-mask: var(--y-band) 0 50% / auto 100% repeat-x; mask: var(--y-band) 0 50% / auto 100% repeat-x;
  }
  [data-look="glyph"] .preview-note { background: var(--y-ink); color: var(--y-paper); border: 0; letter-spacing: 0.04em; }

  /* Buttons: the dashes, fat black pills; the outline one is a thick ring. */
  [data-look="glyph"] .button { border-radius: var(--radius-control); font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.92em; transition: background-color 0.15s ease, color 0.15s ease; }
  [data-look="glyph"] .button[data-variant="primary"], [data-look="glyph"] .button:not([data-variant]) { background: var(--y-ink); color: var(--y-paper); border: 3px solid var(--y-ink); }
  [data-look="glyph"] .button[data-variant="primary"]:hover, [data-look="glyph"] .button:not([data-variant]):hover { background: var(--y-grey); border-color: var(--y-grey); }
  [data-look="glyph"] .button[data-variant="outline"] { background: var(--y-paper); color: var(--y-ink); border: 3px solid var(--y-ink); }
  [data-look="glyph"] .button[data-variant="outline"]:hover { background: var(--y-ink); color: var(--y-paper); }

  /* Hero: the headline in marker capitals; the whole drawing beside it, large and straight, in a fat round frame. */
  [data-look="glyph"] .hero { --hero-background: transparent; padding-block: var(--space-l) var(--space-xl); }
  [data-look="glyph"] .hero__headline { font-size: min(clamp(2.1rem, 1.1rem + 3.4vw, 4.2rem), var(--y-fit)); line-height: 1.06; }
  [data-look="glyph"] .hero__subheadline, [data-look="glyph"] .lede { font-family: var(--font-body); }
  [data-look="glyph"] .hero__subheadline { font-size: var(--step-1); line-height: 1.5; color: var(--y-grey); max-inline-size: 32rem; }
  [data-look="glyph"] .hero__art--glyph { inline-size: min(100%, 25rem, calc(78svh * 1000 / 1534)); }
  [data-look="glyph"] .hero__art--glyph img { border: 0.7rem solid var(--y-ink); border-radius: 2rem; background: var(--y-paper); }

  /* Sections. The DIY section is the label turned over: white on black, the eye-sun beside the words. */
  [data-look="glyph"] .section .container { border: 0; }
  [data-look="glyph"] .section__head { border: 0; padding-block-start: 0; }
  [data-look="glyph"] .section__head h1, [data-look="glyph"] .section__head h2 { font-size: min(clamp(2rem, 1.2rem + 3vw, 3.9rem), var(--y-fit)); }
  [data-look="glyph"] .text-block .prose { font-size: var(--step-1); line-height: 1.55; max-inline-size: 36rem; }
  [data-look="glyph"] #diy .container {
    position: relative; background: var(--y-ink); color: var(--y-paper);
    border-radius: var(--radius-card); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
    padding-inline-end: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  }
  [data-look="glyph"] #diy :is(h2, p, .eyebrow) { color: var(--y-paper); }
  @media (min-width: 52rem) {
    [data-look="glyph"] #diy .container { padding-inline-end: clamp(12rem, 26vw, 20rem); }
    [data-look="glyph"] #diy .container::after {
      content: ""; position: absolute; inset-block: clamp(1.5rem, 3vw, 3rem); inset-inline-end: clamp(1.5rem, 3vw, 3.5rem);
      inline-size: clamp(9rem, 20vw, 15rem); background: var(--y-paper);
      -webkit-mask: var(--y-sun) center / contain no-repeat; mask: var(--y-sun) center / contain no-repeat;
    }
  }

  /* Wine cards: a thick black frame with the dashes' round corners; on hover the name side turns black. */
  [data-look="glyph"] .wine-grid { column-gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
  [data-look="glyph"] .wine-card { background: var(--y-paper); border: 4px solid var(--y-ink); border-radius: var(--radius-card); overflow: clip; }
  [data-look="glyph"] .wine-card__media { background: #f2f2f2; border-block-end: 4px solid var(--y-ink); }
  [data-look="glyph"] .wine-card__nophoto { font-family: var(--font-heading); text-transform: uppercase; color: var(--y-ink); font-size: var(--step-2); }
  [data-look="glyph"] .wine-card__body { padding: var(--space-s) var(--space-s) var(--space-xs); transition: background-color 0.15s ease, color 0.15s ease; }
  [data-look="glyph"] .wine-card__title { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.08; }
  [data-look="glyph"] .wine-card__facts, [data-look="glyph"] .wine-card__origin { color: var(--y-grey); }
  [data-look="glyph"] .wine-card__link:hover .wine-card__title { text-decoration: none; }
  [data-look="glyph"] .wine-card__link:hover .wine-card__body { background: var(--y-ink); color: var(--y-paper); }
  [data-look="glyph"] .wine-card__link:hover :is(.wine-card__facts, .wine-card__origin) { color: var(--y-line); }
  [data-look="glyph"] .wine-card__link:hover .badge { border-color: var(--y-paper); color: var(--y-paper); }
  [data-look="glyph"] .wine-card__meta { justify-content: space-between; }
  [data-look="glyph"] .wine-card__price { font-family: var(--font-heading); font-weight: 400; font-size: var(--step-1); }
  [data-look="glyph"] .wine-card__action { padding: 0 var(--space-s) var(--space-s); }
  [data-look="glyph"] .badge { border-radius: 999px; border: 2px solid var(--y-ink); background: transparent; color: var(--y-ink); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: var(--step--2); }
  [data-look="glyph"] .badge[data-status="good"] { background: var(--y-ink); color: var(--y-paper); }
  [data-look="glyph"] .wine-card__link:hover .badge[data-status="good"] { background: var(--y-paper); color: var(--y-ink); }

  /* One wine. */
  [data-look="glyph"] .wine__media img { border: 0.45rem solid var(--y-ink); border-radius: var(--radius-card); }
  [data-look="glyph"] .wine h1 { font-size: min(clamp(2.2rem, 1.3rem + 3.2vw, 4.2rem), var(--y-fit)); }
  [data-look="glyph"] .ship-estimate h2, [data-look="glyph"] .faq-group__title { font-size: min(var(--step-3), var(--y-fit)); }
  [data-look="glyph"] .wine__price { font-family: var(--font-heading); font-weight: 400; font-size: var(--step-2); }
  [data-look="glyph"] .wine__facts dt { text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); font-weight: 700; }

  /* Forms: thick rings like the label's beads. */
  [data-look="glyph"] .ship-estimate { border: 4px solid var(--y-ink); border-radius: var(--radius-card); background: var(--y-paper); }
  [data-look="glyph"] .ship-estimate input:not([type="checkbox"]), [data-look="glyph"] .ship-estimate select,
  [data-look="glyph"] .cart input:not([type="checkbox"]), [data-look="glyph"] .cart select { border: 3px solid var(--y-ink); }
  [data-look="glyph"] .ship-estimate__total { font-family: var(--font-heading); font-weight: 400; }
  [data-look="glyph"] .form-label { font-weight: 700; }
  [data-look="glyph"] input[type="checkbox"] { accent-color: var(--y-ink); }

  /* Labels page and FAQ. */
  [data-look="glyph"] .label-grid img { border: 3px solid var(--y-ink); border-radius: 1.25rem; background: var(--y-paper); }
  [data-look="glyph"] .faq-group__item { border-radius: 1rem; }
  [data-look="glyph"] .faq-group__title { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; }

  /* Footer: black, with the row of dashes in white along its top edge. */
  [data-look="glyph"] .site-footer { --_footer-bg: var(--y-ink); background: var(--y-ink); position: relative; padding-block-start: calc(var(--space-xl) + 1rem); }
  [data-look="glyph"] .site-footer::before {
    content: ""; position: absolute; inset-inline: var(--page-edge, 1rem); inset-block-start: var(--space-m); block-size: 0.9rem;
    background: var(--y-paper);
    -webkit-mask: var(--y-band) 0 50% / auto 100% repeat-x; mask: var(--y-band) 0 50% / auto 100% repeat-x;
  }
  [data-look="glyph"] .site-footer__name { font-family: var(--font-heading); text-transform: uppercase; line-height: 1.1; }

  @media (prefers-reduced-motion: reduce) {
    [data-look="glyph"] :is(.wine-card__body, .button) { transition: none; }
  }
  @media (forced-colors: active) {
    [data-look="glyph"] main::before, [data-look="glyph"] .site-footer::before, [data-look="glyph"] #diy .container::after { display: none; }
  }

  /* Full QA 2026-11-23. The no-photo card says MOON UNIT centred, on one line where it fits. */
  [data-look="glyph"] .wine-card__nophoto { text-align: center; line-height: 1.05; padding: var(--space-s); }
  /* The footer is ink: its button and focus ring are paper (both were black on black). */
  [data-look="glyph"] .site-footer .button:not([data-variant="outline"]) { background: var(--y-paper); color: var(--y-ink); border-color: var(--y-paper); }
  [data-look="glyph"] .site-footer .button:not([data-variant="outline"]):hover { background: var(--y-grey); border-color: var(--y-grey); color: var(--y-paper); }
  [data-look="glyph"] .site-footer :focus-visible { outline-color: var(--y-paper); }
  /* The card clips its corners (overflow: clip), which cut the link's focus ring: the ring goes on the card. */
  [data-look="glyph"] .wine-card__link:focus-visible { outline: none; }
  [data-look="glyph"] .wine-card:has(.wine-card__link:focus-visible) { outline: 3px solid var(--y-ink); outline-offset: 3px; }
}
