/* ==========================================================================
   Premium starter: main.css
   Demo brand: "סומאק" (fictional chef restaurant, Haifa).

   DESIGN PLAN (swap per client; keep the structure):
   - Palette from the subject (Carmel + port + spice market):
       pine  #0F2620  Carmel pine, main text + dark sections
       salt  #EDEFE9  sea salt, page background (cool, not cream)
       sumac #7B2335  the brand accent: primary buttons, links, focus
       oil   #C8A445  olive oil: accent on dark backgrounds only
       brine #2F5D55  sea water: small labels on light backgrounds
   - Type: Karantina (tall condensed Hebrew display) for headlines only,
     Frank Ruhl Libre (Hebrew text serif) for everything else.
   - Layout: right-aligned (RTL start), asymmetric grids, generous space.
     The illustration language is "plates as geometry" (inline SVG, CSS colors).
   - Principle: one bold moment (hero reveal + pinned tasting menu), the rest
     quiet. No shadows, no card grids, no gradients.

   CONTRAST (WCAG AA, checked): pine/salt 13.9:1, sumac/salt 8.5:1,
   white/sumac 9.3:1, ink-soft/salt 7.5:1, brine/salt 6.4:1,
   salt/pine 13.7:1, oil/pine 6.7:1, mist/pine 7.7:1, error/salt 7.1:1.
   ========================================================================== */

:root {
  --pine: #0F2620;
  --pine-line: #2E5046;
  --salt: #EDEFE9;
  --stone: #DDE2DA;
  --white: #F8F9F5;
  --sumac: #7B2335;
  --sumac-deep: #5F1A29;
  --oil: #C8A445;
  --brine: #2F5D55;
  --ink-soft: #3D4F48;
  --mist: #A9B8B0;
  --line: #B9C2BA;
  --field-border: #56655E;
  --error: #9A1B2B;
  --focus: var(--sumac);

  --font-display: "Karantina", "Arial Narrow", "Arial", sans-serif;
  --font-text: "Frank Ruhl Libre", "David", "Times New Roman", serif;

  /* Type scale (fluid, rem-based so browser zoom and text size settings work). */
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --step-3: clamp(3rem, 2rem + 4.5vw, 6rem);
  --step-4: clamp(3.5rem, 1.25rem + 10vw, 11rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --header-h: 4rem;
  --radius-pill: 999px;
  --radius-field: 6px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--salt);
  color: var(--pine);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

p { margin: 0 0 1em; }

a {
  color: var(--sumac);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* Containers that receive focus only programmatically (skip link / anchor targets). */
[tabindex="-1"]:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container {
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--pine);
  color: var(--salt);
  border-radius: var(--radius-field);
  text-decoration: none;
  font-weight: 700;
  --focus: var(--oil);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: 500 var(--step-0) / 1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--sumac); color: var(--white); }
.btn--primary:hover { background: var(--sumac-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--pine); border-color: currentColor; }
.btn--ghost:hover { background: var(--pine); color: var(--salt); border-color: var(--pine); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--salt);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--pine);
  text-decoration: none;
}

.site-nav { margin-inline-start: auto; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a:not(.btn) {
  color: var(--pine);
  text-decoration: none;
  padding-block: 0.5rem;
}
.site-nav__list a:not(.btn):hover { text-decoration: underline; }

.nav-toggle,
.motion-toggle {
  display: none; /* Needs JS: shown only under .js */
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--pine);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--pine);
  font: 500 var(--step--1) / 1.2 var(--font-text);
  cursor: pointer;
}
.nav-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.motion-toggle__icon { width: 1rem; height: 1rem; fill: currentColor; }

.js .motion-toggle { display: inline-flex; }
.motion-toggle[aria-pressed="true"] { background: var(--pine); color: var(--salt); }
.motion-toggle[aria-disabled="true"] { cursor: not-allowed; }

@media (max-width: 959.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav__list {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--salt);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav__list.is-open { display: flex; }
  .js .site-nav__list a:not(.btn) {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
  }
  .js .site-nav__cta { padding-top: 1rem; }
  .js .site-nav__cta .btn { width: 100%; min-height: 3rem; font-size: var(--step-0); }
}

