/* Way.gy public site.
   Layout: one column, left-aligned, minutes-first lists with a rule between rows;
   the only accent is the gold "Take me there" action. */
:root {
  --paper: #ffffff;
  --surface: #eef2ec;
  --line: #d5dbd3;
  --ink: #1c1a17;
  --muted: #5e6660;
  --green: #1e5e3f;
  --green-ink: #ffffff;
  --gold: #e0a526;
  --gold-ink: #1c1a17;
  --river: #6b4e2e;
  --notice: #fff3d6;
  --notice-ink: #4a3600;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, system-ui, sans-serif;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121614; --surface: #1c221e; --line: #2f3a33; --ink: #f2f1ea; --muted: #a5ada6;
    --green: #58a879; --green-ink: #0d1a12; --gold: #f0b84a; --gold-ink: #1c1a17; --river: #c9a57c;
    --notice: #3a2e0f; --notice-ink: #ffe9b3; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121614; --surface: #1c221e; --line: #2f3a33; --ink: #f2f1ea; --muted: #a5ada6;
  --green: #58a879; --green-ink: #0d1a12; --gold: #f0b84a; --gold-ink: #1c1a17; --river: #c9a57c;
  --notice: #3a2e0f; --notice-ink: #ffe9b3; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 42px); letter-spacing: -0.01em; }
h2 { font-size: 27px; }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: 44rem; margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.lead { font-size: 19px; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand i { font-style: italic; color: var(--green); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-color: var(--gold); }

/* notices */
.notice { background: var(--notice); color: var(--notice-ink); }
.notice .wrap { padding-block: 10px; display: flex; gap: 10px; align-items: baseline; }
.notice strong { font-weight: 700; }

main { padding-block: 28px 56px; display: grid; gap: 40px; }
section { display: grid; gap: 14px; }
section > header { display: grid; gap: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn-go { background: var(--gold); color: var(--gold-ink); }
.btn-go:hover { filter: brightness(1.05); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* maps: a Leaflet map once tiles arrive, the schematic drawing or route image until then */
.map { background: var(--surface); border-radius: var(--radius); overflow: hidden; position: relative; }
.map > svg { display: block; width: 100%; height: auto; }
.map.has-map { min-height: 300px; aspect-ratio: 16 / 11; }
.map .wg-map { position: absolute; inset: 0; z-index: 1; }
.map-place, .map-route { margin-top: 16px; }
.map-place:not(.has-map), .map-route:not(.has-map):empty { display: none; }
.map-route img { display: block; width: 100%; height: auto; }
.map-key { font-size: 14px; color: var(--muted); }
.wg-pin-wrap { background: none; border: 0; }
.wg-pin { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font: 700 13px/1 var(--font-body); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.wg-pin-monument { width: 16px; height: 16px; background: var(--gold); border-width: 2px; }
.wg-pin-here { background: var(--gold); color: var(--green-ink); width: 30px; height: 30px; }
.wg-pin-here::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: .5; }
.wg-pin-to { background: #1c1a17; color: #fff; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { color: var(--green); font-weight: 700; }

/* place lists */
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; color: inherit; text-decoration: none; }
.row:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.thumb { width: 84px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--surface); }
.row .name { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.row .sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.row .fig { text-align: right; min-width: 64px; }
.fig b { display: block; font-size: 24px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.fig span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.fig .walk { color: var(--green); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
.pill-est { background: var(--notice); color: var(--notice-ink); }

/* route cards on a sign's page */
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.route { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.route-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.route-head .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.route-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.route-actions .btn { padding: 10px 14px; }
.street { color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * clamp(16px, 4vw, 28px)); padding-inline: clamp(16px, 4vw, 28px); }
.gallery figure { margin: 0; flex: 0 0 min(86%, 560px); scroll-snap-align: start; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

/* facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { display: grid; gap: 12px; max-width: 36rem; }

/* tables */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 400; font-size: 13px; }
td.num, th.num { text-align: right; padding-right: 10px; }

/* steps */
.steps { padding-left: 1.4em; display: grid; gap: 8px; margin: 0; }
.route-map { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.map.is-live .route-map { display: none; }

/* events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.date { background: var(--surface); border-radius: 4px; text-align: center; padding: 6px 4px; line-height: 1.1; }
.date b { display: block; font-size: 22px; font-family: var(--font-display); }
.date span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.event h3 { font-size: 19px; }
.event img { width: 100%; max-width: 360px; border-radius: 4px; margin-top: 8px; }

/* sponsor banner */
.sponsor { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 6px; }
.sponsor small { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
/* Artwork is shown at its own size, centred — never stretched beyond it (small files go soft). */
.sponsor img { display: block; width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { padding-block: 20px 32px; display: grid; gap: 8px; }

.you-are-here { color: var(--muted); font-size: 15px; letter-spacing: 0.02em; }
.badge-est { font-size: 13px; color: var(--notice-ink); background: var(--notice); padding: 2px 8px; border-radius: 999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 420px) {
  .row { grid-template-columns: 72px 1fr auto; }
  .thumb { width: 72px; height: 54px; }
}
