/* Shared palette and type from the New York field guide. */
:root {
  --paper: #f3efe4;
  --sheet: #faf8f1;
  --ink: #0b1d2a;
  --muted: #505b59;
  --line: #bdbeb3;
  --blue: #145c7d;
  --signal: #a53a20;
  --dark: #152e39;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .19em; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid #bf570a; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { max-width: 1510px; margin-inline: auto; padding-inline: clamp(18px, 5.2vw, 88px); }
.skip { position: absolute; z-index: 4; left: 8px; top: 8px; padding: .7rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--ink); background: var(--sheet); }
.topline, .navlinks, .brand, .eyebrow, .button, .section-head, .page-trail, .footline, .legend { display: flex; align-items: center; }
.topline { min-height: 76px; gap: clamp(20px, 3vw, 66px); }
.brand { flex-shrink: 0; gap: 10px; text-decoration: none; font: 750 clamp(23px, 2.6vw, 34px)/1 var(--sans); letter-spacing: -.075em; }
.brand .sign { width: 32px; height: 32px; color: var(--paper); background: var(--ink); display: grid; place-items: center; }
.sign svg { width: 24px; height: 24px; }
.navlinks { gap: clamp(13px, 2.3vw, 36px); margin-left: auto; }
.navlinks a, .contact { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: .87rem; font-weight: 620; }
.navlinks .here { color: var(--signal); }
.navlinks .here::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.contact { border-left: 1px solid var(--line); padding-left: 24px; gap: 9px; }
.hero { padding-block: clamp(30px, 4.3vw, 70px); display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(20px, 3.5vw, 66px); }
.eyebrow, .micro, .page-trail, .chapter-no, .legend, .stamp { font: 650 .69rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .095em; }
.eyebrow { color: var(--signal); gap: 12px; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
h1, h2, h3, p, figure { margin: 0; }
h1, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -.065em; }
.hero h1 { font-size: clamp(4.2rem, 7.6vw, 8.1rem); line-height: .92; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-weight: 400; color: #284952; }
.lede { font: 1.18rem/1.52 var(--serif); max-width: 43ch; margin-top: 24px; }
.hero .lede { max-width: 35ch; font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }
.button { background: var(--ink); color: var(--sheet); text-decoration: none; min-height: 46px; gap: 18px; padding: 11px 18px; font-weight: 650; font-size: .9rem; }
.button:hover { color: white; background: #2b4952; }
.text-action { display: inline-flex; min-height: 44px; align-items: center; font-size: .88rem; font-weight: 650; }
.map-plate { background: var(--dark); color: var(--sheet); padding: 12px; box-shadow: 4px 4px 0 #b9bdac; transform: rotate(.45deg); }
.plate-inner { border: 1px solid #69808a; position: relative; }
.plate-inner::before, .plate-inner::after { content:"+"; font: 15px/1 var(--mono); color: #b3c3b9; position: absolute; top: -8px; }
.plate-inner::before { left: -5px; }
.plate-inner::after { right: -5px; }
.map-top, .legend { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 13px; color: #dfdfc9; }
.map-top { font: 600 .62rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .11em; border-bottom: 1px solid #667b80; }
.map-plate img { width: 100%; height: auto; display: block; }
.legend { border-top: 1px solid #667b80; font-size: .59rem; letter-spacing: .055em; }
.legend i { display: inline-block; width: 22px; height: 3px; background: #e8a16c; vertical-align: middle; margin-right: 6px; }
.editionbar { background: var(--ink); color: var(--paper); }
.editionbar .shell { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 550 .65rem/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.editionbar b { color: #efbb85; }
.sections { padding-block: clamp(38px, 5vw, 80px); }
.section-head { align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
.section-head h2, .reading h2, .sources h2 { font: 500 clamp(2.1rem, 3.8vw, 4.1rem)/1.04 var(--serif); letter-spacing: -.05em; }
.section-head .micro, .label { color: var(--muted); }
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--ink); }
.chapter { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--sheet); padding: 19px clamp(14px, 1.8vw, 30px) 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.chapter:hover { background: #e9e7da; color: var(--ink); }
.chapter-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.chapter-no, .place-label { display: inline-flex; align-items: center; gap: 7px; }
.chapter-no i, .place-label::before { content: ""; height: 10px; width: 10px; border: 3px solid var(--regional, var(--signal)); border-radius: 50%; }
.chapter .arrow { font-size: 1.2rem; line-height: 1; }
.chapter h3 { font: 500 clamp(1.4rem, 2.2vw, 2.45rem)/1.1 var(--serif); letter-spacing: -.045em; }
.chapter small { margin-top: 9px; color: var(--muted); font-size: .82rem; }
.index-section { background: var(--sheet); border-top: 1px solid var(--ink); }
.index-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.search label { display: block; margin-bottom: 4px; }
.search input { font: inherit; background: transparent; border: 1px solid #87928a; border-radius: 0; padding: 10px 13px; width: min(265px, 100%); min-height: 44px; }
.search-status { margin-bottom: 12px; color: var(--muted); }
.city-group { display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--ink); padding-block: 20px 28px; gap: clamp(20px, 4vw, 70px); }
.city-group h3 { font: 500 1.75rem/1.13 var(--serif); letter-spacing: -.035em; margin: 10px 0; }
.city-group h3 a { text-decoration-thickness: 1px; }
.city-list { margin: 0; padding: 0; list-style: none; }
.city-list li + li { border-top: 1px solid var(--line); }
.city-list a { display: grid; grid-template-columns: 1.05fr 1fr auto; gap: 12px; min-height: 52px; align-items: center; padding: 8px 0; text-decoration: none; }
.city-list strong { font-weight: 650; }
.city-list small { color: var(--muted); font: .95rem/1.35 var(--serif); }
.city-list a:hover strong { text-decoration: underline; }
.page-trail { flex-wrap: wrap; gap: 10px; padding-top: 24px; color: var(--muted); }
.page-trail a { display: inline-flex; align-items: center; min-height: 36px; }
.story-hero { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 4vw; padding-block: clamp(28px, 4vw, 66px); }
.story-hero h1 { font-size: clamp(3rem, 6.4vw, 6.8rem); line-height: .97; }
.story-hero .lede { max-width: 52ch; }
.route-ticket { border: 1px solid var(--ink); border-top: 6px solid var(--regional, var(--blue)); padding: 18px; background: var(--sheet); }
.route-ticket h2 { font: 500 1.6rem/1.1 var(--serif); margin: 0 0 15px; }
.route-ticket a { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; border-top: 1px solid var(--line); min-height: 42px; font-size: .86rem; }
.reading { background: var(--sheet); border-block: 1px solid var(--ink); }
.essay { display: grid; grid-template-columns: .67fr 1.33fr; column-gap: 6vw; padding-block: 32px; border-bottom: 1px solid var(--line); }
.essay:last-child { border: 0; }
.essay .micro { color: var(--signal); padding-top: 7px; }
.essay h2 { font-size: clamp(1.9rem, 3.1vw, 3.2rem); margin-bottom: 15px; }
.essay p { font: 1.1rem/1.65 var(--serif); max-width: 64ch; }
.source-link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; font: 625 .88rem/1.45 var(--sans); color: var(--blue); text-decoration-thickness: 1px; }
.sources { padding-block: 25px; color: var(--muted); font-size: .86rem; border-bottom: 1px solid var(--line); }
.next-list { display: flex; flex-wrap: wrap; gap: 10px; }
.next-list a { border: 1px solid var(--ink); display: flex; gap: 14px; align-items: center; padding: 10px 15px; min-height: 44px; text-decoration: none; background: var(--sheet); }
.next-list a:hover { background: var(--ink); color: var(--paper); }
footer { background: var(--ink); color: var(--paper); }
footer .shell { padding-block: 24px; }
.footline { flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footline a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
footer a:hover { color: #f5c4a5; }
footer .footbrand { font-size: 1.6rem; font-weight: bold; text-decoration: none; letter-spacing: -.075em; }
@media (max-width: 920px) {
  .topline { gap: 16px; }
  .navlinks { gap: 16px; }
  .contact { padding-left: 14px; }
  .hero { grid-template-columns: .92fr 1.08fr; gap: 24px; }
  .hero h1 { font-size: clamp(3.7rem, 8vw, 6rem); }
  .chapter-top { margin-bottom: 16px; }
}
@media (max-width: 730px) {
  .topline { flex-wrap: wrap; padding-top: 10px; gap: 0; }
  .brand { min-height: 44px; }
  .navlinks { flex: 1 0 100%; order: 3; gap: 0; justify-content: space-between; border-top: 1px solid var(--line); }
  .contact { margin-left: auto; border: 0; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(4.3rem, 13vw, 6.5rem); }
  .hero h1 span, .hero h1 em { display: inline; }
  .map-plate { max-width: 580px; width: 100%; justify-self: center; }
  .chapters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-hero { grid-template-columns: 1fr; gap: 24px; }
  .route-ticket { max-width: 470px; }
  .city-group, .essay { grid-template-columns: 1fr; gap: 12px; }
  .editionbar .shell { flex-wrap: wrap; gap: 2px 20px; padding-block: 9px; }
}
@media (max-width: 430px) {
  .hero h1 span, .hero h1 em { display: block; }
  .chapters { grid-template-columns: 1fr; }
  .chapter { padding: 15px; }
  .chapter-top { margin-bottom: 6px; }
  .city-list a { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .city-list small { grid-column: 1; }
  .city-list .arrow { grid-column: 2; grid-row: 1 / 3; }
  .navlinks a, .contact { font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
