/* Vorrat website — built from the Vorrat design system (tokens.json + components/bundle.css).
   Fonts are self-hosted (OFL-1.1, from Fontsource) so no visitor IP goes to Google. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}

/* ---------- Tokens (Daylight) ---------- */
:root {
  --surface: #FFF7EC; --surface-raised: #FFFFFF; --surface-sunken: #F4EADB;
  --ink: #14112B; --ink-muted: #5A5470; --line: #14112B; --line-soft: #E7DAC6;
  --pool: #26CFE8; --yolk: #FFC21A; --tomato: #FF4A1C; --bubblegum: #FF5FB0; --lavender: #C8B6FF; --basil: #2DB84F;
  --on-color: #14112B; --accent-text: #C73A0E; --focus-ring: #14112B;
  --flash-sm: 3px 3px 0 0 #14112B; --flash-md: 6px 6px 0 0 #14112B; --flash-lg: 10px 10px 0 0 #14112B;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --radius-pill: 999px;
  --border-bold: 2px; --border-heavy: 3px;
  --dur-blink: 90ms; --dur-snap: 160ms; --dur-pop: 320ms;
  --ease-snap: cubic-bezier(0.2, 0, 0, 1); --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --page: 1120px;
  color-scheme: light dark;
}

/* ---------- Fridge Light (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #120F24; --surface-raised: #211C3D; --surface-sunken: #0B0918;
    --ink: #FFF7EC; --ink-muted: #B9B2CF; --line: #FFF7EC; --line-soft: #332C55;
    --accent-text: #FFC21A; --focus-ring: #FFC21A;
    --flash-sm: 3px 3px 0 0 #C8B6FF; --flash-md: 6px 6px 0 0 #C8B6FF; --flash-lg: 10px 10px 0 0 #C8B6FF;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: var(--border-heavy) solid var(--focus-ring); outline-offset: 3px;
}
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-6); } }
.skip { position: absolute; left: -9999px; top: var(--space-2); background: var(--surface-raised); color: var(--ink); padding: var(--space-2) var(--space-4); border: var(--border-bold) solid var(--line); border-radius: var(--radius-pill); z-index: 10; }
.skip:focus { left: var(--space-4); }
.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; }

/* ---------- Type styles ---------- */
.display-xl { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 9vw, 88px); line-height: 0.92; letter-spacing: -0.03em; margin: 0; }
.display-l { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 0.98; letter-spacing: -0.02em; margin: 0; }
.headline { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 32px); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.title-wide { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; margin: 0; }
.accent-xl { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 4.6vw, 44px); line-height: 1.05; margin: 0; }
.accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 30px; margin: 0; }
.body-l { font-size: 18px; line-height: 28px; margin: 0; }
.body-s { font-size: 14px; line-height: 20px; font-weight: 500; }
.label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.muted { color: var(--ink-muted); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: var(--border-bold) solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: block; width: 132px; flex: none; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-4); }
.lang { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: var(--space-2); }
.lang:hover { text-decoration: underline; }

/* ---------- Buttons (vr-btn) ---------- */
.vr-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 20px; letter-spacing: -0.01em;
  padding: var(--space-3) 22px; border: var(--border-bold) solid var(--line); border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--pool); color: var(--on-color); box-shadow: var(--flash-md); cursor: pointer; text-decoration: none;
  transition: transform var(--dur-snap) var(--ease-pop), box-shadow var(--dur-snap) var(--ease-pop);
}
.vr-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--flash-lg); }
.vr-btn:active { transform: translate(6px, 6px); box-shadow: none; transition-duration: var(--dur-blink); }
.vr-btn--yolk { background: var(--yolk); }
.vr-btn--large { padding: var(--space-4) var(--space-6); font-size: 18px; }
.vr-btn--quiet { background: var(--surface-raised); color: var(--ink); }
.vr-btn--small { padding: var(--space-2) var(--space-4); font-size: 13px; box-shadow: var(--flash-sm); }
.vr-btn--small:active { transform: translate(3px, 3px); }
.vr-btn[disabled] { background: var(--surface-sunken); color: var(--ink-muted); box-shadow: none; border-style: dashed; cursor: not-allowed; transform: none; }
/* On a brand fill the outline and shadow stay ink in both themes */
.on-fill .vr-btn, .on-fill .vr-input { border-color: var(--on-color); }

