/* Wimmel Travel — design tokens (DESIGN.md).
   Ground is cream paper, ink is dark, one red accent, yellow only
   where the book puts it. Baloo 2 for display, Nunito Sans for body.
   Both self-hosted; no external font requests. */

@font-face {
  font-family: "Baloo 2";
  src: url("/static/fonts/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/static/fonts/NunitoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/static/fonts/NunitoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFF8E7;
  --ink: #2B2B2B;
  --ink-soft: rgba(43, 43, 43, 0.72);
  --red: #B92D2D;
  --red-dark: #9C2424;
  --yellow: #F2B705;
  --white: #FFFFFF;
  --line: #E8DCC8;
  --line-strong: #D9C9A8;
  --shadow: 0 8px 24px rgba(43, 43, 43, 0.10);
  --radius-card: 14px;
  --radius-input: 10px;
  --font-display: "Baloo 2", "Nunito Sans", sans-serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--paper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 2.5rem 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; max-width: 65ch; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.wordmark {
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.wordmark img {
  display: block;
  height: 40px;
  width: auto;
}
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-nav a:hover { color: var(--red); }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .wordmark img { height: 26px; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-small { padding: 9px 18px; font-size: 0.95rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }

/* Flashes */
.flashes { padding-top: 16px; }
.flash {
  border-radius: var(--radius-input);
  padding: 12px 16px;
  margin: 0 0 12px;
  font-weight: 700;
}
.flash-error { background: #FBE9E7; color: #7A1F1F; }
.flash-ok { background: #E8F5E9; color: #2E6B34; }

/* Hero */
.hero { padding: 40px 0 8px; }
.hero h1 { margin-top: 0; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }
.hero figure { margin: 28px 0 8px; }
.hero img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.hero figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }
.hero-actions { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 20px 0 8px; }
.hero-note { font-size: 0.95rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 32px 0; }
.section > .wrap > h2:first-child { margin-top: 0; }
.section-head { max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; }

/* Steps (how it works) */
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  line-height: 34px;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Scene strip */
.scenes {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) { .scenes { grid-template-columns: repeat(3, 1fr); } }
.scenes figure { margin: 0; }
.scenes img { border-radius: var(--radius-card); box-shadow: var(--shadow); }
.scenes figcaption { margin-top: 10px; font-weight: 700; }
.scenes figcaption span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }

/* Format cards */
.formats {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) { .formats { grid-template-columns: repeat(2, 1fr); } }
.format-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.format-card.hero-card { border: 2px solid var(--red); }
.format-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.format-card h3 { margin: 0 0 4px; }
.format-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--red);
  margin: 4px 0 10px;
}
.format-card p { color: var(--ink-soft); margin-bottom: 0; }
.format-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
}
.faq details p { margin: 10px 0 4px; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 32px 0 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 6px;
}
.footer-inner p { color: var(--ink-soft); }
.footer-meta { font-size: 0.95rem; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}
@media (min-width: 720px) { .form-card { padding: 32px; } }
.field { margin-bottom: 22px; }
.field > label, .field > .label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.hint { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 10px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-input);
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-weight: 700; font-size: 0.95rem; margin: 6px 0 0; }
.checkline { display: flex; gap: 10px; align-items: flex-start; }
.checkline input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--red); }
.checkline label { font-weight: 400; }

/* Choice grids (location, gender, toy) */
.choices {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) { .choices.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 560px) { .choices.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: block;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}
.choice label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.choice input:checked + label { border-color: var(--red); background: #FDF0E8; box-shadow: 0 0 0 1px var(--red); }
.choice input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
.toy-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
}

/* Steps indicator */
.steps-bar {
  display: flex;
  gap: 8px;
  margin: 20px 0 4px;
  list-style: none;
  padding: 0;
}
.steps-bar li {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.steps-bar li.done { background: var(--red); }
.steps-bar li.now { background: var(--yellow); }

/* Preview */
.preview-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 720px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
.preview-grid figure { margin: 0; }
.preview-grid img { border-radius: var(--radius-card); box-shadow: var(--shadow); }
.preview-grid figcaption { margin-top: 10px; font-weight: 700; }
.preview-grid figcaption span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
.preview-cover { grid-column: 1 / -1; }

/* Order summary / status */
.summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}
.summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0;
}
.summary dt { font-weight: 700; }
.summary dd { margin: 0; }
.status-pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.95rem;
}
.status-pill.paid { background: #E8F5E9; color: #2E6B34; }
.status-pill.delivered { background: #E8F5E9; color: #2E6B34; }

/* Narrow page */
.narrow { max-width: 640px; }
.page-head { padding-top: 32px; }
.page-head h1 { margin-top: 0; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Motion: one authored moment, the preview fading in once. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.preview-grid figure { animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.preview-grid figure:nth-child(2) { animation-delay: 0.08s; }
.preview-grid figure:nth-child(3) { animation-delay: 0.16s; }
.preview-grid figure:nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .preview-grid figure { animation: none; }
  html { scroll-behavior: auto; }
}