@media (max-width: 419.98px) {
  .wordmark { font-size: 2rem; }
  .nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(2.5rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 0.9;
  letter-spacing: -0.005em;
  color: var(--pine);
}
.hero__line { display: block; }

.hero__lead {
  max-width: 38ch;
  margin-bottom: 1.75rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__plate {
  justify-self: end;
  width: min(88vw, 30rem);
  max-width: none;
  height: auto;
  margin-inline-end: calc(-1 * var(--gutter) - 14vw);
}

.facts {
  display: grid;
  gap: 1rem 2rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.facts dt { font-size: var(--step--1); color: var(--brine); }
.facts dd { margin: 0; font-weight: 500; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  /* The headline keeps 8/12 of the width (both lines fit); the plate takes the free
     left side, spanning all rows and bleeding off the edge. */
  .hero { padding-top: clamp(2rem, 4vw, 4.5rem); }
  .hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    grid-template-areas:
      "title plate"
      "text  plate"
      "facts plate";
    align-items: start;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .hero__title { grid-area: title; }
  .hero__text { grid-area: text; }
  .facts { grid-area: facts; }
  .hero__plate {
    grid-area: plate;
    align-self: center;
    width: min(42vw, 40rem);
    margin-inline-end: calc(-1 * var(--gutter) - 9vw);
  }
}

/* Only while the entrance animation is about to run (class set by js/boot.js,
   removed by js/motion.js or by a 2.5s failsafe). Never hides content without JS. */
.intro-pending [data-intro] { visibility: hidden; }

/* ---------- Plates (inline SVG illustrations) ---------- */
.plate { --plate: var(--salt); --plate-rim: #C3CAC1; }
.plate--dark { --plate: var(--pine); --plate-rim: var(--pine-line); }
.pl-plate { fill: var(--plate); }
.pl-rim { fill: none; stroke: var(--plate-rim); stroke-width: 1.5; }

.f-crust { fill: #8A5A33; }
.f-score { fill: none; stroke: #BE8A57; stroke-width: 6; stroke-linecap: round; }
.f-butter { fill: #E6C766; }
.f-herb { fill: #5B7A36; }
.f-sumac { fill: #8E2A3E; }
.plate--dark .f-sumac { fill: #B8434F; }
.f-oil-drop { fill: var(--oil); opacity: 0.85; }
.f-fish ellipse { fill: #E9B8A6; stroke: #C88A77; stroke-width: 2; }
.f-chili { fill: none; stroke: #C23A2B; stroke-width: 3.5; }
.f-labneh-edge { fill: none; stroke: #D9D2BF; stroke-width: 48; stroke-linecap: round; }
.f-labneh { fill: none; stroke: #FAF6EA; stroke-width: 43; stroke-linecap: round; }
.f-tomato { fill: #C8402E; }
.f-shine { fill: #E98A72; }
.f-leaf { fill: #4F7A3A; }
.f-ink { fill: none; stroke: #1E1D24; stroke-width: 26; stroke-linecap: round; }
.f-ring { fill: none; stroke: #D9B983; stroke-width: 9; }
.f-lemon { fill: #E2BF3F; }
.f-chili-oil { fill: #C8502E; }
.f-brown { fill: #B07A3E; opacity: 0.45; }
.f-fillet { fill: #F3E8D4; stroke: #D8C3A0; stroke-width: 2; }
.f-skin { fill: #B8894F; }
.f-fava { fill: #7C9D46; }
.f-almond { fill: #E6D2A8; stroke: #C7AE7D; stroke-width: 1; }
.f-hummus { fill: #D9C39B; }
.f-swirl { fill: none; stroke: #BFA273; stroke-width: 4; stroke-linecap: round; }
.f-lamb { fill: #4A2C22; }
.f-lamb-line { fill: none; stroke: #6E4536; stroke-width: 3; stroke-linecap: round; }
.f-grape { fill: #3E2340; }
.f-drizzle { fill: none; stroke: #1E1D24; stroke-width: 6; stroke-linecap: round; }
.f-tahini-dot { fill: #1E1D24; }
.f-fig { fill: #5A2446; }
.f-fig-in { fill: #C8587A; }
.f-seed { fill: #F2D9A6; }
.f-quenelle { fill: #F8F6EE; stroke: #D6D2C2; stroke-width: 2; }
.f-crumb { fill: #C0925A; }

/* ---------- Tasting menu: static (default, no JS, reduced motion, paused) ---------- */
.tasting {
  --focus: var(--oil);
  background: var(--pine);
  color: var(--salt);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.tasting__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.tasting__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.95;
}

.tasting__intro { max-width: 52ch; margin: 0; color: var(--mist); }

.tasting__progress { display: none; }

.courses {
  display: grid;
  gap: 2.25rem 3.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: course;
}

.course {
  counter-increment: course;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.course__plate { width: 100%; height: auto; }

.course__text::before {
  content: counter(course, decimal-leading-zero);
  content: counter(course, decimal-leading-zero) / "";
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--oil);
}

.course__name {
  margin: 0 0 0.25rem;
  font-size: var(--step-1);
  line-height: 1.3;
}

.course__desc { margin: 0; color: var(--mist); }

@media (min-width: 720px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course { grid-template-columns: 8.5rem minmax(0, 1fr); }
}

/* ---------- Tasting menu: staged (pinned + scrubbed, class added by js/motion.js) ---------- */
.tasting.is-staged { padding-bottom: 0; }

.tasting.is-staged .tasting__head { margin-bottom: 0; }

.tasting.is-staged .tasting__stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.75rem, 2.5vh, 2rem);
  height: calc(100vh - var(--hh, 4rem));
  height: calc(100svh - var(--hh, 4rem));
  padding-block: clamp(1rem, 4vh, 3rem);
}

.tasting.is-staged .tasting__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--oil);
}
.tasting__count { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.tasting__bar {
  position: relative;
  flex: 1;
  max-width: 16rem;
  height: 2px;
  background: var(--pine-line);
}
.tasting__bar > span {
  position: absolute;
  inset: 0;
  background: var(--oil);
  transform-origin: right center;
}

/* Clip: rotated (hidden) plates must not create horizontal scroll on phones.
   The visible plate is a circle inside its square box, so nothing visible is cut. */
.tasting.is-staged .courses {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}

.tasting.is-staged .course {
  position: absolute;
  inset: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: clamp(0.75rem, 2vh, 1.5rem);
}

.tasting.is-staged .course__plate {
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  will-change: transform, opacity;
}

.tasting.is-staged .course__text { max-width: 34ch; text-align: center; }
.tasting.is-staged .course__text::before { font-size: 2.5rem; }
.tasting.is-staged .course__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.75rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
  .tasting.is-staged .course {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: clamp(2rem, 5vw, 5rem);
  }
  .tasting.is-staged .course__plate {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-height: 40rem;
  }
  .tasting.is-staged .course__text {
    grid-column: 1;
    grid-row: 1;
    text-align: start;
  }
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.95;
}

/* ---------- Kitchen ---------- */
.kitchen__grid { display: grid; gap: 3rem; }
.kitchen__text p { max-width: 46ch; }

.sources { width: 100%; border-collapse: collapse; }
.sources caption {
  padding-bottom: 0.75rem;
  font-size: var(--step-1);
  font-weight: 700;
  text-align: start;
}
.sources th,
.sources td {
  padding-block: 0.85rem;
  padding-inline-end: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.sources thead th {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--brine);
  border-bottom-color: var(--pine);
}
.sources tbody th { font-weight: 700; }
.sources th:last-child,
.sources td:last-child {
  padding-inline-end: 0;
  text-align: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
  .kitchen__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Visit ---------- */
.visit { background: var(--stone); }
.visit__grid { display: grid; gap: 2rem 3rem; }
.visit__block h3 { margin: 0 0 0.5rem; font-size: var(--step-1); line-height: 1.3; }
.visit__block p { margin: 0; color: var(--ink-soft); }

@media (min-width: 640px) { .visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .visit__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Booking form ---------- */
.book__grid { display: grid; gap: 2.5rem; }
.book__intro p { max-width: 40ch; }
.book__privacy-note { font-size: var(--step--1); color: var(--ink-soft); }

.book-form { display: grid; gap: 1.25rem 1.5rem; align-content: start; }

.field label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.req,
.opt { font-size: var(--step--1); font-weight: 400; color: var(--ink-soft); }

.book-form input[type="text"],
.book-form input[type="tel"],
.book-form input[type="email"],
.book-form input[type="date"],
.book-form select,
.book-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--pine);
  font: inherit;
  font-size: var(--step-0);
  line-height: 1.4;
}
.book-form input[dir="ltr"] { text-align: right; }
.book-form textarea { min-height: 7rem; resize: vertical; }
.book-form .field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field__hint { margin: 0.35rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.field__error { margin: 0.4rem 0 0; font-size: var(--step--1); font-weight: 500; color: var(--error); }

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}
.field--check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.25rem 0 0;
  accent-color: var(--sumac);
}
.field--check label { margin: 0; font-weight: 400; }
.field--check .field__error { grid-column: 1 / -1; }

/* Honeypot: hidden from people and assistive tech, still present for bots. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.turnstile { display: flex; justify-content: flex-start; min-height: 65px; }
.turnstile[hidden] { display: none; }

.form-status {
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--brine);
  border-radius: var(--radius-field);
  background: #E3EDE7;
  color: var(--pine);
}
.form-status[data-state="error"] { border-color: var(--error); background: #F6E6E8; }
.form-status p { margin: 0; }

.form-noscript { margin: 0; font-weight: 500; }

@media (min-width: 640px) {
  .book-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .book__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  --focus: var(--oil);
  background: var(--pine);
  color: var(--salt);
  padding-block: 3.5rem 2.5rem;
}
.site-footer a,
.site-footer .link-button { color: var(--salt); }
.site-footer__grid { display: grid; gap: 2rem; }
.wordmark--footer { margin: 0 0 0.5rem; font-size: 3rem; color: var(--salt); }
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__demo {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pine-line);
  font-size: var(--step--1);
  color: var(--mist);
}

@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Legal pages (privacy / accessibility / 404) ---------- */
.page-header .site-header__bar { justify-content: space-between; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 68ch; }
.legal h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.95;
}
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: var(--step-2); line-height: 1.25; }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: var(--step-1); line-height: 1.3; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--ink-soft); }
.ph {
  padding: 0 0.2em;
  border-radius: 3px;
  background: #F1E3B3;
  color: var(--pine);
}

/* ---------- Cookie consent theme (vanilla-cookieconsent v3; loaded only when enabled) ---------- */
#cc-main {
  --cc-font-family: var(--font-text);
  --cc-bg: var(--white);
  --cc-primary-color: var(--pine);
  --cc-secondary-color: var(--ink-soft);
  --cc-btn-primary-bg: var(--sumac);
  --cc-btn-primary-color: var(--white);
  --cc-btn-primary-border-color: var(--sumac);
  --cc-btn-primary-hover-bg: var(--sumac-deep);
  --cc-btn-primary-hover-color: var(--white);
  --cc-btn-primary-hover-border-color: var(--sumac-deep);
  --cc-btn-secondary-bg: var(--stone);
  --cc-btn-secondary-color: var(--pine);
  --cc-btn-secondary-border-color: var(--field-border);
  --cc-btn-secondary-hover-bg: var(--line);
  --cc-btn-secondary-hover-color: var(--pine);
  --cc-btn-secondary-hover-border-color: var(--pine);
  --cc-toggle-on-bg: var(--sumac);
  --cc-separator-border-color: var(--line);
  --cc-link-color: var(--sumac);
  --cc-btn-border-radius: var(--radius-pill);
  --cc-modal-border-radius: 10px;
}
#cc-main :focus-visible { outline: 3px solid var(--sumac); outline-offset: 2px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ---------- Windows high contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn,
  .motion-toggle,
  .nav-toggle { border: 1.5px solid ButtonText; }
  .motion-toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
}
