:root {
  /* ---- Brand, as found in the legacy stylesheet (css/style.css :root) ---- */
  --brand-teal: #18A590;        /* legacy --primary_color  */
  --brand-mint: #AFF4DD;        /* legacy --secondary_color / --hover_color */
  --brand-amber: #FCAF1B;       /* legacy --highlight_color; the logo roundel */
  --brand-cream: #FFFEF9;       /* legacy body background */

  /* ---- Greens: teal deepened for accessible text and panels ---- */
  --green-900: #142A25;
  --green-800: #23403A;
  --green-700: #0E5F53;
  --green-600: #0E6E5F;
  --green-500: #18A590;
  --green-200: #AFF4DD;
  --green-100: #E4F7EF;

  /* ---- Ambers ----
     500 is the logo hue and the graphic accent: rules, brackets, underlines, fills.
     It is NOT legible as type on cream (1.84:1), so amber text uses 800. */
  --amber-800: #8A5220;   /* 6.3:1 on cream — amber as TEXT on light grounds */
  --amber-600: #C67A3E;   /* 3.34:1 on cream — large display type only, never body */
  --amber-500: #FCAF1B;   /* graphic accent, and amber text on dark grounds only */
  --amber-100: #FDEFCF;

  /* ---- Warm neutrals ---- */
  --sand-000: #FFFEF9;
  --sand-050: #F7F4E9;
  --sand-100: #F1EEE2;
  --sand-200: #E6E2D4;
  --sand-300: #C9C3AE;
  --sand-500: #8A8875;

  --slate-600: #5C6B66;
  --slate-400: #A8B5B0;
  --slate-200: #C3CCC8;

  --white: #FFFFFF;

  /* ---- Status ---- */
  --status-in-stock: #0E5F53;
  --status-out-of-stock: #C20101;   /* legacy --btn_red */
  --status-order: #006D07;          /* legacy --btn_green */
  --status-sale: #C67A3E;

  /* ---- Semantic aliases: use these in components ---- */
  --text-heading: var(--green-800);
  --text-body: var(--green-800);
  --text-muted: var(--slate-600);
  --text-inverse: var(--sand-000);
  --text-on-dark-muted: var(--slate-200);
  --text-link: var(--green-600);
  --text-link-hover: var(--green-800);
  --text-accent: var(--amber-800);            /* on light grounds */
  --text-accent-on-dark: var(--amber-500);    /* on --surface-dark */
  --text-on-brand: var(--sand-000);           /* on --surface-brand (green-700) */

  --surface-page: var(--sand-000);
  --surface-card: var(--white);
  --surface-sunken: var(--sand-050);
  --surface-subtle: var(--sand-100);
  --surface-dark: var(--green-800);
  --surface-brand: var(--green-700);

  --border-subtle: var(--sand-200);
  --border-strong: var(--sand-300);
  --border-dark: #35544C;
  --border-input: #363636;      /* legacy --input_border */

  --action-primary-bg: var(--green-700);
  --action-primary-bg-hover: var(--green-800);
  --action-primary-text: var(--sand-000);
  --action-accent-bg: var(--amber-500);
  --action-accent-bg-hover: var(--sand-000);
  --action-accent-text: var(--green-800);
  --action-ghost-border: var(--sand-300);

  --focus-ring: var(--green-600);
}

