/* Itinerary: a timetable. Night-blue departure board, amber times, pale paper.
   Type: Bricolage Grotesque (display), Figtree (text), IBM Plex Mono (times). */
:root {
  --board: #0c1826;
  --board-2: #13243a;
  --paper: #f1f4f7;
  --card: #ffffff;
  --ink: #0c1826;
  --muted: #53647a;
  --line: #d3dae3;
  --amber: #ffb400;
  --amber-ink: #3a2a00;
  --sky: #7fb8ff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: #0b57d0; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.dark :focus-visible { outline-color: var(--amber); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .88em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -56px; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; z-index: 20; font-weight: 700; }
.skip:focus { top: 12px; }

.dark { background: var(--board); color: #e8eef6; }
.dark a { color: var(--sky); }
.top { background: var(--board); color: #e8eef6; border-bottom: 1px solid #22344b; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 16px; color: #fff !important; text-decoration: none; }
.wordmark i { width: 22px; height: 28px; border-radius: 4px; background: var(--amber); display: block; position: relative; }
.wordmark i::before, .wordmark i::after { content: ""; position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--board); }
.wordmark i::before { top: 6px; } .wordmark i::after { top: 16px; }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: #cfdbea; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; text-decoration: underline; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.section-lede { color: var(--muted); margin-top: 14px; max-width: 58ch; font-size: 19px; }
.dark .section-lede { color: #aebdd0; }

.hero { padding: clamp(44px, 7vw, 88px) 0 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); font-weight: 800; margin-top: 18px; color: #fff; }
.lede { font-size: 20px; color: #b7c6d8; margin-top: 22px; max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; background: var(--amber); color: var(--amber-ink); font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 10px; }
.dark a.btn { color: var(--amber-ink); }
.btn:hover { background: #ffc633; }
.btn-quiet { background: transparent; color: #fff !important; border: 1.5px solid #3b506b; }
.btn-quiet:hover { background: #17283d; }
.one-liner { margin-top: 26px; }
.one-liner code { display: inline-block; background: #08111c; border: 1px solid #22344b; color: #e8eef6; padding: 10px 14px; border-radius: 8px; max-width: 100%; overflow-wrap: anywhere; }

.hero-art { position: relative; min-height: 560px; }
.hero-art .page { position: absolute; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); display: block; }
.hero-art .p1 { width: 52%; left: 0; top: 40px; transform: rotate(-5deg); }
.hero-art .p2 { width: 52%; left: 30%; top: 0; transform: rotate(3deg); z-index: 1; }
.phone { position: absolute; right: 0; bottom: -40px; width: 40%; z-index: 2; background: #05090f; border-radius: 32px; padding: 7px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 2px #2b3c52; display: block; }
.phone img { border-radius: 26px; }

.board { background: #08111c; border-top: 1px solid #22344b; margin-top: clamp(48px, 7vw, 88px); padding: 22px 0; }
.board-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; font-family: var(--mono); font-size: 14px; }
.flap { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.flap b { color: var(--amber); font-weight: 500; font-size: 22px; letter-spacing: .02em; }
.flap span { color: #b7c6d8; }
.flap small { grid-column: 1 / -1; color: #7e91a8; font-size: 12px; }

.out-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.out { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.out .shot { background: #e5eaf0; border-radius: 10px; padding: 14px 14px 0; height: 270px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.out .shot img { width: 78%; border-radius: 4px 4px 0 0; box-shadow: 0 10px 24px rgba(12, 24, 38, .25); }
.out .shot.wide img { width: 92%; }
.out .shot.phoneshot img { width: 56%; border-radius: 14px 14px 0 0; }
.out p { color: var(--muted); font-size: 16px; }
.out .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; }
.ics { background: #08111c; color: #cfe0f5; border-radius: 10px; padding: 14px; height: 270px; overflow: hidden; font-size: 13px; line-height: 1.55; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ics b { color: var(--amber); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: #8a5a00; font-size: 15px; display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); margin-top: 8px; }
.dark .steps li { border-top-color: var(--amber); }
.dark .steps h3 { color: #fff; }
.dark .steps p { color: #aebdd0; }
.dark .steps li::before { color: var(--amber); }
.ask { margin: 32px 0 0; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; max-width: 30ch; letter-spacing: -.01em; }

.tz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tz { background: var(--board-2); border: 1px solid #25405e; border-radius: 16px; padding: 22px; }
.tz .t { font-family: var(--mono); color: var(--amber); font-size: 22px; letter-spacing: .01em; }
.tz h3 { color: #fff; margin: 10px 0 8px; }
.tz p { color: #aebdd0; font-size: 16px; }

.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.themes figure { margin: 0; }
.themes a.img { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 28px rgba(12, 24, 38, .22); transition: transform .2s; }
.themes a.img:hover { transform: translateY(-4px); }
.themes figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.themes figcaption b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); }

.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.install > div { min-width: 0; }
pre { margin: 10px 0 0; background: #08111c; color: #e1ecf9; border-radius: 10px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.note { color: var(--muted); margin-top: 22px; }

.ex-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ex-list li { display: grid; grid-template-columns: 1.4fr 1fr 2fr; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ex-list b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.ex-list span { color: var(--muted); font-size: 15px; }
.ex-list .links { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }

.foot { background: var(--board); color: #aebdd0; padding: 48px 0; font-size: 15px; }
.foot a { color: var(--sky); }
.foot-row { display: grid; gap: 14px; }

body:has(.lost) { background: var(--board); }
.lost { padding: 120px 0; background: var(--board); color: #e8eef6; min-height: 60vh; }
.lost h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); margin: 14px 0; font-weight: 800; }
.lost .lede { margin-top: 0; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; max-width: 560px; margin: 0 auto; width: 100%; }
  .out-grid { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .board-row, .tz-grid, .install, .steps { grid-template-columns: 1fr; }
  .ex-list li { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero-art { min-height: 440px; }
  .out-grid { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nav { gap: 16px; }
  .lede { font-size: 18px; }
}
