/* Kapeleta — base layer shared by every page.
   Tokens, fonts, type, buttons, form controls, header, bag drawer, footer, motion.
   To rebrand: change the tokens in :root and the two @font-face families. */

/* ---------- Fonts (self-hosted, OFL — see assets/fonts/*-OFL.txt) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var-italic-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-var-ext.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette: dark roast */
  --espresso: #1d1511;      /* page background */
  --espresso-deep: #140e0b; /* footer, wells */
  --roast: #241a15;         /* raised surfaces */
  --card: #2a1f19;          /* cards */
  --crema: #3a2a20;         /* soft fills, panels */
  --mocha: #6b4a36;         /* warm mid brown */
  --kraft: #a9825a;         /* bag paper, light brown */
  --copper: #b8643a;        /* secondary warm tone, used only in illustration */
  --cream: #f4e7d4;         /* text */
  --cream-2: rgba(244, 231, 212, 0.74);
  --cream-3: rgba(244, 231, 212, 0.58);
  --line: rgba(244, 231, 212, 0.12);
  --line-2: rgba(244, 231, 212, 0.22);
  --saffron: #e7a43c;       /* the one accent */
  --saffron-hi: #f1b75b;
  --saffron-lo: rgba(231, 164, 60, 0.14);
  --on-saffron: #1d1511;
  --ok: #9fb27a;            /* status only (admin, app) */
  --warn: #e7a43c;
  --alert: #d9785a;

  /* Type */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-text: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-hero: clamp(3.05rem, 1.55rem + 6.3vw, 7.4rem);
  --t-h2: clamp(2.15rem, 1.45rem + 2.9vw, 4.25rem);
  --t-h3: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem);
  --t-lede: clamp(1.05rem, 0.98rem + 0.32vw, 1.25rem);
  --t-small: 0.875rem;
  --t-label: 0.72rem;

  /* Space & shape */
  --gutter: clamp(20px, 4.6vw, 64px);
  --max: 1320px;
  --section: clamp(88px, 7vw + 56px, 168px);
  --r-sm: 6px;
  --r: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 rgba(244, 231, 212, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--espresso); color: var(--cream);
  font-family: var(--f-text); font-size: 1rem; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
::selection { background: var(--saffron); color: var(--on-saffron); }
[hidden] { display: none !important; }

/* Paper grain over everything: tactile, very quiet. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .82  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--saffron); color: var(--on-saffron); font-weight: 600; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--f-display); font-weight: 360; letter-spacing: -0.02em; line-height: 0.98;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 0;
  text-wrap: balance;
}
.h1 { font-size: var(--t-hero); line-height: 0.92; letter-spacing: -0.035em; }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.08; letter-spacing: -0.012em; font-variation-settings: 'opsz' 72, 'SOFT' 40, 'WONK' 0; font-weight: 420; }
.h1 em, .h2 em, .h3 em {
  font-style: italic; font-weight: 300; color: var(--saffron);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--cream-2); max-width: 36em; text-wrap: pretty; }
.prose { color: var(--cream-2); max-width: 34em; text-wrap: pretty; }
.prose + .prose { margin-top: 1em; }
.label {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-3);
}
.label--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-lo); }
.label--rule::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.serif-num { font-family: var(--f-display); font-style: italic; font-variation-settings: 'opsz' 48, 'SOFT' 100, 'WONK' 1; font-weight: 340; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--cream); --bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 48px; padding: 0.8em 1.45em; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em; line-height: 1.1;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { --bg: var(--saffron); --fg: var(--on-saffron); --bd: var(--saffron); box-shadow: 0 10px 30px -12px rgba(231, 164, 60, 0.55); }
.btn--primary:hover { --bg: var(--saffron-hi); --bd: var(--saffron-hi); }
.btn--ghost:hover { --bg: rgba(244, 231, 212, 0.06); --bd: var(--cream-3); }
.btn--cream { --bg: var(--cream); --fg: var(--espresso); --bd: var(--cream); }
.btn--cream:hover { --bg: #fff6ea; }
.btn--sm { min-height: 38px; padding: 0.55em 1.05em; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; box-shadow: none; }

.link {
  display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; color: var(--cream);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.link:hover { background-size: 100% 1px; color: var(--saffron); }
.link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Choice chips (radio pills used across pages) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span, button.chip {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 42px; padding: 0.5em 1.05em; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--cream-2); font-size: 0.9rem; font-weight: 500;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.chip span small, button.chip small { color: var(--cream-3); font-size: 0.8em; font-weight: 500; }
.chip:hover span, button.chip:hover { border-color: var(--cream-3); color: var(--cream); }
.chip input:active + span, button.chip:active { transform: scale(0.97); }
.chip input:checked + span, button.chip[aria-pressed='true'] {
  background: var(--cream); border-color: var(--cream); color: var(--espresso);
}
.chip input:checked + span small, button.chip[aria-pressed='true'] small { color: rgba(29, 21, 17, 0.6); }
.chip input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 3px; }
.chip input:disabled + span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field > .label { color: var(--cream-3); }
.input, .select {
  width: 100%; min-height: 50px; padding: 0.75em 1em; border-radius: var(--r-sm);
  background: rgba(244, 231, 212, 0.04); border: 1px solid var(--line-2); color: var(--cream);
  transition: border-color 0.2s, background-color 0.2s;
}
.input::placeholder { color: var(--cream-3); }
.input:hover, .select:hover { border-color: var(--cream-3); }
.input:focus-visible, .select:focus-visible { outline: none; border-color: var(--saffron); background: rgba(244, 231, 212, 0.06); box-shadow: 0 0 0 3px var(--saffron-lo); }
.input[aria-invalid='true'] { border-color: var(--alert); }
.select {
  appearance: none; padding-right: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f4e7d4' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
.select option { background: var(--roast); color: var(--cream); }

/* ---------- Photo slots: tinted placeholders a client replaces with real photography ---------- */
.photo {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--r);
  background:
    repeating-linear-gradient(135deg, rgba(244, 231, 212, 0.035) 0 1px, transparent 1px 14px),
    radial-gradient(120% 90% at 30% 20%, rgba(169, 130, 90, 0.28), transparent 60%),
    var(--crema);
  outline: 1px dashed rgba(244, 231, 212, 0.22); outline-offset: -10px;
  color: var(--cream-2); text-align: center;
}
.photo__tag {
  display: inline-flex; align-items: center; gap: 0.6em; max-width: calc(100% - 40px);
  padding: 0.55em 0.95em; border-radius: 999px; background: rgba(20, 14, 11, 0.55); backdrop-filter: blur(4px);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}