:root {
  /* Families */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hind Mysuru", system-ui, -apple-system, sans-serif;
  --font-legacy-heading: "Livvic", sans-serif;   /* legacy --heading_font */

  /* Weights — the display face is used light; the sans carries weight */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Fluid display sizes */
  --text-hero: clamp(38px, 5.2vw, 68px);
  --text-h1: clamp(36px, 4.6vw, 56px);
  --text-h2: clamp(30px, 3.8vw, 48px);
  --text-h3: clamp(24px, 2.6vw, 32px);
  --text-h4: 22px;

  /* Body scale */
  --text-lead: 20px;
  --text-base: 17px;
  --text-sm: 15px;
  --text-xs: 14px;
  --text-micro: 13px;

  --lh-tight: 1.08;
  --lh-heading: 1.15;
  --lh-snug: 1.45;
  --lh-body: 1.68;
  --lh-relaxed: 1.7;

  --ls-display: -0.015em;
  --ls-body: 0;
  --ls-eyebrow: 0.22em;
  --ls-label: 0.16em;
  --ls-ui: 0.03em;

  --measure-narrow: 34ch;
  --measure-body: 50ch;
  --measure-wide: 66ch;
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Fluid rhythm — sections breathe on desktop, tighten on mobile */
  --gutter: clamp(18px, 4vw, 44px);
  --section-y: clamp(56px, 8vw, 110px);
  --section-y-tight: clamp(40px, 5.5vw, 72px);
  --gap-grid: clamp(24px, 3.5vw, 44px);
  --gap-columns: clamp(28px, 5vw, 64px);

  --container: 1240px;
  --container-prose: 720px;

  /* Corners: near-square by default, the brand reads editorial not app-like */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-soft: 10px;
  --radius-pill: 999px;

  --hit-min: 44px;
}

:root {
  /* Borders do the work; shadows are a last resort and always warm-toned */
  --shadow-none: none;
  --shadow-card: 0 1px 2px rgba(20, 42, 37, 0.04);
  --shadow-raised: 0 6px 20px rgba(20, 42, 37, 0.08);
  --shadow-overlay: 0 18px 48px rgba(20, 42, 37, 0.18);

  --border-hairline: 1px solid var(--border-subtle);
  --rule-accent: 3px solid var(--amber-500);

  /* Scrim over photography so display type stays legible */
  --scrim-photo: linear-gradient(180deg, rgba(20, 42, 37, 0.15) 0%, rgba(20, 42, 37, 0.82) 100%);
  --scrim-flat: rgba(20, 42, 37, 0.55);
  --header-blur: blur(8px);
  --header-bg: rgba(255, 254, 249, 0.94);
}

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-entrance: 700ms;

  --transition-hover: color var(--dur-base) var(--ease-out),
                      background-color var(--dur-base) var(--ease-out),
                      border-color var(--dur-base) var(--ease-out);
}

@keyframes gi-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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

