/* visitcolumbus.ryanlight.dev — self-contained. No CDN fonts, no external assets. */

:root {
  --paper:   #faf6f0;
  --paper-2: #f3ede4;
  --card:    #ffffff;
  --ink:     #161e29;
  --ink-2:   #33404f;
  --muted:   #5b6877;
  --line:    #e2d9cc;
  --brick:   #a33d28;
  --river:   #185c68;
  --gold:    #9c6614;
  --plum:    #6a3a63;
  --wrap:    1080px;
  --radius:  14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .eyebrow, .kind, .daynav, .day-meter, .leg-chip, .hero-stats, .day-num {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.14; letter-spacing: -0.02em; margin: 0; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--river); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
/* The skyline runs horizontally through the middle of the frame, so the copy is
   split vertically — title above it, sub and stats below — rather than centred
   across it. Works at every width without per-breakpoint cropping. */

.hero {
  position: relative;
  min-height: 78dvh;
  display: flex;
  overflow: hidden;
  background: #101b2b;
  color: #fff;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The skyline runs through the lower-middle of the frame at every width, and at a
   narrow portrait viewport the whole image height is visible, so object-position
   cannot rescue the collision. Weight a scrim toward the copy instead. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(
    to top,
    rgba(9, 14, 24, .95) 0%,
    rgba(9, 14, 24, .92) 34%,
    rgba(9, 14, 24, .78) 62%,
    rgba(9, 14, 24, .34) 85%,
    rgba(9, 14, 24, 0) 100%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 2.25rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.hero-top   { text-shadow: 0 2px 26px rgba(6,10,18,.85), 0 1px 3px rgba(6,10,18,.9); }
.hero-bottom{ text-shadow: 0 2px 22px rgba(6,10,18,.9),  0 1px 3px rgba(6,10,18,.95); }

.eyebrow {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ffd9a6;
}

.hero h1 {
  font-family: ui-serif, Georgia, "Iowan Old Style", serif;
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero-sub {
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: #f3e7d6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #ffd9a6;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ded2c2;
  margin-top: .35rem;
}

/* ── the prompt, sitting at the very top of the content ───────────────────── */

.prompt-wrap {
  background: var(--paper);
  padding: 0 1.25rem 3.5rem;
}

.prompt-card {
  max-width: var(--wrap);
  margin: -3.25rem auto 0;
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--brick);
  border-radius: var(--radius);
  padding: 2rem clamp(1.25rem, 4vw, 2.75rem) 2.25rem;
  box-shadow: 0 18px 46px -24px rgba(22,30,41,.5);
}

.prompt-card h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  margin-bottom: .7rem;
}

.prompt-lead { color: var(--ink-2); max-width: 62ch; }

#prompt-text {
  margin: 1.4rem 0 1rem;
  padding: 1.2rem 1.35rem;
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .93rem;
  line-height: 1.72;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-foot {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
}

/* ── intro ────────────────────────────────────────────────────────────────── */

section > .wrap > h2,
.map-sec h2, .intro h2, .practical h2, .caveat h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: .85rem;
}

.intro { padding: 1rem 0 3.25rem; }

.intro-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: .5rem;
}
.intro-grid p { color: var(--ink-2); }

.basebar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem .85rem;
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink-2);
}
.pin {
  font: 700 .68rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--brick);
  color: #fff;
  padding: .42rem .6rem;
  border-radius: 999px;
}

/* ── schematic map ────────────────────────────────────────────────────────── */

.map-sec { padding: 2.5rem 0 3.25rem; background: var(--paper-2); }
.lede { color: var(--muted); max-width: 60ch; margin-bottom: 1.5rem; }

.map-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  overflow-x: auto;
}
#map { display: block; width: 100%; height: auto; min-width: 560px; }

.map-hint { display: none; margin: .7rem 0 0; font-size: .85rem; color: var(--muted); font-style: italic; }
@media (max-width: 640px) { .map-hint { display: block; } }