.photo__tag svg { width: 15px; height: 15px; flex: none; opacity: 0.8; }

/* ---------- Header ---------- */
.announce {
  position: relative; z-index: 31; background: var(--espresso-deep); border-bottom: 1px solid var(--line);
  font-size: 0.8rem; color: var(--cream-2); text-align: center; padding: 9px var(--gutter);
}
.announce b { color: var(--cream); font-weight: 600; }
.announce .sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--saffron); margin: 0 0.8em 0.18em; vertical-align: middle; }
@media (max-width: 640px) { .announce .hide-sm { display: none; } }

.header {
  position: sticky; top: 0; z-index: 30;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(29, 21, 17, 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 34px; height: 34px; color: var(--saffron); transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-24deg); }
.brand__word {
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 560; letter-spacing: -0.02em; line-height: 1;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1; padding-bottom: 3px;
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--cream-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--cream); background: rgba(244, 231, 212, 0.05); }
.nav a[aria-current='page'] { color: var(--cream); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--saffron); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--cream); transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.icon-btn:hover { background: rgba(244, 231, 212, 0.06); border-color: var(--cream-3); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }
.bag-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--saffron); color: var(--on-saffron);
  font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transform: scale(0); transition: transform 0.35s var(--ease-out);
}
.bag-count.has { transform: scale(1); }
.bag-count.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header__in { height: 66px; gap: 12px; }
  .brand__word { font-size: 1.42rem; }
  .brand__mark { width: 30px; height: 30px; }
  .header__actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; gap: 0; margin: 0; overflow-y: auto;
    padding: 110px var(--gutter) 32px; background: var(--espresso);
    transform: translateY(-102%); transition: transform 0.5s var(--ease-out); visibility: hidden;
  }
  .nav a { padding: 16px 0; border-radius: 0; font-family: var(--f-display); font-size: 2rem; font-weight: 360; color: var(--cream); border-bottom: 1px solid var(--line); font-variation-settings: 'opsz' 72, 'SOFT' 40; }
  .nav a:hover { background: none; color: var(--saffron); }
  .nav a[aria-current='page']::after { left: auto; right: 0; top: 50%; bottom: auto; margin-top: -3px; width: 6px; height: 6px; }
  .header.menu-open .nav { transform: none; visibility: visible; }
  .header.menu-open { background: var(--espresso); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open-lock { overflow: hidden; }
}
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.menu-btn .bars::before { top: 2px; }
.menu-btn .bars::after { top: 9px; }
.menu-open .menu-btn .bars::before { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 5.5px; transform: rotate(-45deg); }

