:root {
  --ink: #1c1412;
  --paper: #f6efe6;
  --paper-2: #fbf6ee;
  --gold: #e8a05a;
  --gold-deep: #c45c28;
  --ocean: #6b1c28;
  --ocean-2: #4a121c;
  --stamp: #7a2432;
  --line: #d9c8b6;
  --muted: #4a3832;
  --focus: #1c1412;
  --charcoal: #1a1412;
  --maroon: #5c1824;
  --ember: #e07a3d;
  --shadow: 0 16px 40px rgba(26, 16, 14, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--ocean); }
a:hover { color: var(--stamp); }
h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
p { margin: 0.6rem 0; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.frame {
  margin: 10px;
  border: 12px solid var(--ember);
  background: var(--paper);
  min-height: calc(100vh - 20px);
  position: relative;
  z-index: 1;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip-link:focus { top: 0.5rem; }

.site-header {
  padding: 0.8rem 0 0;
  background-color: #4a121c;
  background-image: url("../images/wood-grain.svg");
  background-size: 220px 140px;
  color: #f6efe6;
}
.site-header a,
.site-header .brand-name,
.site-header .issue-line,
.site-header .who { color: #f6efe6; }
.site-header .brand-kicker { color: #f6efe6; }
.site-header .nav-toggle { color: #f6efe6; border-color: #f6efe6; background: transparent; }
.site-header .linkish { color: #f6efe6; }
.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.brand { display: flex; gap: 0.7rem; align-items: center; text-decoration: none; color: inherit; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
}
.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}
.nav-toggle, button, .button, .button-quiet {
  font: inherit;
  cursor: pointer;
}
.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.35rem 0.7rem;
}
#site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.4rem;
}
#site-nav.is-open { display: flex; }
#site-nav a { text-decoration: none; font-weight: 600; padding: 0.2rem 0; }
#site-nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); }
#auth-slot { display: flex; gap: 0.6rem; align-items: center; margin-left: auto; }
.who { font-weight: 700; }
.linkish {
  background: none;
  border: 0;
  color: var(--ocean);
  text-decoration: underline;
  padding: 0;
}
.issue-line {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.2rem auto 0;
  padding-bottom: 0.55rem;
  border-bottom: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.site-header::after {
  content: "";
  display: block;
  height: 12px;
  background-color: #241816;
  background-image:
    radial-gradient(circle at 7px 6px, #1a100e 2.4px, transparent 2.6px),
    radial-gradient(circle at 7px 6px, #5c463c 3.6px, transparent 3.8px);
  background-size: 18px 12px;
  background-repeat: repeat-x;
}
.demo-banner {
  margin: 0;
  padding: 0.65rem 1rem;
  background: #2a211c;
  color: #f6efe6;
  text-align: center;
}
.hero {
  display: grid;
  gap: 1.2rem;
  padding: 1.4rem 0 0.4rem;
}
.eyebrow, .kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stamp);
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); margin: 0.2rem 0; }
.dek, .lede { font-size: 1.2rem; max-width: 42rem; }
.hero-media img, .dish-photo img, .card-media img { display: block; width: 100%; }
.hero-media img { border: 8px solid var(--gold); }
.button-row, .tool-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.button, button[type="submit"], .heart, #print-actions button, #print-book {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  display: inline-block;
}
.button-quiet, .heart[aria-pressed="true"] { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
a.button { color: var(--paper); }
a.button:hover { color: var(--gold); }
a.button.button-quiet { color: var(--ink); background: transparent; }
a.button.button-quiet:hover { color: var(--stamp); }

.feature-band { display: grid; gap: 1rem; margin: 1.5rem 0; }
.feature {
  background-color: #4a121c;
  background-image: url("../images/wood-grain.svg");
  background-size: 220px 140px;
  color: #f6efe6;
  padding: 1.1rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.feature:hover { color: #f6efe6; }
.feature a { color: #f6efe6; }
.feature h2 { margin: 0.2rem 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.feature p { margin: 0; max-width: 36rem; }
.feature.journey-card { justify-content: flex-start; gap: 0.35rem; }
.feature.journey-card h2 { margin-top: 0.4rem; }
.feature.journey-card:first-child { grid-row: auto; min-height: 220px; }
.feature .count {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.filters {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 0.9rem;
  margin: 1rem 0;
}
.filter-grid { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.25rem; font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  font: inherit;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
  width: 100%;
}
.checks { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; font-weight: 600; }
.checks label { display: flex; gap: 0.35rem; align-items: center; font-weight: 600; }
.checks input { width: auto; }
.results-count { font-weight: 700; }
.grid { display: grid; gap: 1rem; }
.card {
  background-color: var(--paper-2);
  background-image: url("../images/wood-grain-light.svg");
  background-size: 220px 140px;
  border: 1px solid #3a2e28;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-body, .card-media { padding: 0; }
.card-body { padding: 0.85rem 0.9rem 1rem; }
.card h2 { font-size: 1.45rem; margin: 0.15rem 0; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card-media { position: relative; display: block; background: var(--ocean); }
.card-media img, .stop-hero img, .photo-figure img, .feature .lead-photo {
  display: block;
  width: 100%;
  object-fit: cover;
}
.card-media img { aspect-ratio: 3 / 2; }
.photo-credit { color: var(--muted); font-size: 0.82rem; line-height: 1.35; margin: 0.35rem 0 0.6rem; }
.card .photo-credit { padding: 0 0.9rem; margin: 0.4rem 0 0; }
.feature .photo-credit, .feature .photo-credit a { color: #f4efe4; }
.feature .lead-photo {
  width: 100%;
  margin: 0 0 0.7rem;
  height: 11rem;
  object-fit: cover;
}
.stop-hero { margin: 0.4rem 0 1rem; position: relative; }
.stop-hero img { height: 28rem; max-height: 34rem; aspect-ratio: auto; border: 8px solid var(--gold); }
.place-flag {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.credits-list { display: grid; gap: 1rem; }
.credits-list article { display: grid; grid-template-columns: 160px 1fr; gap: 0.8rem; align-items: center; }
.credits-list img { width: 160px; height: 106px; object-fit: cover; }
.card-swatch {
  display: grid;
  min-height: 140px;
  place-items: end start;
  padding: 0.8rem;
  color: #f7f1e4;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
}
.badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-inline { position: static; display: inline-block; }
.meta { color: var(--muted); font-size: 0.95rem; }
.note, .safety {
  background: #f3e7c8;
  border-left: 4px solid var(--gold-deep);
  padding: 0.7rem 0.8rem;
}

.dish-layout, .split { display: grid; gap: 1.2rem; }
.dish-photo img { border: 8px solid var(--gold); background: var(--ocean); }
.fun-facts {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-left: 8px solid var(--gold);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}
.authentic-touch {
  background: #f4efe4;
  border: 1px solid var(--ink);
  border-top: 6px solid var(--ocean);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}
.authentic-touch h2, .authentic-touch h3 { margin-top: 0; }
.story-block .authentic-touch { border-top: 0; border-left: 6px solid var(--ocean); }
.fun-facts h2 { font-size: 1.3rem; margin-top: 0; }
.fun-facts li + li { margin-top: 0.45rem; }
.origin-card, .rail-card {
  border: 1px solid var(--ink);
  padding: 0.9rem;
  background: white;
}
.origin-card dl { display: grid; grid-template-columns: 7rem 1fr; gap: 0.35rem 0.6rem; margin: 0; }
.origin-card dt { font-weight: 700; }
.origin-card dd { margin: 0; }
.ingredients, .steps { padding-left: 1.2rem; }
.ingredients li, .steps li { margin: 0.35rem 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; list-style: none; }
.tag-row li, .tag {
  border: 1px solid var(--ink);
  padding: 0.1rem 0.45rem;
  font-size: 0.85rem;
  background: var(--paper);
}
.section-rule { border-top: 1px solid var(--ink); margin-top: 1.4rem; padding-top: 0.2rem; }
.stack { display: grid; gap: 0.7rem; }
.note-card { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.stars { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: center; }
.stars legend { font-weight: 700; padding: 0; margin-right: 0.4rem; }
.form-card { display: grid; gap: 0.55rem; max-width: 42rem; }
.form-error { color: var(--stamp); min-height: 1.2rem; font-weight: 700; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.ad-slot { min-height: 0; }
.ad-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.map-layout { display: grid; gap: 1rem; }
#world-map { height: 68vh; min-height: 320px; background: #d7cbb8; border: 1px solid var(--ink); }
.leaflet-container { font: inherit; background: #d7cbb8; }
.country-group h3 { margin-bottom: 0.2rem; }
.dish-links { padding-left: 1.1rem; }
.book-list, .explore-grid { display: grid; gap: 0.8rem; }
.book-hero { display: grid; gap: 1rem; align-items: start; }
.cover { width: 100%; height: auto; border: 8px solid var(--gold); background: var(--ocean); }
.buy-box { border: 1px solid var(--ink); padding: 0.8rem 1rem; background: var(--paper-2); }
.price { font-weight: 700; }
.save-flag {
  display: inline-block;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}
.price-lines { padding-left: 1.1rem; }
.route-map img { width: 100%; border: 1px solid var(--ink); }
.status-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  font-size: 0.78rem;
}
.book-card, .explore-card {
  display: block;
  padding: 1rem;
  background-color: var(--paper-2);
  background-image: url("../images/wood-grain-light.svg");
  background-size: 220px 140px;
  border: 1px solid #3a2e28;
  text-decoration: none;
  color: inherit;
}
.book-card h2, .explore-card h2 { margin: 0.2rem 0; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6rem; }
.glossary dt { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; margin-top: 1rem; }
.glossary dd { margin: 0.2rem 0 0; }
.site-footer { border-top: 1px solid var(--ink); margin-top: 2rem; padding: 1.2rem 0 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.user-photo { max-height: 360px; object-fit: cover; border: 8px solid var(--gold); }
.print-only { display: none; }
.mod-list { padding-left: 1.1rem; }
.contents { columns: 1; padding-left: 1.2rem; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  #site-nav { display: flex; flex-basis: auto; flex-direction: row; gap: 0.9rem; flex: 1; }
  #auth-slot { margin-left: 0; }
  .hero, .dish-layout, .split, .map-layout { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
  .feature-band { grid-template-columns: 1fr 1fr; }
  .grid, .book-list, .explore-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .contents { columns: 2; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .feature-band { grid-template-columns: 1.4fr 1fr; }
  .feature:first-child { grid-row: span 2; min-height: 420px; }
}

:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .smoke span, .hero-media::after { animation: none; opacity: 0.2; }
}

@media print {
  body { background: white; color: black; font-size: 12pt; }
  .smoke, .hero-media::after, .site-header::after { display: none !important; }
  .frame, .card, .feature, .book-card, .explore-card, .site-header {
    background: white !important;
    background-image: none !important;
    color: black !important;
    box-shadow: none !important;
  }
  .frame { margin: 0; border: 0; }
  .site-header, .site-footer, .demo-banner, .no-print, .ad-slot, .issue-line, #auth-slot, .nav-toggle { display: none !important; }
  a { color: black; text-decoration: none; }
  .print-only { display: block; }
  .book-recipe { break-before: page; }
  .card, .feature, .fun-facts, .origin-card { box-shadow: none; }
  body[data-print="ingredients"] .steps,
  body[data-print="ingredients"] .steps-heading,
  body[data-print="ingredients"] .story-block,
  body[data-print="ingredients"] .fun-facts,
  body[data-print="ingredients"] .dish-photo,
  body[data-print="ingredients"] .stop-hero,
  body[data-print="ingredients"] .pairings,
  body[data-print="ingredients"] .variations,
  body[data-print="ingredients"] .dek { display: none !important; }
  body[data-print="ingredients"] .ingredients { list-style: none; padding-left: 0; }
  body[data-print="ingredients"] .ingredients li::before { content: "☐  "; }
}

body.is-print-preview { background: white; }
body.is-print-preview .smoke,
body.is-print-preview .hero-media::after,
body.is-print-preview .site-header::after { display: none !important; }
body.is-print-preview .frame,
body.is-print-preview .card,
body.is-print-preview .feature,
body.is-print-preview .book-card { background: white !important; background-image: none !important; color: black !important; }
body.is-print-preview .frame { margin: 0; border: 0; }
body.is-print-preview .site-header,
body.is-print-preview .site-footer,
body.is-print-preview .demo-banner,
body.is-print-preview .no-print,
body.is-print-preview .ad-slot,
body.is-print-preview .issue-line { display: none !important; }
body.is-print-preview .print-only { display: block; }
body.is-print-preview[data-print="ingredients"] .steps,
body.is-print-preview[data-print="ingredients"] .steps-heading,
body.is-print-preview[data-print="ingredients"] .story-block,
body.is-print-preview[data-print="ingredients"] .fun-facts,
body.is-print-preview[data-print="ingredients"] .dish-photo,
body.is-print-preview[data-print="ingredients"] .stop-hero,
body.is-print-preview[data-print="ingredients"] .pairings,
body.is-print-preview[data-print="ingredients"] .variations,
body.is-print-preview[data-print="ingredients"] .dek { display: none !important; }
body.is-print-preview[data-print="ingredients"] .ingredients { list-style: none; padding-left: 0; }
body.is-print-preview[data-print="ingredients"] .ingredients li::before { content: "☐  "; }

.arriving {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}
.next-stop {
  margin: 0.4rem 0 0.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px dashed var(--stamp);
  display: inline-block;
}
.passport-stamp {
  width: 9.5rem;
  height: 9.5rem;
  margin: 1rem 0;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--stamp);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
  font-size: 0.72rem;
  font-weight: 700;
}
.passport-stamp strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  max-width: 7rem;
}
.journey-key, .journey-list { display: grid; gap: 0.8rem; margin: 1rem 0; }
.journey-key { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.journey-key a {
  display: block;
  border: 1px solid var(--ink);
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  background: var(--paper-2);
}
.vehicle-icon { background: transparent; border: 0; }
.smoke {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.smoke span {
  position: absolute;
  width: 46vw;
  height: 38vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(246, 239, 230, 0.2), rgba(246, 239, 230, 0) 68%);
  filter: blur(6px);
  animation: smoke-drift 32s ease-in-out infinite;
}
.smoke span:nth-child(1) { left: -8vw; top: 8vh; }
.smoke span:nth-child(2) { right: -10vw; top: 36vh; animation-duration: 40s; animation-delay: -8s; }
.smoke span:nth-child(3) { left: 28vw; bottom: -6vh; animation-duration: 36s; animation-delay: -16s; }
@keyframes smoke-drift {
  0%, 100% { transform: translate3d(0, 8px, 0); opacity: 0.35; }
  50% { transform: translate3d(24px, -18px, 0); opacity: 0.6; }
}
.hero-media { position: relative; }
.hero-media::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2.2rem;
  height: 38%;
  pointer-events: none;
  background: radial-gradient(ellipse at 40% 100%, rgba(255, 244, 230, 0.28), rgba(255, 244, 230, 0) 70%);
  animation: smoke-drift 22s ease-in-out infinite;
}
.journey-list section { border-top: 1px solid var(--line); padding-top: 0.6rem; }
@media (max-width: 640px) {
  .credits-list article { grid-template-columns: 1fr; }
  .credits-list img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}
@media print {
  .stop-hero img, .photo-figure img { border-width: 0; max-height: none; }
}
