:root {
  --ink: #202321;
  --muted: #686c67;
  --paper: #f5f0e8;
  --paper-deep: #e9e0d2;
  --sun: #ee6a3c;
  --sun-deep: #c94b2c;
  --ocean: #176b74;
  --night: #17262a;
  --line: rgba(32, 35, 33, .17);
  --white: #fffdf8;
  --radius: 2px;
  --shell: min(1240px, calc(100vw - 48px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.section-shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--sun-deep);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow.light { color: #ffd2b3; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.24);
  transition: min-height .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  color: var(--ink);
  background: rgba(245, 240, 232, .93);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.09em;
}

.brand-copy {
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.brand-copy small { font-size: 8px; font-weight: 540; opacity: .7; letter-spacing: .08em; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(760px, 100svh);
  overflow: hidden;
  color: var(--white);
  background: #6a695f;
}

.hero-image,
.hero-shade,
.hero-noise { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-image { object-fit: cover; object-position: center 42%; transform: scale(1.015); }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9,15,17,.78) 0%, rgba(9,15,17,.38) 48%, rgba(9,15,17,.08) 75%),
    linear-gradient(0deg, rgba(9,15,17,.68) 0%, transparent 45%),
    linear-gradient(180deg, rgba(9,15,17,.34) 0%, transparent 24%);
}

.hero-noise {
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto 156px;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(64px, 9vw, 142px);
  font-weight: 470;
  line-height: .82;
  letter-spacing: -.065em;
}

.hero h1 em { color: #ffd2b3; font-weight: 470; }

.hero-lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.85;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { gap: 28px; color: var(--ink); background: #ffd2b3; border-color: #ffd2b3; }
.button-primary:hover { background: #fff0df; }
.button-ghost:hover { color: var(--ink); background: var(--white); }

.hero-meta {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 48px;
  display: flex;
  border-top: 1px solid rgba(255,255,255,.4);
}
.hero-meta div { display: grid; min-width: 112px; padding: 14px 8px 0 24px; }
.hero-meta strong { font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.hero-meta span { margin-top: 6px; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .12em; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1240px) / 2));
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 10px;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue span { width: 42px; height: 1px; background: currentColor; }

.intro {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1.2fr;
  gap: 56px;
  padding-block: 132px;
}
.intro-label { display: flex; gap: 15px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.intro-label span { color: var(--sun-deep); }
.intro-label p { margin: 0; }
.intro h2, .section-heading h2, .route h2, .site-footer h2 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}
.intro h2 { font-size: clamp(38px, 5vw, 72px); line-height: 1.02; }
.intro-note { align-self: end; }
.intro-note p { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.text-link { display: inline-flex; gap: 24px; align-items: center; color: var(--ink); font-size: 13px; font-weight: 760; text-decoration: none; border-bottom: 1px solid currentColor; }

.marquee { overflow: hidden; padding: 18px 0; color: var(--white); background: var(--sun); }
.marquee div { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 30s linear infinite; }
.marquee span { font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.marquee i { font-style: normal; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

.places { padding-block: 132px 150px; }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 46px; }
.section-heading h2 { max-width: 790px; font-size: clamp(42px, 6vw, 78px); line-height: 1; }
.section-heading > p { max-width: 370px; margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter {
  padding: 9px 16px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: .2s ease;
}
.filter:hover, .filter:focus-visible, .filter.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }

.places-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.place-card {
  grid-column: span 4;
  min-width: 0;
  background: rgba(255,255,255,.44);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, opacity .2s ease;
}
.place-card[hidden] { display: none; }
.place-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(55,40,28,.1); }
.place-card-wide { grid-column: span 6; }
.place-card figure { height: 290px; margin: 0; overflow: hidden; background: var(--paper-deep); }
.place-card-wide figure { height: 420px; }
.place-card-tall figure { height: 440px; }
.place-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.place-card:hover figure img { transform: scale(1.035); }
.card-topline { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.card-body { padding: 22px 22px 26px; }
.card-kicker { margin: 0 0 10px; color: var(--sun-deep); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.card-body h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 550; line-height: 1.15; }
.card-body h3 small { display: block; margin-top: 8px; color: var(--muted); font-family: inherit; font-size: 14px; font-style: italic; font-weight: 450; }
.card-body > p:last-child { margin: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.districts { padding-block: 130px; color: var(--white); background: var(--night); }
.section-heading-light p, .districts .section-heading > p { color: rgba(255,255,255,.62); }
.district-list { border-top: 1px solid rgba(255,255,255,.22); }
.district-row {
  display: grid;
  grid-template-columns: 80px 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: 164px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .25s ease, padding .25s ease;
}
.district-row:hover { padding-inline: 18px; background: rgba(255,255,255,.05); }
.district-index { color: #f6b792; font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.district-row h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 42px); font-weight: 480; }
.district-row p { margin: 7px 0 0; color: rgba(255,255,255,.55); font-size: 13px; }
.district-row ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.district-row li { padding: 7px 11px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.22); border-radius: 99px; font-size: 10px; }

.route { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; padding-block: 140px; }
.route-heading { position: sticky; top: 116px; align-self: start; }
.route h2 { font-size: clamp(48px, 6vw, 82px); line-height: .98; }
.route-heading > p:last-child { max-width: 460px; margin-top: 30px; color: var(--muted); line-height: 1.9; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--sun-deep); font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.timeline span { color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; }
.timeline h3 { margin: 7px 0 9px; font-family: Georgia, serif; font-size: 28px; font-weight: 520; }
.timeline p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.notes { padding-block: 130px; background: #efd9c6; }
.note-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(32,35,33,.24); border-left: 1px solid rgba(32,35,33,.24); }
.note-grid article { min-height: 280px; padding: 28px; border-right: 1px solid rgba(32,35,33,.24); border-bottom: 1px solid rgba(32,35,33,.24); }
.note-grid span { color: var(--sun-deep); font-family: Georgia, serif; font-style: italic; }
.note-grid h3 { margin: 72px 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 520; }
.note-grid p { margin: 0; color: #64605a; font-size: 13px; line-height: 1.85; }

.site-footer { padding-top: 110px; color: var(--white); background: #111b1e; }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr; gap: 80px; align-items: end; padding-bottom: 100px; }
.footer-mark { margin: 0 0 12px; color: #f6b792; font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.site-footer h2 { font-size: clamp(72px, 10vw, 150px); line-height: .72; }
.footer-copy p { margin: 0 0 32px; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.9; }
.light-link { color: var(--white); }
.credits { padding-block: 28px 38px; border-top: 1px solid rgba(255,255,255,.17); }
.credits summary { cursor: pointer; color: rgba(255,255,255,.74); font-size: 12px; font-weight: 680; }
.credit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 30px; padding: 22px 0; }
.credit-grid p { margin: 0; color: rgba(255,255,255,.48); font-size: 10px; line-height: 1.6; }
.credit-grid a { color: rgba(255,255,255,.75); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 30px; color: rgba(255,255,255,.38); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 820px); }
  .site-header { padding-inline: 18px; }
  .intro { grid-template-columns: 1fr 2fr; }
  .intro-note { grid-column: 2; }
  .place-card, .place-card-wide { grid-column: span 6; }
  .place-card figure, .place-card-wide figure { height: 320px; }
  .district-row { grid-template-columns: 55px 1fr; }
  .district-row ul { grid-column: 2; justify-content: flex-start; padding-bottom: 28px; }
  .route { grid-template-columns: 1fr; gap: 60px; }
  .route-heading { position: static; }
  .note-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .credit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { min-height: 68px; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    color: inherit;
    background: transparent;
    border: 0;
  }
  .menu-toggle > span:not(.sr-only) { width: 22px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-open .menu-toggle > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle > span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 80px 28px;
    color: var(--white);
    background: var(--night);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    transition: .25s ease;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
  .hero { min-height: 780px; }
  .hero-image { object-position: 62% center; }
  .hero-content { margin-bottom: 178px; }
  .hero h1 { font-size: clamp(58px, 18vw, 92px); }
  .hero-lead { font-size: 15px; line-height: 1.75; }
  .hero-meta { left: 14px; right: 14px; bottom: 34px; justify-content: stretch; }
  .hero-meta div { min-width: 0; flex: 1; padding-left: 14px; }
  .scroll-cue { display: none; }
  .intro { display: block; padding-block: 88px; }
  .intro-label { margin-bottom: 55px; }
  .intro-note { margin-top: 35px; }
  .marquee span { font-size: 19px; }
  .places { padding-block: 88px 100px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: 48px; }
  .section-heading > p { margin-top: 22px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .filter { flex: 0 0 auto; }
  .place-card, .place-card-wide { grid-column: 1 / -1; }
  .place-card figure, .place-card-wide figure, .place-card-tall figure { height: 310px; }
  .districts { padding-block: 88px; }
  .district-row { grid-template-columns: 40px 1fr; min-height: 190px; padding-block: 24px; }
  .district-row:hover { padding-inline: 0; }
  .district-row ul { gap: 6px; }
  .route { padding-block: 90px; }
  .route h2 { font-size: 52px; }
  .timeline li { grid-template-columns: 70px 1fr; }
  .notes { padding-block: 88px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-grid article { min-height: 220px; }
  .note-grid h3 { margin-top: 46px; }
  .site-footer { padding-top: 80px; }
  .footer-main { padding-bottom: 80px; }
  .site-footer h2 { font-size: 76px; }
  .credit-grid { grid-template-columns: 1fr; }
}

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