/* ---------- Bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10, 7, 5, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--roast); border-left: 1px solid var(--line);
  transform: translateX(104%); visibility: hidden; transition: transform 0.55s var(--ease-out), visibility 0.55s;
}
.bag-open .scrim { opacity: 1; visibility: visible; }
.bag-open .drawer { transform: none; visibility: visible; }
.bag-open { overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.drawer__title small { font-family: var(--f-text); font-size: 0.85rem; color: var(--cream-3); margin-left: 6px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: var(--card); }
.ship-meter { display: grid; gap: 8px; font-size: 0.85rem; color: var(--cream-2); }
.ship-meter__bar { height: 4px; border-radius: 4px; background: rgba(244, 231, 212, 0.1); overflow: hidden; }
.ship-meter__bar i { display: block; height: 100%; width: 0; background: var(--saffron); border-radius: inherit; transition: width 0.6s var(--ease-out); }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.totals b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 420; font-variation-settings: 'opsz' 72; }
.drawer__note { font-size: 0.8rem; color: var(--cream-3); text-align: center; }

.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; animation: rise 0.45s var(--ease-out) both; }
.line-item__art { width: 64px; height: 80px; border-radius: 10px; background: var(--crema); display: grid; place-items: center; }
.line-item__art svg { width: 44px; height: auto; }
.line-item__name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 450; line-height: 1.2; font-variation-settings: 'opsz' 36, 'SOFT' 50; }
.line-item__meta { font-size: 0.82rem; color: var(--cream-3); margin-top: 2px; }
.line-item__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.line-item__actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.remove { font-size: 0.8rem; color: var(--cream-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.remove:hover { color: var(--cream); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 36px; }
.stepper button { width: 34px; height: 100%; display: grid; place-items: center; border-radius: 999px; color: var(--cream-2); transition: color 0.2s, background-color 0.2s; }
.stepper button:hover { color: var(--cream); background: rgba(244, 231, 212, 0.06); }
.stepper button:active { transform: scale(0.92); }
.stepper button svg { width: 12px; height: 12px; }
.stepper output { min-width: 22px; text-align: center; font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.empty {
  display: grid; justify-items: center; gap: 14px; padding: 56px 12px; text-align: center; color: var(--cream-2);
}
.empty svg { width: 96px; height: auto; color: var(--cream-3); }
.empty h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--cream); font-variation-settings: 'opsz' 72, 'SOFT' 80, 'WONK' 1; }
.empty p { max-width: 26em; font-size: 0.92rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: var(--cream); color: var(--espresso); font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 140%); transition: transform 0.5s var(--ease-out);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #6b8a3a; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--espresso-deep); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr)); gap: 48px; }
.footer__news h2 { font-family: var(--f-display); font-weight: 360; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: 'opsz' 144, 'SOFT' 50; }
.footer__news h2 em { font-style: italic; color: var(--saffron); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; font-weight: 300; }
.footer__news p { color: var(--cream-2); margin-top: 14px; max-width: 26em; }
.news-form { display: flex; gap: 8px; margin-top: 24px; max-width: 460px; }
.news-form .input { border-radius: 999px; padding-inline: 1.3em; }
.form-msg { min-height: 1.4em; margin-top: 10px; font-size: 0.85rem; color: var(--cream-3); }
.form-msg.ok { color: var(--saffron); }
.form-msg.err { color: var(--alert); }
.footer h3 { font-size: var(--t-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-3); font-weight: 600; margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--cream-2); transition: color 0.2s; }
.footer li a:hover { color: var(--saffron); }
.footer__word {
  margin-top: clamp(56px, 7vw, 96px); font-family: var(--f-display); font-weight: 300; font-size: clamp(5rem, 22vw, 22rem); line-height: 0.74; letter-spacing: -0.055em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; color: transparent;
  background: linear-gradient(180deg, rgba(244, 231, 212, 0.9) 0%, rgba(231, 164, 60, 0.55) 60%, rgba(231, 164, 60, 0.08) 100%);
  -webkit-background-clip: text; background-clip: text;
  white-space: nowrap; text-align: center; user-select: none; transform: translateY(0.06em);
}
.footer__base-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer__base { padding: 22px 0 26px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--cream-3); position: relative; background: var(--espresso-deep); }
.footer__base a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer__base a:hover { color: var(--cream); }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } .footer__news { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .news-form { flex-direction: column; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='fade'] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
