:root {
  --bg: #f4ecdc;
  --paper: #fbf6ec;
  --card: #fffaf1;
  --ink: #2b2724;
  --muted: #5e554c;
  --line: rgba(43, 39, 36, 0.14);
  --drop: rgba(43, 39, 36, 0.22);
  --green: #2f6a43;
  --orange: #b0481c;
  --indigo: #3b4a9c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a18;
    --paper: #24211e;
    --card: #2b2723;
    --ink: #f1e9da;
    --muted: #bdb1a0;
    --line: rgba(241, 233, 218, 0.14);
    --drop: rgba(0, 0, 0, 0.5);
    --green: #83c89a;
    --orange: #f0915f;
    --indigo: #a9b6f5;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: env(safe-area-inset-top) clamp(16px, 4vw, 48px) 0;
  color: #2b2724;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav[data-tone="dark"] { color: #f6efe0; }
.nav.is-solid {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 3px 0 var(--drop);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  gap: clamp(0.75rem, 2.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: currentColor; }

/* ---------- journey: shared ---------- */
.journey { position: relative; }
.stage { position: relative; }
.scenes { margin: 0; padding: 0; list-style: none; }
.scene { --a: var(--accent); }
@media (prefers-color-scheme: dark) { .scene { --a: var(--accent-dark); } }

.scene__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene__copy {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 5vw, 72px);
  bottom: clamp(24px, 9vh, 96px);
  width: min(31rem, calc(100% - 32px));
  padding: 1.25rem 1.5rem 1.4rem;
  background: rgba(251, 246, 236, 0.93);
  color: #2b2724;
  border-top: 5px solid var(--accent);
  box-shadow: 7px 8px 0 rgba(38, 32, 28, 0.28);
}
.scene--right .scene__copy { left: auto; right: clamp(44px, 7vw, 110px); }
@media (prefers-color-scheme: dark) {
  .scene__copy { background: rgba(30, 28, 26, 0.9); color: #f1e9da; border-top-color: var(--accent-dark); box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.45); }
}
.scene__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a);
}
.scene__eyebrow span {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.4rem;
  border: 1.5px solid currentColor;
  letter-spacing: 0.06em;
}
.scene__title {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1.scene__title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.scene__title::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--a);
}
.scene__body { margin: 0; max-width: 34em; }

.scene__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid var(--a);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--a); color: #fffaf1; box-shadow: 4px 4px 0 rgba(38, 32, 28, 0.3); }
.btn--secondary { background: transparent; color: var(--a); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(38, 32, 28, 0.3); }
@media (prefers-color-scheme: dark) { .btn--primary { color: #1c1a18; } }

.rail { display: none; }
.stage__canvas, .stage__grain { display: none; }

/* ---------- journey: stacked static scenes (reduced motion / no JS) ---------- */
html:not([data-journey="journey"]) .scene {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  overflow: hidden;
  background: #e7d6b8;
}
html:not([data-journey="journey"]) .scene__copy { bottom: clamp(20px, 6vh, 64px); }

/* ---------- journey: pinned scroll flight ---------- */
html[data-journey="journey"] .journey {
  height: calc(var(--scenes) * 150vh + 100vh);
  height: calc(var(--scenes) * 150svh + 100lvh);
}
html[data-journey="journey"] .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: #e7d6b8;
}
html[data-journey="journey"].lock-vh .journey { height: calc(var(--scenes) * var(--scene-scroll) + var(--stage-h)); }
html[data-journey="journey"].lock-vh .stage { height: var(--stage-h); }
html[data-journey="journey"].lock-vh .scene__copy { bottom: calc(20px + var(--stage-h) - var(--vis-h)); }
html[data-journey="journey"] .stage__canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
}
html[data-journey="journey"] .stage.is-painted .stage__canvas { opacity: 1; }
html[data-journey="journey"] .stage__grain {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-journey="journey"] .scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
html[data-journey="journey"] .scene__poster { position: absolute; inset: 0; z-index: 0; opacity: 0; }
html[data-journey="journey"] .scene.is-poster .scene__poster { opacity: 1; }
html[data-journey="journey"] .stage.is-painted .scene__poster { visibility: hidden; }
html[data-journey="journey"] .scene__copy {
  opacity: 0;
  will-change: opacity, transform;
}
html[data-journey="journey"] .scene:first-child .scene__copy { opacity: 1; }
html[data-journey="journey"] .scene.is-active .scene__copy { pointer-events: auto; }

html[data-journey="journey"] .rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  z-index: 3;
  right: clamp(14px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  --a: var(--rail-accent, #b0481c);
}
.rail__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(43, 39, 36, 0.55);
  background: rgba(251, 246, 236, 0.7);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.rail__dot.is-on { background: var(--a); border-color: var(--a); transform: scale(1.25); }
.stage[data-night] .rail__dot { border-color: rgba(246, 239, 224, 0.7); background: rgba(30, 30, 50, 0.5); }
.stage[data-night] .rail__dot.is-on { background: var(--a); border-color: var(--a); }

/* ---------- supporting bands ---------- */
.wrap { width: min(1200px, calc(100% - clamp(32px, 8vw, 96px))); margin: 0 auto; }

.band { padding: clamp(72px, 11vw, 140px) 0; }
.band--dest { background: var(--bg); }
.band--food { background: var(--paper); border-top: 1px solid var(--line); }

.band__head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.band__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.band--food .band__kicker { color: var(--green); }
.band__head h2 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.band__lede { margin: 0; color: var(--muted); font-size: 1.1rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 6px 7px 0 var(--drop);
  overflow: hidden;
}
.card__img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-bottom: 1px solid var(--line); }
.card__text { padding: 1.1rem 1.2rem 1.35rem; }
.card h3, .dish h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.2;
}
.card p, .dish p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.dishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.dish {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 1.3rem;
  align-items: center;
  padding-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px dashed var(--line);
}
.dish__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 5px 6px 0 var(--drop);
}

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dishes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .dish { grid-template-columns: 38% 1fr; gap: 1rem; }
  .nav__links { gap: 0.9rem; }
  .nav__links a { font-size: 0.88rem; }
  .nav__brand { font-size: 1.05rem; }
  .scene__copy { left: 12px; right: 12px; width: auto; bottom: 20px; padding: 1rem 1.1rem 1.15rem; }
  .scene__body { font-size: 0.98rem; }
  html[data-journey="journey"] .rail { right: 12px; top: calc(var(--nav-h) + 14px); transform: none; flex-direction: row; gap: 7px; }
  .rail__dot { width: 9px; height: 9px; }
  html[data-journey="journey"] .stage__grain { display: none; }
}
@media (max-width: 380px) {
  .nav__links li:first-child { display: none; }
}

/* reveal on scroll */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.footer { background: #23302a; color: #efe6d4; padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__inner > div { max-width: 36rem; }
.footer p { margin: 0 0 0.6rem; }
.footer__brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.footer__note { color: #c5bba8; font-size: 0.95rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__links a { font-weight: 600; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: #f0915f; }

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