:root {
  --paper: #f5f1e8;
  --paper-deep: #ece5d6;
  --paper-light: #fbf9f4;
  --ink: #24342e;
  --ink-soft: #4d5b55;
  --ink-faint: #7a837d;
  --pine: #29493c;
  --pine-dark: #1d3529;
  --vermilion: #b44131;
  --vermilion-soft: #f0dcd5;
  --line: #d6cdb9;
  --line-soft: #e4dccb;
  --serif: "Frank Ruhl Libre", "David Libre", "David", "Times New Roman", serif;
  --sans: "Heebo", "Assistant", "Arial Hebrew", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --header-h: 3.5rem;
  --bottom-nav-h: 4rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1320px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--vermilion);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 4.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .55), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(180, 65, 49, .035), transparent 45%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--vermilion); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; color: var(--ink); }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--vermilion-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}
#main:focus-visible, #photo-credits:focus-visible { box-shadow: none; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -10rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
}
.skip-link:focus { top: .75rem; color: var(--paper); }

.noscript-note {
  margin: 1rem var(--gutter);
  padding: 1rem 1.25rem;
  border: 1px solid var(--vermilion);
  border-inline-start-width: 4px;
  background: var(--paper-light);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 232, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  min-height: 44px;
  align-self: stretch;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  margin-inline-end: auto;
}
.wordmark:hover { color: var(--ink); }
.wordmark-kanji {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--vermilion);
  color: var(--paper);
  font-family: var(--serif);
  font-size: .78rem;
  line-height: 1;
  border-radius: 50%;
  letter-spacing: -.02em;
}
.wordmark-latin {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .32em;
  margin-inline-end: -.32em;
}
.wordmark-year {
  font-family: var(--serif);
  font-size: .85rem;
  color: var(--vermilion);
}

/* view nav: fixed bottom bar on mobile, inline in header on wider screens */
.view-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: .25rem .5rem calc(.25rem + var(--safe-bottom));
  background: rgba(251, 249, 244, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(36, 52, 46, .06);
}

.view-button {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  min-height: 3.5rem;
  min-width: 44px;
  padding: .35rem .25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-faint);
  border-radius: var(--radius);
  transition: color .2s ease;
}
.view-button .icon { width: 1.4rem; height: 1.4rem; }
.view-button::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 30%;
  height: 2px;
  background: var(--vermilion);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.view-button:hover { color: var(--ink); }
.view-button.active,
.view-button[aria-pressed="true"] { color: var(--pine); }
.view-button.active::after,
.view-button[aria-pressed="true"]::after { transform: scaleX(1); }

.icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .875rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-button:hover { background: var(--paper-light); border-color: var(--ink-faint); }
.icon-button-label { display: none; }

@media (min-width: 760px) {
  body { padding-bottom: var(--safe-bottom); }
  :root { --header-h: 4.25rem; }
  .view-nav {
    position: static;
    display: flex;
    gap: .25rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .view-button {
    flex-direction: row;
    min-height: 44px;
    padding: 0 .9rem;
    gap: .45rem;
    font-size: .95rem;
  }
  .view-button .icon { width: 1.1rem; height: 1.1rem; }
  .view-button::after { top: auto; bottom: -.7rem; inset-inline: .9rem; }
  .icon-button { padding: 0 1rem; }
  .icon-button-label { display: inline; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: var(--ink);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 25, .55), transparent 45%);
  pointer-events: none;
}

.hero-credit {
  position: absolute;
  bottom: .5rem;
  inset-inline-end: .5rem;
  z-index: 1;
}
.hero-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .75rem;
  color: rgba(245, 241, 232, .88);
  font-size: .75rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.hero-credit a:hover { color: #fff; text-decoration: underline; }

.hero-text {
  position: relative;
  z-index: 2;
  margin: -3.25rem var(--gutter) 0;
  padding: 1.5rem 1.25rem 1.4rem;
  background: var(--paper);
  border-top: 3px solid var(--vermilion);
  box-shadow: 0 18px 40px -24px rgba(36, 52, 46, .35);
  max-width: 36rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vermilion);
  font-weight: 500;
  margin-bottom: .75rem;
}
.hero-rule { width: 2.5rem; height: 1px; background: currentColor; }