/* ---------- Hero ---------- */
.hero { background: var(--pool); color: var(--on-color); border-bottom: var(--border-bold) solid var(--on-color); overflow: hidden; }
.hero .wrap { display: grid; gap: var(--space-7); padding-top: var(--space-8); padding-bottom: var(--space-8); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.25fr 0.75fr; padding-top: var(--space-9); padding-bottom: var(--space-9); } }
.lockup { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; font-weight: 400; }
.lockup .tagline { display: block; }
.lockup .hero-line { display: block; max-width: 14ch; margin-top: var(--space-2); }
.lockup .wordmark { width: min(560px, 100%); height: auto; }
.lockup .tagline { max-width: 26ch; }
.hero .intro { margin-top: var(--space-5); max-width: 34ch; }
.hero-art { display: none; justify-self: center; }
.hero-art img { width: min(360px, 100%); height: auto; transform: rotate(8deg); }
@media (min-width: 900px) { .hero-art { display: block; } }

/* ---------- Waitlist form ---------- */
.waitlist {
  margin-top: var(--space-6); background: var(--surface-raised); color: var(--ink);
  border: var(--border-bold) solid var(--on-color); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 0 var(--on-color);
  padding: var(--space-5); max-width: 520px; display: grid; gap: var(--space-4);
}
.waitlist h2 { margin: 0; }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 700; }
.vr-input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
  border: var(--border-bold) solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); min-height: 48px;
}
.vr-input[aria-invalid="true"] { border-color: var(--accent-text); border-width: var(--border-heavy); }
.vr-input::placeholder { color: var(--ink-muted); opacity: 1; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-size: 14px; line-height: 20px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { min-height: 20px; font-weight: 700; margin: 0; outline: none; }
.form-status[data-state="ok"] { color: var(--ink); }
.form-status[data-state="error"] { color: var(--accent-text); }
.ts { min-height: 65px; }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
@media (min-width: 900px) { .section { padding: var(--space-9) 0; } }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-7); max-width: 760px; }
.loop-line { margin-top: var(--space-7); max-width: 46ch; }

/* ---------- Cards (vr-card) ---------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.vr-card {
  background: var(--surface-raised); border: var(--border-bold) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--flash-md);
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--dur-snap) var(--ease-pop), box-shadow var(--dur-snap) var(--ease-pop);
}
.vr-card:hover { transform: translate(-2px, -2px); box-shadow: var(--flash-lg); }
.vr-card__art { height: 160px; border-radius: var(--radius-md); border: var(--border-bold) solid var(--on-color); position: relative; overflow: hidden; display: grid; place-items: center; }
.vr-card__body { display: grid; gap: var(--space-2); padding: 0 var(--space-2) var(--space-3); }
.vr-card__body p { margin: 0; }
.art-pool { background: var(--pool); }
.art-yolk { background: var(--yolk); }
.art-checker { background: var(--lavender) url("../img/vorrat-checker.svg") 0 0 / 96px 96px; }
.art-lavender { background: var(--lavender); }

/* Item art, from the PantryCard preview */
.egg { width: 112px; height: 112px; }
.tom { position: relative; width: 120px; height: 90px; }
.tom i { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--tomato); box-shadow: 5px 5px 0 0 var(--on-color); }
.tom i::after { content: ""; position: absolute; left: 12px; top: 10px; width: 12px; height: 7px; border-radius: 50%; background: #FFFFFF; transform: rotate(-30deg); }
.tom i:nth-child(2) { left: 4px; top: 30px; } .tom i:nth-child(3) { left: 40px; top: 6px; } .tom i:nth-child(4) { left: 62px; top: 36px; }
.tom b { position: absolute; left: 44px; top: 0; width: 44px; height: 12px; border-radius: var(--radius-pill); background: var(--basil); transform: rotate(-18deg); }
.carton { position: relative; width: 62px; height: 100px; margin-top: 16px; background: #FFFFFF; border-radius: 6px 6px 8px 8px; box-shadow: 6px 6px 0 0 var(--on-color); transform: rotate(-8deg); }
.carton::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 20px; background: #FFFFFF; clip-path: polygon(10% 100%, 50% 0, 90% 100%); }
.carton::after { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 22px; background: var(--pool); }

/* ---------- Pills (sticker labels) ---------- */
.vr-pill {
  display: inline-flex; align-items: center; gap: var(--space-2); align-self: start; justify-self: start;
  font-family: var(--font-sans); font-weight: 800; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border: var(--border-bold) solid var(--on-color); border-radius: var(--radius-pill);
  color: var(--on-color); background: var(--yolk); box-shadow: 3px 3px 0 0 var(--on-color);
}
.vr-pill--pool { background: var(--pool); } .vr-pill--lavender { background: var(--lavender); }

/* ---------- Feature band ---------- */
.band { background: var(--lavender); color: var(--on-color); border-top: var(--border-bold) solid var(--on-color); border-bottom: var(--border-bold) solid var(--on-color); }
.band .wrap { display: grid; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-8); align-items: center; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr 1fr; } }
.receipt {
  justify-self: center; width: min(320px, 100%); background: #FFFFFF; color: var(--on-color);
  border: var(--border-bold) solid var(--on-color); border-radius: var(--radius-md); box-shadow: 10px 10px 0 0 var(--on-color);
  padding: var(--space-5); transform: rotate(-3deg); display: grid; gap: var(--space-2); font-size: 15px;
}
.receipt hr { border: 0; border-top: 2px dashed var(--on-color); margin: var(--space-2) 0; width: 100%; }
.receipt .row { display: flex; justify-content: space-between; gap: var(--space-4); }
.receipt .vr-pill { margin-top: var(--space-2); }