/* Giraffe Art & Interiors — site stylesheet.
   Built from the design system (tokens/*.css are prepended at build time).
   No JavaScript is required anywhere on the site. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); color: var(--text-body); font-family: var(--font-sans);
  font-size: var(--text-base); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text-link); transition: var(--transition-hover); }
a:hover { color: var(--text-link-hover); }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; background: var(--green-800); color: var(--sand-000); }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose-wrap { max-width: var(--container-prose); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: var(--section-y-tight); padding-bottom: var(--section-y-tight); }
.ground-sunken { background: var(--surface-sunken); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.ground-brand { background: var(--surface-brand); color: var(--text-on-brand); }
.grid { display: grid; gap: var(--gap-grid); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.grid > * { min-width: 0; }
.grid--cols { gap: var(--gap-columns); }
.grid--center { align-items: center; }
.grid--start { align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.center .row { justify-content: center; }

/* ---- Type ---- */
.eyebrow { font-size: var(--text-micro); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent); margin-bottom: 16px; }
.eyebrow--on-brand { color: var(--text-on-brand); }
.eyebrow--on-dark { color: var(--text-accent-on-dark); letter-spacing: var(--ls-label); }
.eyebrow--muted { color: var(--text-muted); letter-spacing: var(--ls-label); }
.display { font-family: var(--font-display); font-weight: var(--fw-light); letter-spacing: var(--ls-display); color: var(--text-heading); text-wrap: pretty; }
.display em { font-style: italic; color: var(--green-700); }
.t-hero { font-size: var(--text-hero); line-height: var(--lh-tight); }
.t-h1 { font-size: var(--text-h1); line-height: var(--lh-tight); max-width: 22ch; }
.t-h2 { font-size: var(--text-h2); line-height: 1.12; }
.t-h2s { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.t-h3 { font-size: var(--text-h3); line-height: var(--lh-heading); font-weight: var(--fw-regular); }
.t-sub { font-size: clamp(24px, 2.6vw, 32px); line-height: var(--lh-heading); font-weight: var(--fw-regular); }
.t-quote { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; }
.c-green { color: var(--green-700); }
.c-cream { color: var(--sand-000); }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--text-body); max-width: 46ch; text-wrap: pretty; }
.lead-sm { font-size: 18px; line-height: 1.6; color: var(--text-body); max-width: var(--measure-body); text-wrap: pretty; }
.body { font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--text-muted); max-width: var(--measure-wide); text-wrap: pretty; }
.body--ink { color: var(--text-body); }
.body--on-brand { color: var(--green-200); }
.small { font-size: var(--text-sm); line-height: var(--lh-body); color: var(--text-muted); text-wrap: pretty; }
.list { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.list li { font-size: var(--text-base); line-height: var(--lh-body); color: var(--text-muted); text-wrap: pretty; }
.rule { width: 64px; height: 3px; background: var(--amber-500); margin: 30px 0; border: 0; }

/* ---- Buttons & links ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; letter-spacing: var(--ls-ui); line-height: 1;
  text-decoration: none; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  background: var(--action-primary-bg); color: var(--action-primary-text); transition: var(--transition-hover); }
.btn:hover { background: var(--action-primary-bg-hover); color: var(--action-primary-text); }
.btn--lg { min-height: 52px; padding: 0 34px; font-size: 17px; }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--text-body); border-color: var(--action-ghost-border); }
.btn--ghost:hover { background: transparent; color: var(--text-body); border-color: var(--text-body); }
.btn--accent { background: var(--action-accent-bg); color: var(--action-accent-text); }
.btn--accent:hover { background: var(--sand-000); color: var(--action-accent-text); }
.tlink { align-self: flex-start; display: inline-block; font-weight: 500; text-decoration: none; color: var(--text-link);
  border-bottom: 2px solid var(--amber-500); padding-bottom: 3px; }
.tlink:hover { color: var(--text-link-hover); }

/* ---- Header ---- */
.utility { background: var(--surface-dark); color: var(--sand-100); font-size: var(--text-micro); letter-spacing: 0.04em; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.utility a { color: var(--sand-100); text-decoration: none; }
.utility a:hover { color: var(--text-accent-on-dark); }
.utility__links { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 0 0 auto; max-width: 100%; white-space: nowrap; }
@media (min-width: 600px) { .utility__links { flex-wrap: nowrap; } }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: var(--header-blur);
  backdrop-filter: var(--header-blur); border-bottom: 1px solid var(--border-subtle); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { flex-shrink: 0; }
.logo img { width: 62px; }
.nav { display: flex; gap: 2px; align-items: center; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; font-size: var(--text-sm);
  color: var(--text-body); text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap; }
.nav a:hover { background: var(--surface-subtle); color: var(--text-body); }
.nav a[aria-current="page"] { background: var(--surface-subtle); box-shadow: inset 0 -2px 0 var(--amber-500); }
.nav .btn, .nav .btn:hover { margin-left: 8px; color: var(--action-primary-text); box-shadow: none; }
.nav .btn { background: var(--action-primary-bg); }
.nav .btn:hover { background: var(--action-primary-bg-hover); }
@media (max-width: 760px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; flex-basis: 100%; margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter); scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

.crumbs { padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: var(--text-xs); }
.crumbs li { display: flex; gap: 8px; align-items: center; color: var(--text-muted); }
.crumbs li + li::before { content: "/"; color: var(--text-muted); }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--text-body); font-weight: 600; }

.page-hero { padding-top: clamp(28px, 4.5vw, 56px); padding-bottom: clamp(24px, 3.5vw, 44px); }
.bleed { width: 100%; height: clamp(240px, 30vw, 440px); object-fit: cover; }