.hero-title {
  font-size: clamp(2.6rem, 11vw, 5.75rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero-title span { display: block; color: var(--pine); font-weight: 500; }

.hero-names {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}
.hero-lede {
  margin-top: .35rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-note {
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .83rem;
  color: var(--ink-soft);
}
.hero-note .icon { width: 1.05rem; height: 1.05rem; margin-top: .15rem; color: var(--vermilion); }

.hero-vertical { display: none; }

@media (min-width: 760px) {
  .hero {
    padding: 2.5rem var(--gutter) 3.5rem;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
  }
  .hero-figure {
    grid-column: 4 / -1;
    grid-row: 1;
    aspect-ratio: 16 / 10;
    border-radius: 2px;
  }
  .hero-text {
    grid-column: 1 / 7;
    grid-row: 1;
    margin: 0 0 -1.5rem;
    padding: 2rem 2rem 1.75rem;
    align-self: end;
  }
  .hero-vertical {
    display: block;
    position: absolute;
    top: 2.5rem;
    inset-inline-start: calc(var(--gutter) * .35);
    writing-mode: vertical-rl;
    font-family: var(--serif);
    font-size: .85rem;
    letter-spacing: .5em;
    color: var(--vermilion);
  }
}

@media (min-width: 1100px) {
  .hero-figure { grid-column: 5 / -1; aspect-ratio: 16 / 9.5; }
  .hero-text { grid-column: 1 / 7; padding: 2.5rem 2.5rem 2rem; }
}

/* ---------- Layout & views ---------- */

#main { display: block; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 3rem; }

.view-header { padding: 1rem 0 1.75rem; max-width: 42rem; }
.view-title { font-size: clamp(1.8rem, 6vw, 2.75rem); font-weight: 900; margin-top: .25rem; }
.view-lede { margin-top: .6rem; color: var(--ink-soft); }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--vermilion);
}

.journey-layout { display: block; }

/* day rail — horizontal on mobile */
#day-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin: 0 calc(var(--gutter) * -1) 1.5rem;
  padding: .5rem var(--gutter);
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  background: rgba(245, 241, 232, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
#day-nav::-webkit-scrollbar { display: none; }

.day-tab {
  appearance: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  min-width: 44px;
  padding: .35rem .8rem .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
  text-align: start;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.day-tab:hover { border-color: var(--ink-faint); color: var(--ink); }
.day-tab .date-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ink);
}
.day-tab .tab-title {
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-tab[aria-current="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper);
}
.day-tab[aria-current="true"] .date-num { color: var(--paper); }

@media (min-width: 960px) {
  .journey-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  #day-nav {
    top: calc(var(--header-h) + 1.5rem);
    margin: 0;
    padding: 0 0 0 0;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-inline-start: 1px solid var(--line);
  }
  .day-tab {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: none;
    padding: .7rem 1rem;
    gap: .9rem;
    position: relative;
    min-height: 52px;
  }
  .day-tab::before {
    content: "";
    position: absolute;
    inset-inline-start: -1px;
    top: .6rem;
    bottom: .6rem;
    width: 3px;
    background: transparent;
    transition: background-color .2s ease;
  }
  .day-tab:hover { background: rgba(255, 255, 255, .5); }
  .day-tab .date-num { font-size: 1.6rem; min-width: 2.2rem; color: var(--ink-faint); }
  .day-tab .tab-title { max-width: none; white-space: normal; font-size: .92rem; line-height: 1.35; }
  .day-tab[aria-current="true"] { background: none; color: var(--ink); font-weight: 500; }
  .day-tab[aria-current="true"] .date-num { color: var(--vermilion); }
  .day-tab[aria-current="true"]::before { background: var(--vermilion); }
}

/* ---------- Day content ---------- */

#day-content { min-width: 0; }

.day-heading { margin-bottom: 1.5rem; }
.day-top {
  font-size: clamp(1.9rem, 6.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
  margin-top: .3rem;
}
.day-heading .eyebrow { display: block; }

.day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  min-width: 44px;
  padding: .55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { background: var(--ink); color: var(--paper); }
.button.primary { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.button.primary:hover { background: var(--pine-dark); border-color: var(--pine-dark); }
.button.small { min-height: 44px; padding: .35rem .8rem; font-size: .83rem; }
.button .icon { width: 1.1rem; height: 1.1rem; }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.day-photo {
  margin: 0 calc(var(--gutter) * -1) 1.5rem;
  position: relative;
}
.day-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-deep);
}
.day-photo figcaption {
  padding: .5rem var(--gutter) 0;
  font-size: .78rem;
  color: var(--ink-faint);
}
@media (min-width: 600px) {
  .day-photo { margin-inline: 0; }
  .day-photo img { border-radius: 2px; aspect-ratio: 21 / 9; }
  .day-photo figcaption { padding-inline: 0; }
}

.day-intro {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.notice {
  margin: 0 0 1.5rem;
  padding: .85rem 1rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--vermilion);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: var(--ink-soft);
}
[dir="rtl"] .notice { border-radius: var(--radius) 0 0 var(--radius); }

.weather-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper-light);
  max-width: 100%;
}
.variant-button {
  appearance: none;
  border: 0;
  background: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background-color .2s ease, color .2s ease;
}
.variant-button:hover { color: var(--ink); }
.variant-button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: .9rem 0;
  border-block: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
}
.day-summary strong, .day-summary b { color: var(--ink); font-weight: 500; }
.day-summary dl, .day-summary dd { margin: 0; }