/* ---------- Closing CTA ---------- */
.cta .wrap { display: grid; gap: var(--space-5); justify-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: #14112B; color: #FFF7EC; padding: var(--space-8) 0 var(--space-7); --focus-ring: #FFC21A; }
.on-fill, .page-head, .band { --focus-ring: #14112B; }
.site-footer .wrap { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.site-footer .wordmark { width: 160px; height: auto; }
.site-footer a { color: #FFF7EC; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--space-6); }
.footer-meta { color: #B9B2CF; font-size: 14px; line-height: 20px; margin: var(--space-5) 0 0; }

/* ---------- Text pages (legal, help) ---------- */
.page-head { background: var(--lavender); color: var(--on-color); border-bottom: var(--border-bold) solid var(--on-color); }
.page-head .wrap { padding-top: var(--space-7); padding-bottom: var(--space-7); display: grid; gap: var(--space-3); }
.prose { max-width: 68ch; padding: var(--space-7) 0 var(--space-8); overflow-wrap: anywhere; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; margin: var(--space-6) 0 var(--space-3); }
.prose h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin: var(--space-5) 0 var(--space-2); }
.prose p, .prose ul, .prose ol, .prose address { margin: 0 0 var(--space-4); font-style: normal; }
.prose li { margin-bottom: var(--space-2); }
.note {
  background: var(--surface-raised); border: var(--border-bold) solid var(--line); border-radius: var(--radius-md); box-shadow: var(--flash-sm);
  padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-5);
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.download { margin: var(--space-5) 0; display: grid; justify-items: start; gap: var(--space-3); }
.download a:not(.vr-btn) { color: inherit; }
.table-scroll { overflow-x: auto; margin: 0 0 var(--space-4); }
.prose table { border-collapse: collapse; width: 100%; min-width: 480px; }
.prose th, .prose td { border-bottom: var(--border-bold) solid var(--line); padding: var(--space-2) var(--space-3) var(--space-2) 0; text-align: left; vertical-align: top; overflow-wrap: normal; }
.todo { background: var(--yolk); color: var(--on-color); border: var(--border-bold) dashed var(--on-color); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-5); font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: var(--space-4); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; background: var(--pool); color: var(--on-color);
  border: var(--border-bold) solid var(--on-color); border-radius: 50%;
}
.confirm-box { display: grid; gap: var(--space-4); justify-items: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vr-btn, .vr-card { transition: box-shadow var(--dur-snap) linear; }
  .vr-btn:hover, .vr-btn:active, .vr-card:hover { transform: none; }
}