.spoke { stroke: #d0c3b2; stroke-width: 1.5; stroke-dasharray: 4 5; }

.node circle { fill: #fff; stroke: var(--river); stroke-width: 2; }
.node-base circle { fill: var(--brick); stroke: var(--brick); }

.node-name {
  font: 700 15px/1 ui-sans-serif, system-ui, sans-serif;
  fill: var(--ink);
}
.node-mins {
  font: 600 13px/1 ui-sans-serif, system-ui, sans-serif;
  fill: var(--river);
  font-variant-numeric: tabular-nums;
}
.node-base .node-name { font-size: 16px; }
.node-base .node-name, .node-base .node-mins { fill: #fff; }

/* SVG type is in user units and does not scale with the viewport, so bump it
   once the map is squeezed. */
@media (max-width: 760px) {
  .node-name { font-size: 17px; }
  .node-mins { font-size: 14.5px; }
  .node-base .node-name { font-size: 17px; }
}

/* ── day navigation ───────────────────────────────────────────────────────── */

.daynav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .6rem 1.25rem;
  background: rgba(250,246,240,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.daynav-link {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  text-decoration: none;
  font-size: .85rem;
  white-space: nowrap;
}
.daynav-link b { color: var(--brick); font-weight: 700; }
.daynav-link:hover { border-color: var(--brick); }
.daynav-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.daynav-link.is-current b { color: #ffd9a6; }

/* ── a day ────────────────────────────────────────────────────────────────── */

.day { padding: 3.25rem 0 1rem; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }

.day-head { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 2rem; }

.day-num {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.day-num-label {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c9bfb2;
}
.day-num b { font-size: 1.9rem; line-height: 1; font-weight: 700; color: #ffd9a6; }

.day-tag {
  margin: 0 0 .3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brick);
}
.day-head-text h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); }
.day-summary { margin: .85rem 0 0; color: var(--ink-2); max-width: 62ch; }

.day-meter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}
.day-meter li {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
}
.meter-k { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.meter-v { font-size: .9rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── timeline ─────────────────────────────────────────────────────────────── */

/* `margin: 0` here would beat .wrap's `margin-inline: auto` on source order and
   silently un-centre the whole timeline on wide screens. */
.timeline { list-style: none; margin: 0 auto; }

.stop {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 0 1.25rem;
  padding: 1.35rem 1.4rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 12px;
}

.stop-time {
  font: 700 .84rem/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: .18rem;
  white-space: nowrap;
}

.stop-body h3 { font-size: 1.24rem; margin: .45rem 0 .2rem; }
.stop-where { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); }
.stop-notes { margin: 0; color: var(--ink-2); font-size: .98rem; }

.kind {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .24rem .55rem;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.kind-breakfast, .kind-lunch, .kind-dinner { background: #f6e3d8; color: #8a3218; }
.kind-attraction { background: #dceaec; color: #14525d; }
.kind-activity   { background: #e2ecd9; color: #3c5c22; }
.kind-evening    { background: #e7dff0; color: #5a2f54; }
.kind-transit    { background: #e6e2db; color: #4a4740; }

.stop-breakfast, .stop-lunch, .stop-dinner { border-left-color: var(--brick); }
.stop-attraction { border-left-color: var(--river); }
.stop-activity   { border-left-color: #547a33; }
.stop-evening    { border-left-color: var(--plum); }
.stop-transit    { border-left-color: #a49c90; background: var(--paper-2); }

/* legs between stops */
.leg { padding: .55rem 0 .55rem 1.15rem; }

.leg-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .6rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .8rem;
  color: var(--ink-2);
}
.leg-mode {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 999px;
  color: #fff;
}
.leg-walk  { background: #3f6b2c; }
.leg-drive { background: var(--river); }
.leg-mins  { font-variant-numeric: tabular-nums; color: var(--ink); }
.leg-dist, .leg-from { color: var(--muted); }
.leg-alt  { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); font-style: italic; }

/* alternative-day panel */
.alt {
  margin: 1.5rem 0 .5rem;
  padding: 1.4rem 1.5rem;
  background: #f1eadf;
  border: 1px dashed #c3b4a0;
  border-radius: var(--radius);
}
.alt h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--brick); }
.alt p { color: var(--ink-2); font-size: .97rem; max-width: 70ch; }

/* ── practical + caveat ───────────────────────────────────────────────────── */

.practical { padding: 3.5rem 0; background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 2.5rem; }

.practical-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }

.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
}
.pcard h3 { font-size: 1.06rem; margin-bottom: .5rem; color: var(--river); }
.pcard p { font-size: .96rem; color: var(--ink-2); }

.caveat { padding: 3rem 0; }
.caveat .wrap > p { color: var(--ink-2); max-width: 72ch; font-size: .99rem; }

footer {
  background: var(--ink);
  color: #ded4c6;
  padding: 2.5rem 0;
  font-size: .92rem;
}
footer b { color: #fff; }
.colophon { color: #9d968b; font-size: .85rem; margin-top: .6rem; }

/* ── wider viewports ──────────────────────────────────────────────────────── */

@media (min-width: 760px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .practical-grid { grid-template-columns: repeat(2, 1fr); }
  .leg { padding-left: 2rem; }
}

@media (min-width: 1000px) {
  .practical-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-copy { padding-block: 3rem 3.5rem; }
}

/* ── narrow viewports ─────────────────────────────────────────────────────── */

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stop { grid-template-columns: 1fr; gap: .35rem; padding: 1.15rem 1.15rem 1.25rem; }
  .stop-time { padding-top: 0; }
  .day-head { gap: 1rem; }
  .day-num { width: 3.6rem; height: 3.6rem; }
  .day-num b { font-size: 1.45rem; }
  .prompt-card { margin-top: -2rem; padding: 1.5rem 1.25rem 1.75rem; }
  .leg { padding-left: .5rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .95rem 1.25rem;
    max-width: 20rem;
  }
  .hero-stats b { font-size: 1.6rem; }
}

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

@media print {
  .daynav, .hero-art { display: none; }
  .hero { min-height: auto; background: #fff; color: #000; }
  .stop, .pcard { break-inside: avoid; }
}