.route-strip {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 calc(var(--gutter) * -1) 2rem;
  padding: .25rem var(--gutter) .75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  list-style: none;
}
.route-point {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 500;
  color: var(--pine);
  white-space: nowrap;
}
.route-point + .route-point::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin: 0 .5rem;
  background: repeating-linear-gradient(to left, var(--ink-faint) 0 3px, transparent 3px 6px);
}
.route-point:first-child { color: var(--vermilion); }
@media (min-width: 600px) {
  .route-strip { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; row-gap: .5rem; overflow: visible; }
}

/* ---------- Timeline ---------- */

.timeline {
  --rail: 3rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: .75rem;
  bottom: .75rem;
  inset-inline-start: calc(var(--rail) / 2);
  width: 1px;
  background: linear-gradient(to bottom, var(--vermilion), var(--line) 12%, var(--line) 88%, transparent);
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: .9rem;
  padding: 0 0 1.75rem;
}
.stop > .stop-number,
.stop > .stop-time { grid-column: 1; }
.stop > .stop-content { grid-column: 2; grid-row: 1 / span 2; }

.stop-number {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  color: var(--ink);
}
.stop:first-child .stop-number { background: var(--vermilion); border-color: var(--vermilion); color: var(--paper); }

.stop-time {
  justify-self: center;
  margin-top: .3rem;
  padding: .1rem 0;
  background: var(--paper);
  position: relative;
  z-index: 1;
  font-size: .78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  color: var(--pine);
  white-space: nowrap;
}

.stop-content { padding-top: .1rem; min-width: 0; }
.stop-content h3, .stop-content h4, .stop-title {
  font-size: clamp(1.15rem, 3.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.stop-content p { margin-top: .4rem; color: var(--ink-soft); max-width: 40rem; }

.stop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .5rem;
  margin-top: .45rem;
  font-size: .8rem;
  color: var(--ink-faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .1rem .5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  background: transparent;
  white-space: nowrap;
}
.badge.book { border-color: var(--vermilion); color: var(--vermilion); background: rgba(180, 65, 49, .06); }
.badge.optional { border-style: dashed; color: var(--ink-faint); }
.badge.food { border-color: var(--pine); color: var(--pine); }

.stop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: .35rem;
}
.stop-links a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.stop-links a:hover { color: var(--vermilion); text-decoration-color: currentColor; }

.stop-tip {
  margin-top: .6rem;
  padding: .6rem .85rem;
  background: var(--paper-deep);
  border-radius: var(--radius);
  font-size: .87rem;
  color: var(--ink);
  max-width: 40rem;
}

.leg {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail, 3rem) minmax(0, 1fr);
  column-gap: .9rem;
  margin: -.75rem 0 1.25rem;
  font-size: .8rem;
  color: var(--ink-faint);
}
.leg > * { grid-column: 2; }
.leg::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink-faint);
  position: relative;
  z-index: 1;
}
.leg:not(:has(> *)) { padding-inline-start: calc(var(--rail, 3rem) + .9rem); display: block; }
.leg:not(:has(> *))::before { display: none; }

