/* Round 3, look "grapes" (Grape Stars): the Chardonnay 2021 label. A bunch of pastel grapes inked in black inside a
   thick, round-cornered black frame, with eight-point sparkles around it. The palette is sampled from the label
   (white-balanced from the bottle photo): its cool white paper and warm black ink, and the grapes' clay pink, sand,
   pistachio, mauve and olive. Bricolage Grotesque (OFL) for headings, the core's Schibsted Grotesk for text. Each card
   is the label's frame, its photo on one of the grape colours; sparkles mark the headings. Art: assets/img/labels/
   (scripts/make-label-looks.py). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../../assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@layer themes {
  :root[data-look="grapes"],
  [data-look="grapes"] .nav,
  [data-look="grapes"] .hero {
    --g-paper: #f1f0f2;
    --g-ink: #231613;
    --g-ink-2: #3d3125;
    --g-clay: #c08b80;
    --g-sand: #c4ab87;
    --g-pistachio: #cfd5a4;
    --g-mauve: #c89397;
    --g-olive: #b8ae88;
    --g-berry: #7a4640; /* the clay pink taken down to text strength (6.7:1 on the paper) */
    --color-background: var(--g-paper);
    --color-surface: #ffffff;
    --color-surface-raised: #ffffff;
    --color-text: var(--g-ink);
    --color-text-muted: #5c4a44;
    --color-text-subtle: #5c4a44;
    --color-border: color-mix(in oklab, var(--g-ink) 22%, var(--g-paper));
    --color-border-subtle: color-mix(in oklab, var(--g-ink) 12%, var(--g-paper));
    --color-border-strong: var(--g-ink);
    --accent: var(--g-berry);
    --accent-ink: var(--g-berry);
    --accent-fill: var(--g-ink);
    --accent-fill-hover: var(--g-ink-2);
    --on-accent: var(--g-paper);
    --on-accent-fill: var(--g-paper);
    --color-focus: var(--g-ink);
    --nav-bg: var(--g-paper);
    --nav-ink: var(--g-ink);
    --band-inverse: var(--g-ink);
  }
  :root[data-look="grapes"] {
    --color-info: var(--g-berry); /* the estimate notes ("About this estimate") in the look's colours */
    --color-info-subtle: color-mix(in oklab, var(--g-pistachio) 40%, #ffffff);
    --font-heading: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
    --radius-control: 999px;
    --radius-card: 1.25rem;
    --look-field-pad: calc(1.2 * var(--step-0));
    --select-arrow-inset: 1.4em;
    --wine-grid-row-gap: var(--space-xl);
    /* The label's star: four long rays and four short ones, in the ink. */
    --g-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23231613' stroke-linecap='round'%3E%3Cpath d='M20 2.5v35M2.5 20h35' stroke-width='2.4'/%3E%3Cpath d='M13 13l14 14M27 13 13 27' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E");
    --g-star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23f1f0f2' stroke-linecap='round'%3E%3Cpath d='M20 2.5v35M2.5 20h35' stroke-width='2.4'/%3E%3Cpath d='M13 13l14 14M27 13 13 27' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E");
  }
  [data-look="grapes"] [data-look-art~="grapes"] { display: block; }
  [data-look="grapes"] body { background: var(--g-paper); color: var(--g-ink); }
  [data-look="grapes"] :is(h1, h2, h3, .hero__headline) {
    font-family: var(--font-heading); font-weight: 760; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance;
  }
  [data-look="grapes"] .eyebrow {
    display: inline-flex; align-items: center; gap: 0.55em;
    font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--color-text-muted);
  }
  [data-look="grapes"] .eyebrow::before { content: ""; inline-size: 1.05em; block-size: 1.05em; flex: none; background: var(--g-star) center / contain no-repeat; }
  [data-look="grapes"] main a:not(.button, .nav__link, .nav__brand, .nav__cta, .wine-card__link) {
    color: var(--g-berry); text-decoration-color: var(--g-clay); text-decoration-thickness: 2px; text-underline-offset: 0.18em;
  }
  [data-look="grapes"] :focus-visible { outline: 2px solid var(--g-ink); outline-offset: 3px; }

  /* Nav: light, the name in the heading face, a hand-inked rule under it. */
  [data-look="grapes"] .nav { border-block-end: 3px solid var(--g-ink); }
  [data-look="grapes"] .nav__brand { font-family: var(--font-heading); font-weight: 780; letter-spacing: -0.03em; font-size: var(--step-1); flex-shrink: 1; min-inline-size: 0; line-height: 1.1; }
  [data-look="grapes"] .nav__link { font-weight: 550; }
  [data-look="grapes"] .nav__link[aria-current] { text-decoration: underline; text-decoration-color: var(--g-clay); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
  [data-look="grapes"] .preview-note { background: var(--g-pistachio); color: var(--g-ink); border-block-end: 0; }

  /* Buttons: ink pills; the outline one fills with grape pink on hover. */
  [data-look="grapes"] .button { border-radius: var(--radius-control); font-weight: 650; letter-spacing: 0.005em; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
  [data-look="grapes"] .button[data-variant="primary"], [data-look="grapes"] .button:not([data-variant]) { background: var(--g-ink); color: var(--g-paper); border: 2px solid var(--g-ink); }
  [data-look="grapes"] .button[data-variant="primary"]:hover, [data-look="grapes"] .button:not([data-variant]):hover { background: var(--g-ink-2); border-color: var(--g-ink-2); }
  [data-look="grapes"] .button[data-variant="outline"] { background: transparent; color: var(--g-ink); border: 2px solid var(--g-ink); }
  [data-look="grapes"] .button[data-variant="outline"]:hover { background: var(--g-clay); }

  /* Hero: the words left; the label right, in its own black frame, tipped a little, on a cluster of grape-coloured
     rounds with the label's sparkles around it. */
  [data-look="grapes"] .hero { --hero-background: transparent; padding-block: var(--space-xl) var(--space-2xl, 5rem); overflow: clip; }
  [data-look="grapes"] .hero__headline { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
  [data-look="grapes"] .hero__subheadline { font-size: var(--step-1); line-height: 1.5; color: var(--color-text-muted); max-inline-size: 31rem; }
  [data-look="grapes"] .hero__art--grapes {
    position: relative; isolation: isolate;
    inline-size: min(84%, 24rem);
    margin-block: var(--space-m);
  }
  [data-look="grapes"] .hero__art--grapes img {
    position: relative; z-index: 1;
    border: 0.55rem solid var(--g-ink); border-radius: 1.6rem;
    transform: rotate(-3deg);
    box-shadow: 0 1.5rem 3rem -1.25rem rgb(35 22 19 / 0.45);
    background: #fff;
  }
  /* The grapes: soft rounds of the label's colours behind the frame. */
  [data-look="grapes"] .hero__art--grapes::before {
    content: ""; position: absolute; z-index: 0; inset: -9% -16% -10% -14%;
    background:
      radial-gradient(circle at 18% 22%, var(--g-pistachio) 0 14%, transparent 14.5%),
      radial-gradient(circle at 86% 16%, var(--g-mauve) 0 11%, transparent 11.5%),
      radial-gradient(circle at 92% 62%, var(--g-sand) 0 16%, transparent 16.5%),
      radial-gradient(circle at 8% 78%, var(--g-clay) 0 13%, transparent 13.5%),
      radial-gradient(circle at 70% 94%, var(--g-olive) 0 10%, transparent 10.5%);
    opacity: 0.9;
  }
  /* The sparkles. */
  [data-look="grapes"] .hero__art--grapes::after {
    content: ""; position: absolute; z-index: 2; inset: -12% -18% -12% -16%; pointer-events: none;
    background:
      var(--g-star) 2% 8% / 2.2rem no-repeat,
      var(--g-star) 97% 30% / 1.6rem no-repeat,
      var(--g-star) 100% 92% / 2.6rem no-repeat,
      var(--g-star) 0% 58% / 1.3rem no-repeat;
  }

  /* Sections: room, and the section titles large. */
  [data-look="grapes"] .section .container { border: 0; }
  [data-look="grapes"] .section__head { border: 0; padding-block-start: 0; }
  [data-look="grapes"] .section__head h1, [data-look="grapes"] .section__head h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.8rem); }
  [data-look="grapes"] .text-block .prose { font-size: var(--step-1); line-height: 1.55; max-inline-size: 36rem; }
  [data-look="grapes"] #diy .container { background: #fff; border: 3px solid var(--g-ink); border-radius: var(--radius-card); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); position: relative; }
  [data-look="grapes"] #diy .container::after {
    content: ""; position: absolute; inset-block-start: clamp(1rem, 3vw, 2rem); inset-inline-end: clamp(1rem, 3vw, 2rem);
    inline-size: clamp(2.5rem, 6vw, 4.5rem); aspect-ratio: 1; background: var(--g-star) center / contain no-repeat;
  }
  [data-look="grapes"] #diy .container > * { max-inline-size: 38rem; }

  /* Wine cards: the label's frame. A thick ink border with round corners, the photo inset on one of the grape
     colours (they take turns along the row), the name in the heading face. */
  [data-look="grapes"] .wine-grid { column-gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
  [data-look="grapes"] .wine-card {
    --tint: var(--g-pistachio);
    background: #fff; border: 3px solid var(--g-ink); border-radius: var(--radius-card); padding: 0.5rem; overflow: clip;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  }
  [data-look="grapes"] .wine-card:nth-child(5n + 2) { --tint: var(--g-mauve); }
  [data-look="grapes"] .wine-card:nth-child(5n + 3) { --tint: var(--g-sand); }
  [data-look="grapes"] .wine-card:nth-child(5n + 4) { --tint: var(--g-clay); }
  [data-look="grapes"] .wine-card:nth-child(5n + 5) { --tint: var(--g-olive); }
  [data-look="grapes"] .wine-card:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0.35rem 0.45rem 0 var(--tint); }
  [data-look="grapes"] .wine-card__media { border-radius: calc(var(--radius-card) - 0.5rem); background: var(--tint); }
  [data-look="grapes"] .wine-card__nophoto { font-family: var(--font-heading); font-weight: 760; letter-spacing: -0.03em; color: var(--g-ink); font-size: var(--step-2); }
  [data-look="grapes"] .wine-card__body { padding: var(--space-s) 0.5rem 0.4rem; }
  [data-look="grapes"] .wine-card__title { font-size: var(--step-1); font-weight: 740; }
  [data-look="grapes"] .wine-card__link:hover .wine-card__title { text-decoration: underline; text-decoration-color: var(--tint); text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
  [data-look="grapes"] .wine-card__meta { justify-content: space-between; border-block-start: 2px dotted color-mix(in oklab, var(--g-ink) 35%, transparent); padding-block-start: var(--space-xs); margin-block-start: var(--space-2xs, 0.4rem); }
  [data-look="grapes"] .wine-card__price { font-family: var(--font-heading); font-weight: 760; font-size: var(--step-1); letter-spacing: -0.02em; }
  [data-look="grapes"] .wine-card__action { padding-inline: 0.5rem; padding-block-end: 0.4rem; }
  [data-look="grapes"] .badge { border-radius: 999px; border: 1.5px solid var(--g-ink); background: transparent; color: var(--g-ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
  [data-look="grapes"] .badge[data-status="good"] { background: var(--g-pistachio); }

  /* One wine: the photo in the same frame. */
  [data-look="grapes"] .wine__media img { border: 0.45rem solid var(--g-ink); border-radius: 1.5rem; background: var(--g-pistachio); }
  [data-look="grapes"] .wine h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); }
  [data-look="grapes"] .wine__price { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 780; letter-spacing: -0.03em; }
  [data-look="grapes"] .wine__facts dt { font-weight: 650; color: var(--color-text-muted); }

  /* Shipping estimate, cart and forms: white panels in the ink frame. */
  [data-look="grapes"] .ship-estimate { background: #fff; border: 3px solid var(--g-ink); border-radius: var(--radius-card); }
  [data-look="grapes"] .ship-estimate input:not([type="checkbox"]), [data-look="grapes"] .ship-estimate select,
  [data-look="grapes"] .cart input:not([type="checkbox"]), [data-look="grapes"] .cart select { border: 2px solid var(--g-ink); background-color: var(--g-paper); }
  [data-look="grapes"] .ship-estimate__total { font-family: var(--font-heading); letter-spacing: -0.03em; }
  [data-look="grapes"] input[type="checkbox"] { accent-color: var(--g-ink); }

  /* Labels page and FAQ. */
  [data-look="grapes"] .label-grid img { border: 3px solid var(--g-ink); border-radius: var(--radius-card); background: #fff; }
  [data-look="grapes"] .faq-group__item { border-radius: 0.9rem; }
  [data-look="grapes"] .faq-group__title { font-family: var(--font-heading); }

  /* Footer: the ink, with a few sparkles in the paper colour. */
  [data-look="grapes"] .site-footer {
    --_footer-bg: var(--g-ink);
    background: var(--g-ink) var(--g-star-light) calc(100% - 2rem) 2rem / 2.5rem no-repeat;
  }
  [data-look="grapes"] .site-footer__name { font-family: var(--font-heading); font-weight: 780; letter-spacing: -0.03em; }

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

  /* Full QA 2026-11-23: the footer is ink, so its button is paper (it was ink on ink, only the label showed). */
  [data-look="grapes"] .site-footer .button:not([data-variant="outline"]) { background: var(--g-paper); color: var(--g-ink); border-color: var(--g-paper); }
  [data-look="grapes"] .site-footer .button:not([data-variant="outline"]):hover { background: var(--g-clay, var(--g-paper)); border-color: var(--g-clay, var(--g-paper)); }

  [data-look="grapes"] .site-footer :focus-visible { outline-color: var(--g-paper); }
}