/* ---- Home hero ---- */
.hero { padding-top: clamp(40px, 7vw, 86px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero__copy { animation: gi-rise var(--dur-entrance) var(--ease-out) both; }
.hero__copy .body { margin: 14px 0 34px; max-width: var(--measure-body); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(320px, 52vw, 600px); object-fit: cover; border-radius: var(--radius-sm); }
.hero__media::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 96px; height: 96px;
  border-left: 3px solid var(--amber-500); border-bottom: 3px solid var(--amber-500); }

/* ---- Cards ---- */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.card > img { width: 100%; height: clamp(200px, 24vw, 280px); object-fit: cover; }
.card__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__body .tlink { margin-top: auto; }
.card--accent { border-top: 3px solid var(--amber-500); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--border-strong); color: inherit; }
.badges { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.badge-item { display: flex; gap: 14px; align-items: center; font-size: var(--text-sm); font-weight: 500; line-height: 1.45; }
.badge-item img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.band { display: grid; gap: 4px; background: var(--border-subtle); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.band img { width: 100%; height: clamp(220px, 26vw, 360px); object-fit: cover; }
.media-round { width: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.date { font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--green-200); margin-bottom: 14px; }
.date--muted { color: var(--text-muted); }
.pkg__name { display: flex; gap: 10px; align-items: baseline; font-size: 20px; font-weight: 600; letter-spacing: 0.08em; color: var(--green-700); }
.pkg__tag { font-family: var(--font-display); font-size: 22px; line-height: 1.25; color: var(--text-heading); text-wrap: pretty; }
.claims { display: flex; flex-direction: column; }
.claims li { list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-body); }
.claims li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; flex-shrink: 0; background: var(--amber-500); }
.claims { padding: 0; }
.pull { margin-top: 24px; padding: clamp(22px, 3vw, 30px); background: var(--surface-brand); border-radius: var(--radius-sm); }
.pull blockquote { font-family: var(--font-display); font-weight: var(--fw-light); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--sand-000); text-wrap: pretty; }
.pull strong { font-weight: 400; color: var(--amber-500); }
.pull figcaption { margin-top: 14px; font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--green-200); }
.notice { padding: clamp(16px, 2vw, 20px); background: var(--amber-100); border: 1px solid var(--amber-500); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--green-800); }
.contact-item { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: var(--text-sm); }
.contact-item img { height: 34px; width: auto; object-fit: contain; }
.contact-item a { text-decoration: none; }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 32px); background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field .req { color: var(--status-out-of-stock); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 0 14px; font: inherit; font-size: var(--text-base);
  color: var(--text-body); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.field textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; }
.field select { appearance: none; padding-right: 38px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6B66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-200); border-color: var(--focus-ring); }
.field .hint { font-size: var(--text-xs); color: var(--text-muted); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: var(--text-sm); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-700); flex-shrink: 0; }

/* ---- Legal ---- */
.legal { display: flex; flex-wrap: wrap; gap: var(--gap-columns); align-items: flex-start; }
.toc { flex: 1 1 220px; max-width: 280px; position: sticky; top: 140px; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--border-subtle); }
.toc a { padding: 7px 0 7px 14px; font-size: var(--text-xs); line-height: 1.4; color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--text-link); }
.legal article { flex: 3 1 480px; min-width: 0; max-width: var(--container-prose); display: flex; flex-direction: column; gap: 16px; }
.legal h2 { font-family: var(--font-display); font-weight: var(--fw-regular); font-size: clamp(22px, 2.4vw, 28px); line-height: var(--lh-heading);
  color: var(--green-700); margin-top: 22px; scroll-margin-top: 130px; }
.legal article a { word-break: break-word; }
.legal__more { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--text-sm); }
@media (max-width: 760px) { .toc { position: static; max-width: none; } }

/* ---- Footer ---- */
.site-footer { background: var(--surface-dark); color: var(--sand-100); }
.site-footer .grid { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); --min: 230px; gap: var(--gap-columns); }
.site-footer img { width: 72px; margin-bottom: 26px; }
.site-footer h2 { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--sand-000); margin-bottom: 12px; }
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: var(--sand-100); text-decoration: none; }
.site-footer a:hover { color: var(--text-accent-on-dark); }
.site-footer .btn, .site-footer .btn:hover { color: var(--action-accent-text); }
.site-footer .note { font-size: var(--text-sm); line-height: 1.65; color: var(--text-on-dark-muted); max-width: 38ch; margin: 0 0 20px; }
.foot-links { display: flex; flex-direction: column; gap: 11px; font-size: var(--text-sm); }
.legalbar { border-top: 1px solid var(--border-dark); }
.legalbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; padding-bottom: 20px; font-size: var(--text-xs); color: var(--slate-400); }
.legalbar a { color: var(--slate-400); text-decoration: none; }
.legalbar a:hover { color: var(--sand-000); }