@media (max-width: 599px) {
  .timeline { --rail: 2.6rem; }
  .stop { column-gap: .7rem; padding-bottom: 1.5rem; }
  .stop-number { width: 1.8rem; height: 1.8rem; font-size: .88rem; }
  .stop-content p { font-size: .94rem; }
  .stop-meta .badge { padding: 0 .4rem; font-size: .7rem; }
}

@media (min-width: 960px) {
  .timeline { --rail: 4.5rem; }
  .stop-number { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; }
  .stop-time { font-size: .85rem; }
}

/* ---------- Bookings ---------- */

#booking-progress { margin-bottom: 1.5rem; max-width: 46rem; font-size: .9rem; color: var(--ink-soft); }

.progress-track {
  height: 6px;
  margin-top: .5rem;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to left, var(--vermilion), var(--pine));
  border-radius: inherit;
  transition: width .4s ease;
}

#booking-list { max-width: 46rem; border-top: 1px solid var(--ink); }

.booking-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .25rem .85rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .25s ease;
}

.booking-check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.booking-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.booking-check input[type="checkbox"]::after {
  content: "";
  width: .45rem;
  height: .8rem;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.booking-check input[type="checkbox"]:checked { background: var(--pine); border-color: var(--pine); }
.booking-check input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.booking-check input[type="checkbox"]:focus-visible { box-shadow: var(--focus); }

.booking-body { min-width: 0; }
.booking-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  padding-top: .45rem;
}
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin-top: .3rem;
  font-size: .84rem;
  color: var(--ink-soft);
}
.booking-links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .2rem; }
.booking-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 500;
}
.booking-notes { margin-top: .5rem; }
.booking-notes label { display: block; font-size: .8rem; color: var(--ink-faint); margin-bottom: .25rem; }
.booking-notes textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}
.booking-notes textarea:focus-visible { border-color: var(--pine); }

.booking-row.completed .booking-title {
  text-decoration: line-through;
  text-decoration-color: var(--vermilion);
  text-decoration-thickness: 1.5px;
  color: var(--ink-faint);
}
.booking-row.completed .booking-meta { opacity: .7; }

.backup-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
  max-width: 46rem;
}
.file-button { cursor: pointer; }
.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.backup-tools:has(.visually-hidden-input:focus-visible) .file-button { box-shadow: var(--focus); }

.storage-notice { margin-top: .75rem; font-size: .84rem; color: var(--ink-faint); max-width: 46rem; }
.storage-notice:empty { display: none; }

/* ---------- Guide ---------- */

#guide-content { display: block; }

.guide-section {
  padding: 2rem 0;
  border-top: 1px solid var(--ink);
}
.guide-section:first-child { padding-top: .5rem; border-top: 0; }
.guide-section > h2, .guide-section > h3 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.guide-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.guide-block { padding-inline-start: 1rem; border-inline-start: 2px solid var(--line); }
.guide-block h3, .guide-block h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.guide-block p, .guide-block li { color: var(--ink-soft); font-size: .95rem; }
.guide-block ul, .guide-block ol { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
.guide-block li + li { margin-top: .25rem; }

@media (min-width: 760px) {
  .guide-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 2.5rem; }
  .guide-block { grid-column: span 3; }
  .guide-block:nth-child(3n + 1) { grid-column: span 4; border-inline-start-color: var(--vermilion); }
  .guide-block:nth-child(3n + 2) { grid-column: span 2; }
  .guide-block:nth-child(3n) { grid-column: 2 / span 5; }
  .guide-block:only-child, .guide-block:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .guide-section { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 0 3rem; }
  .guide-section > h2, .guide-section > h3 { grid-column: 1; }
  .guide-section > :not(h2):not(h3) { grid-column: 2; }
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  font-size: .84rem;
  color: var(--pine);
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 1.1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-soft);
}
.footer-note { font-family: var(--serif); font-size: 1rem; color: var(--ink); }

