/* Round 3, look "fog" (Petaluma Fog): the calm one, set apart from the bold label looks. Named for the marine fog
   of the Petaluma Gap, where the Chardonnay grows. Cool, pale and quiet: the paper is the pale grey-blue of the
   backdrop in the Chardonnay 2019 bottle photo, the ink a soft near-black, the hairlines the backdrop's stone grey,
   and one accent, the bronze of the bottle's glass. Cormorant Garamond (OFL) for headings, light and large, with
   its italic for prices; the core's Schibsted Grotesk for text, small capitals for labels. Centred, wide margins,
   no frames: the bottle in the hero dissolves into the page, and everything else stays still. Unlike Quiet cellar
   (warm limestone, a left-set serif, oxblood), this is cool, centred and lighter still. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../../assets/fonts/cormorant-garamond-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../../assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@layer themes {
  :root[data-look="fog"],
  [data-look="fog"] .nav,
  [data-look="fog"] .site-footer,
  [data-look="fog"] .hero {
    --f-paper: #eef3f3;
    --f-mist: #e4eaea;
    --f-ink: #1f2320;
    --f-muted: #565a50;
    --f-stone: #848273;
    --f-bronze: #6a5420;
    --color-background: var(--f-paper);
    --color-surface: var(--f-mist);
    --color-surface-raised: #f6f9f9;
    --color-text: var(--f-ink);
    --color-text-muted: var(--f-muted);
    --color-text-subtle: var(--f-muted);
    --color-border: color-mix(in oklab, var(--f-stone) 45%, var(--f-paper));
    --color-border-subtle: color-mix(in oklab, var(--f-stone) 25%, var(--f-paper));
    --color-border-strong: var(--f-stone);
    --accent: var(--f-bronze);
    --accent-ink: var(--f-bronze);
    --accent-fill: var(--f-ink);
    --accent-fill-hover: #3a3f3a;
    --on-accent: var(--f-paper);
    --on-accent-fill: var(--f-paper);
    --color-focus: var(--f-ink);
    --nav-bg: var(--f-paper);
    --nav-ink: var(--f-ink);
    --band-inverse: var(--f-mist);
  }
  :root[data-look="fog"] {
    --color-info: var(--f-bronze); /* the estimate notes ("About this estimate") in the look's colours */
    --color-info-subtle: var(--f-mist);
    --font-heading: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", serif;
    --radius-control: 999px;
    --radius-card: 0px;
    --look-field-pad: calc(1.25 * var(--step-0));
    --select-arrow-inset: 1.4em;
    --wine-grid-row-gap: var(--space-2xl, 5rem);
    --f-caps: 0.2em;
  }
  [data-look="fog"] [data-look-art~="fog"] { display: block; }
  [data-look="fog"] body { background: var(--f-paper); color: var(--f-ink); }
  [data-look="fog"] :is(h1, h2, h3, .hero__headline) {
    font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance;
  }
  /* Small capitals, widely spaced, for every label-like line. */
  [data-look="fog"] :is(.eyebrow, .wine__facts dt, .form-label, .site-footer__title, .badge) {
    font-family: var(--font-body); font-size: var(--step--2); font-weight: 600; letter-spacing: var(--f-caps); text-transform: uppercase; color: var(--f-muted);
  }
  [data-look="fog"] main a:not(.button, .nav__link, .nav__brand, .nav__cta, .wine-card__link) { color: var(--f-bronze); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
  [data-look="fog"] :focus-visible { outline: 1.5px solid var(--f-ink); outline-offset: 4px; }

  /* Nav: quiet, a hairline under it, the name in the serif. */
  [data-look="fog"] .nav { border-block-end: 1px solid var(--color-border); }
  [data-look="fog"] .nav__brand { font-family: var(--font-heading); font-weight: 500; font-size: var(--step-1); letter-spacing: 0.01em; flex-shrink: 1; min-inline-size: 0; line-height: 1.1; }
  [data-look="fog"] .nav__link { font-size: var(--step--1); letter-spacing: 0.06em; }
  [data-look="fog"] .nav__link[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.5em; }
  [data-look="fog"] .preview-note { background: var(--f-mist); color: var(--f-muted); border-block-end: 1px solid var(--color-border); font-size: var(--step--2); letter-spacing: 0.06em; }

  /* Buttons: slim pills with small-capital labels. */
  [data-look="fog"] .button {
    border-radius: var(--radius-control); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    padding-inline: 2.2em; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  [data-look="fog"] .button[data-variant="primary"], [data-look="fog"] .button:not([data-variant]) { background: var(--f-ink); color: var(--f-paper); border: 1px solid var(--f-ink); }
  [data-look="fog"] .button[data-variant="primary"]:hover, [data-look="fog"] .button:not([data-variant]):hover { background: #3a3f3a; }
  [data-look="fog"] .button[data-variant="outline"] { background: transparent; color: var(--f-ink); border: 1px solid var(--f-stone); }
  [data-look="fog"] .button[data-variant="outline"]:hover { border-color: var(--f-ink); background: var(--f-mist); }

  /* Hero: centred words over a bottle that rises out of the fog: the photo's own pale backdrop fades into the page. */
  [data-look="fog"] .hero[data-art] {
    --hero-background: transparent;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding-block: var(--space-xl) 0; gap: var(--space-l);
  }
  [data-look="fog"] .hero__content { max-inline-size: 46rem; margin-inline: auto; }
  [data-look="fog"] .hero .eyebrow { margin-block-end: var(--space-s); margin-inline: auto; text-align: center; }
  [data-look="fog"] .hero__headline { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.8rem); font-weight: 300; line-height: 1.06; letter-spacing: -0.02em; }
  [data-look="fog"] .hero__subheadline { font-size: var(--step-1); line-height: 1.6; color: var(--f-muted); max-inline-size: 34rem; margin-inline: auto; }
  [data-look="fog"] .hero__actions { justify-content: center; }
  [data-look="fog"] .hero__art--fog { inline-size: min(100%, 26rem); margin: 0 auto; background: var(--f-paper); } /* the figure is its own stacking context: the blend needs the paper inside it */
  /* Multiply: the photo's white backdrop takes the page's colour, so the bottle stands in the page's own fog; the
     soft mask removes the last of the photo's edges. */
  [data-look="fog"] .hero__art--fog img {
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(46% 54% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(46% 54% at 50% 50%, #000 70%, transparent 100%);
    animation: fog-in 2.4s ease-out both;
  }
  @keyframes fog-in { from { opacity: 0; filter: blur(6px); } }

  /* Sections: centred heads, a short stone rule, long white space. */
  [data-look="fog"] .section .container { border: 0; }
  [data-look="fog"] .section__head { border: 0; padding-block-start: 0; }
  [data-look="fog"] .section__head { text-align: center; margin-inline: auto; max-inline-size: 44rem; }
  [data-look="fog"] .section__head > * { margin-inline: auto; }
  [data-look="fog"] .section__head::after { content: ""; display: block; inline-size: 2.5rem; block-size: 1px; background: var(--f-stone); margin: var(--space-m) auto 0; }
  [data-look="fog"] .section__head h1, [data-look="fog"] .section__head h2 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); font-weight: 300; }
  [data-look="fog"] .text-block .container > * { margin-inline: auto; }
  [data-look="fog"] .text-block .prose { font-family: var(--font-heading); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); font-weight: 400; line-height: 1.55; max-inline-size: 38rem; }

  /* Wine cards: no frames. The bottle on mist, the name in the serif, centred; the price in italic. */
  [data-look="fog"] .wine-grid { column-gap: var(--space-xl); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
  [data-look="fog"] .wine-card { background: transparent; border: 0; text-align: center; }
  [data-look="fog"] .wine-card__media { aspect-ratio: 4 / 5; background: var(--f-mist); }
  [data-look="fog"] .wine-card__media img { filter: saturate(0.82) contrast(0.96); transition: filter 0.6s ease, transform 0.9s ease; }
  [data-look="fog"] .wine-card__link:hover .wine-card__media img { filter: none; transform: scale(1.02); }
  [data-look="fog"] .wine-card__nophoto { font-family: var(--font-heading); font-style: italic; font-size: var(--step-2); color: var(--f-muted); }
  [data-look="fog"] .wine-card__body { padding: var(--space-m) 0 0; }
  [data-look="fog"] .wine-card__title { font-size: var(--step-2); font-weight: 500; line-height: 1.1; }
  [data-look="fog"] .wine-card__link:hover .wine-card__title { text-decoration: none; color: var(--f-bronze); }
  [data-look="fog"] .wine-card__facts { font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; }
  [data-look="fog"] .wine-card__meta { justify-content: center; gap: var(--space-s); padding-block-start: var(--space-xs); }
  [data-look="fog"] .wine-card__price { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: var(--step-1); }
  [data-look="fog"] .wine-card__action { padding-block-start: var(--space-xs); }
  [data-look="fog"] .wine-card__action .add-to-cart { justify-content: center; }
  [data-look="fog"] .add-to-cart__qty label { font-size: var(--step--2); font-weight: 600; letter-spacing: var(--f-caps); text-transform: uppercase; color: var(--f-muted); }
  [data-look="fog"] .badge { border: 0; background: none; padding: 0; }

  /* One wine. */
  [data-look="fog"] .wine h1 { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem); font-weight: 300; }
  [data-look="fog"] .wine__price { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: var(--step-2); }
  [data-look="fog"] .wine__media img { filter: saturate(0.9); }

  /* Forms: a pale panel, hairline fields. */
  [data-look="fog"] .ship-estimate { background: var(--color-surface-raised); border: 1px solid var(--color-border); }
  [data-look="fog"] .ship-estimate h2 { font-weight: 400; }
  [data-look="fog"] .ship-estimate input:not([type="checkbox"]), [data-look="fog"] .ship-estimate select,
  [data-look="fog"] .cart input:not([type="checkbox"]), [data-look="fog"] .cart select { border: 1px solid var(--f-stone); background-color: #ffffff; }
  [data-look="fog"] .ship-estimate__total { font-family: var(--font-heading); font-weight: 500; }
  [data-look="fog"] input[type="checkbox"] { accent-color: var(--f-ink); }

  /* Labels page and FAQ. */
  [data-look="fog"] .label-grid img { background: var(--color-surface-raised); border-color: var(--color-border); }
  [data-look="fog"] .faq-group__title { font-family: var(--font-heading); font-weight: 400; }

  /* Footer: pale mist, not a dark band. */
  [data-look="fog"] .site-footer {
    --_footer-bg: var(--f-mist);
    --_footer-rule: var(--color-border);
    --color-text: var(--f-ink);
    --color-text-muted: var(--f-muted);
    background: var(--f-mist); color: var(--f-ink); border-block-start: 1px solid var(--color-border);
  }
  [data-look="fog"] .site-footer a { color: var(--f-ink); }
  [data-look="fog"] .site-footer__mark { filter: invert(1); opacity: 0.75; }
  [data-look="fog"] .site-footer__name { font-family: var(--font-heading); font-weight: 500; }

  @media (prefers-reduced-motion: reduce) {
    [data-look="fog"] .hero__art--fog img { animation: none; }
    [data-look="fog"] .wine-card__media img, [data-look="fog"] .button { transition: none; }
    [data-look="fog"] .wine-card__link:hover .wine-card__media img { transform: none; }
  }
}