.photo-credits { margin-top: 1.5rem; }
.photo-credits h2 {
  font-size: .8rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--vermilion);
  margin-bottom: .5rem;
}
.photo-credit { padding: .35rem 0; line-height: 1.5; }
.photo-credit + .photo-credit { border-top: 1px dotted var(--line); }
.photo-credit a { display: inline-block; padding: .55rem 0; overflow-wrap: anywhere; }

/* ---------- Status ---------- */

.toast {
  position: fixed;
  inset-inline: 1rem;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .75rem);
  z-index: 60;
  max-width: 26rem;
  margin: 0 auto;
  padding: .8rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: .9rem;
  box-shadow: 0 12px 32px -10px rgba(36, 52, 46, .5);
  opacity: 0;
  transform: translateY(.75rem);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast:not(:empty) { opacity: 1; transform: none; }
.toast.show, .toast.visible { opacity: 1; transform: none; }

.offline-status {
  position: fixed;
  top: calc(var(--header-h) + .5rem);
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 50;
  padding: .4rem .9rem;
  background: var(--paper-light);
  border: 1px solid var(--vermilion);
  color: var(--vermilion);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.offline-status:empty { display: none; }

@media (min-width: 760px) {
  .toast { bottom: calc(var(--safe-bottom) + 1.5rem); inset-inline: auto 1.5rem; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .day-tab[aria-current="true"], .variant-button[aria-pressed="true"], .view-button[aria-pressed="true"] { outline: 2px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* ---------- Print ---------- */

@media print {
  @page { margin: 14mm 12mm; }
  :root { --gutter: 0; }
  body { background: #fff; color: #000; padding: 0; font-size: 10.5pt; line-height: 1.45; }
  .site-header, .skip-link, .hero, .view-nav, #print-button, #day-nav,
  .day-actions, .weather-toggle, .stop-links, .booking-links, .backup-tools,
  .storage-notice, .toast, .offline-status, .source-link, .photo-credits, noscript,
  .day-photo, .button { display: none !important; }
  #main { max-width: none; padding: 0; }
  .journey-layout { display: block; }
  .day-top { font-size: 22pt; }
  .day-intro { font-size: 12pt; }
  .route-strip { flex-wrap: wrap; overflow: visible; margin: 0 0 12pt; padding: 0; }
  .timeline::before { background: #999; }
  .stop { break-inside: avoid; padding-bottom: 10pt; }
  .stop-number { border-color: #000; background: #fff; color: #000; }
  .stop:first-child .stop-number { background: #000; color: #fff; }
  .stop-time { background: #fff; color: #000; }
  .stop-content p, .stop-tip, .leg { color: #222; }
  .stop-tip { background: none; border: 1px solid #bbb; }
  .badge { border-color: #777 !important; color: #000 !important; background: none !important; }
  .notice { background: none; border-color: #999; }
  .booking-row { break-inside: avoid; }
  .booking-notes textarea { border: 0; padding: 0; min-height: 0; resize: none; background: none; }
  .booking-check input[type="checkbox"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guide-section { break-inside: avoid-page; display: block; }
  .guide-grid { display: block; }
  .guide-block { margin-bottom: 10pt; break-inside: avoid; }
  .site-footer { border-top: 1px solid #999; padding: 8pt 0 0; margin-top: 12pt; }
  a { color: #000; text-decoration: none; }
}

.stop-content .stop-time { display: inline-block; direction: inherit; margin: 0 0 .3rem; font-size: .87rem; }
.route-strip { gap: .6rem; }
.stop-meta .badge { white-space: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 759px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .offline-status { white-space: normal; border-radius: var(--radius); }
}
