/* Little Saigon BRT public site.
   Colours and type come from docs/design-system/tokens.css (copied below; keep in step).
   Nothing is rounded except caption plates and the QR box. */
:root {
  --ls-red: #a5231b;
  --ls-trim: #6a1510;
  --ls-tan: #e4d6b4;
  --ls-tan-soft: #f4ecdb;
  --ls-soffit: #efe6cf;
  --ls-yellow: #f3c13a;
  --ls-ink: #2a1a14;
  --ls-muted: #6b5a4c;
  --ls-paper: #fffdf8;
  --ls-rule: #d8ccb4;
  --ls-stone: #a2917c;
  --ls-bg-light: #efe6d2;
  --ls-font-display: "Saira Condensed", "Be Vietnam Pro", system-ui, sans-serif;
  --ls-font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --ls-caption-plate: rgba(42, 26, 20, 0.8);
  --ls-radius-small: 4px;

  /* screen sizes (the tokens' cqw sizes are for a letter sheet) */
  --m: clamp(16px, 5.5vw, 72px);   /* one outer margin for everything */
  --gutter: clamp(20px, 3.5vw, 48px);
  --gap: clamp(12px, 1.6vw, 20px);
  --h1: clamp(34px, 5.2vw, 60px);
  --h2: clamp(32px, 4vw, 52px);
  --h3: clamp(22px, 2.2vw, 28px);
  --body: clamp(16px, 1.1vw + 8px, 17px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ls-bg-light);
  color: var(--ls-ink);
  font: 400 var(--body)/1.55 var(--ls-font-body);
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1360px; margin: 0 auto; background: var(--ls-paper); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ls-red); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ls-trim); }
:focus-visible { outline: 3px solid var(--ls-ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--ls-font-display); font-weight: 800; line-height: 1.04; color: var(--ls-red); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ls-yellow); color: var(--ls-ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px 24px;
  padding: 0 var(--m); min-height: 52px;
  background: var(--ls-paper); border-bottom: 1px solid var(--ls-rule);
}
.masthead { display: contents; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; padding-top: 8px; }
  .nav ul { margin-left: 0; width: 100%; }
  .nav li a { padding: 8px 0 10px; }
  html { scroll-padding-top: 100px; }
}
.nav .brand { font-family: var(--ls-font-display); font-weight: 800; font-size: 22px; color: var(--ls-red); text-decoration: none; white-space: nowrap; letter-spacing: .01em; }
.nav ul { list-style: none; display: flex; gap: 4px 20px; margin: 0 0 0 auto; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: inline-block; padding: 14px 0; color: var(--ls-ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav li a:hover { border-bottom-color: var(--ls-yellow); color: var(--ls-ink); }
.nav li a:focus-visible { outline-offset: -3px; }

/* ---------- gate header ---------- */
.gate { padding-top: clamp(14px, 2vw, 28px); }
.roof { display: block; width: 100%; height: auto; }
.beam {
  position: relative; z-index: 1;
  margin: -0.9% var(--m) 0;
  padding: clamp(22px, 3vw, 40px) clamp(18px, 5vw, 72px) clamp(26px, 3.4vw, 48px);
  text-align: center;
  background: radial-gradient(circle at 30% 40%, #ece1c6, var(--ls-tan) 60%, #dccdaa);
}
.beam h1 { font-size: var(--h1); max-width: 20ch; margin: 0 auto; }
.beam .dek { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 46em; margin: 16px auto 0; }
.beam-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; align-items: center; margin: 22px 0 0; }

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px;
  background: var(--ls-red); color: #fff; font-weight: 700; text-decoration: none;
  border: 0;
}
.button:hover { background: var(--ls-trim); color: #fff; }
.button.dark { background: var(--ls-ink); }
.button.dark:hover { background: var(--ls-trim); }
.text-link { font-weight: 700; }

/* ---------- hero: fades up into the beam, closed by the yellow rule ---------- */
.hero { margin: 0 var(--m); position: relative; background: var(--ls-tan); border-bottom: 8px solid var(--ls-yellow); }
.hero-shot { position: relative; aspect-ratio: 2.3 / 1; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero .cap b { color: var(--ls-yellow); white-space: nowrap; }
.hero .cap { position: absolute; left: 0; bottom: 0; max-width: min(90%, 40em); border-radius: 0 var(--ls-radius-small) 0 0; }
@media (max-width: 700px) {
  .hero-shot { aspect-ratio: 4 / 3; }
  .hero .cap { position: static; max-width: none; border-radius: 0; }
}

/* caption plates and labels on images (the only rounded things besides the QR box) */
.plate { background: var(--ls-caption-plate); color: #fff; font-size: 14px; line-height: 1.35; padding: 6px 10px; border-radius: var(--ls-radius-small); }
.label { position: absolute; top: 12px; left: 12px; font-weight: 700; font-size: 13px; letter-spacing: .01em; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 6vw, 88px) var(--m) 0; }
.section > h2 { font-size: var(--h2); }
.section > h2::after { content: ""; display: block; width: 72px; height: 5px; background: var(--ls-yellow); margin-top: 14px; }
.lede { font-size: clamp(17px, 1.3vw, 19px); max-width: 44em; margin: 20px 0 28px; }
figure { margin: 0; }
.shot { position: relative; background: var(--ls-rule); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; max-width: 52em; }
figcaption b { color: var(--ls-red); }

/* design switcher */
.compare { margin-bottom: clamp(32px, 4vw, 56px); }
.switch { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 0; border-bottom: 4px solid var(--ls-red); }
.switch button {
  font: 700 15px/1.2 var(--ls-font-body); color: var(--ls-ink);
  background: var(--ls-tan-soft); border: 0; border-right: 1px solid var(--ls-paper);
  min-height: 48px; padding: 10px 18px; cursor: pointer;
}
.switch button:hover { background: var(--ls-tan); }
.switch button[aria-pressed="true"] { background: var(--ls-red); color: #fff; }
.switch button:focus-visible { outline-offset: -3px; outline-color: var(--ls-ink); box-shadow: inset 0 0 0 5px #fff; }
@media (max-width: 560px) { .switch button { flex: 1 1 50%; } }

/* before/after slider */
.slider { margin-bottom: clamp(32px, 4vw, 56px); }
.slider-frame .before { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.slider-frame .half { position: absolute; inset: 0; pointer-events: none; }
.slider-frame .half.left { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.slider-frame .half.right { clip-path: inset(0 0 0 var(--pos)); }
.slider-frame .half.left .label { max-width: calc(var(--pos) - 22px); }
.slider-frame .half.right .label { left: auto; right: 12px; top: auto; bottom: 12px; max-width: calc(100% - var(--pos) - 22px); }
.slider-frame .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--ls-yellow); pointer-events: none; }
.slider-frame .handle::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; background: var(--ls-yellow); color: var(--ls-ink); font: 800 24px/1 var(--ls-font-body); }
.slider-frame input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.slider-frame:has(input:focus-visible) .handle::after { outline: 3px solid var(--ls-ink); outline-offset: 2px; }
@media (max-width: 560px) { .slider-frame .label { font-size: 11px; padding: 4px 7px; } }

/* galleries: images first, each with its own description underneath */
.gallery { display: grid; gap: clamp(24px, 3vw, 36px) var(--gap); margin-bottom: clamp(32px, 4vw, 48px); }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .gallery.two { grid-template-columns: 1fr; } }

/* points: two independent columns after a hairline */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--ls-rule); margin-top: 28px; padding-top: 28px; }
.points h3 { font-size: var(--h3); margin: 0 0 8px; }
.points p { max-width: 36em; margin-bottom: 26px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* section ledes that sit between points blocks */
.points + .lede { margin-top: 0; }
#study .lede { margin-bottom: 20px; }
#study p:last-child { margin-bottom: 0; }

/* yellow action band */
.act {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--ls-yellow); color: var(--ls-ink);
  padding: clamp(32px, 4vw, 56px) var(--m);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px var(--gutter); align-items: center;
}
.act h2 { color: var(--ls-trim); font-size: var(--h2); margin-bottom: 14px; }
.act p { max-width: 36em; font-size: clamp(17px, 1.3vw, 19px); }
.act p:last-child { margin-bottom: 0; }
.act :focus-visible { outline-color: var(--ls-ink); }
.qrbox { background: #fff; padding: 14px; border-radius: var(--ls-radius-small); width: 196px; text-align: center; }
.qrbox .qr { display: block; width: 100%; height: auto; }
.qrbox p { margin: 8px 0 0; font-size: 13px; line-height: 1.3; }
@media (max-width: 640px) { .act { grid-template-columns: 1fr; } .qrbox { width: 168px; } }
.more { padding-top: clamp(28px, 4vw, 48px); }
.more .points { border-top: 0; margin-top: 0; padding-top: 0; }

/* events */
.events { list-style: none; margin: 8px 0 0; padding: 0; border-top: 3px solid var(--ls-red); }
.event { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 20px; padding: 20px 0; border-bottom: 1px solid var(--ls-rule); }
.event .when { margin: 0; }
.event time { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; padding: 8px 0 6px; background: var(--ls-tan); color: var(--ls-trim); font-family: var(--ls-font-display); font-weight: 800; line-height: 1; }
.event .mon { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.event .day { font-size: 40px; }
.event.deadline time { background: var(--ls-yellow); }
.event h3 { font-size: var(--h3); line-height: 1.1; margin: 2px 0 6px; }
.event .meta { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.event .meta span:first-child { font-weight: 700; }
.event .link { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
@media (max-width: 480px) { .event { grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; } .event time { width: 64px; } .event .day { font-size: 32px; } .event .mon { font-size: 15px; } }

/* 3D model link */
.model-link .shot { display: block; }
.model-link .shot img { aspect-ratio: 2.2 / 1; object-position: 50% 60%; transition: transform .4s ease; }
.model-link .shot:hover img { transform: scale(1.02); }
.model-link .open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--ls-yellow); color: var(--ls-ink); font: 800 clamp(22px, 2.6vw, 34px)/1 var(--ls-font-display); padding: 14px 26px; white-space: nowrap; }
.model-link .shot:hover .open { background: #fff; }
@media (max-width: 560px) { .model-link .shot img { aspect-ratio: 3 / 2; } }
@media (prefers-reduced-motion: reduce) { .model-link .shot img { transition: none; } }

/* footer */
.foot { margin-top: clamp(56px, 7vw, 96px); padding: 24px var(--m) 32px; border-top: 1px solid var(--ls-rule); color: var(--ls-muted); font-size: 13px; line-height: 1.5; }
.foot p { max-width: 72em; margin: 0 0 8px; }
.foot a { color: var(--ls-muted); }
.foot a:hover { color: var(--ls-ink); }

/* ==========================================================================
   Graphics on the home page (readability pass, Dec 2026). Plain HTML and CSS,
   no script. Every title, label and key line is a complete sentence.
   ========================================================================== */
.key { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; line-height: 1.35; }
.key li { display: flex; align-items: center; gap: 8px; }
.key .sw { flex: none; width: 16px; height: 16px; }

/* the three asks */
.asks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.asks svg { width: 56px; height: 56px; display: block; margin-bottom: 12px; }
.asks h3 { font-size: clamp(24px, 2.4vw, 32px); }
.asks p { margin: 8px 0 0; max-width: 24em; }
@media (max-width: 1000px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .asks { grid-template-columns: 1fr; gap: 20px; }
  .asks li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .asks svg { width: 48px; height: 48px; grid-row: span 2; margin: 0; }
}

/* lane diagram */
.lane-diagram { margin: 0 0 clamp(32px, 4vw, 56px); max-width: 760px; }
.lane-row { margin-bottom: 18px; }
.lane-row h3 { font-size: var(--h3); margin-bottom: 6px; }
.lane-row p { margin: 6px 0 0; font-size: 15px; }
.lane-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.lane-strip span { height: 54px; display: grid; place-items: center; font: 800 22px/1 var(--ls-font-body); color: var(--ls-ink); }
.car, .sw.car { background: var(--ls-tan); }
.bus, .sw.bus { background: var(--ls-red); }
.lane-strip .bus, .lane-strip .shared { color: #fff; }
.shared, .sw.shared { background: repeating-linear-gradient(135deg, var(--ls-red) 0 7px, var(--ls-trim) 7px 10px, var(--ls-tan) 10px 17px); }
.lane-strip .shared { text-shadow: 0 0 4px var(--ls-ink), 0 0 2px var(--ls-ink); }
.lane-strip .wide { box-shadow: inset -6px 0 0 var(--ls-yellow), inset 0 6px 0 var(--ls-yellow), inset 0 -6px 0 var(--ls-yellow); }
.sw.wide { background: var(--ls-yellow); }
.lane-strip .none { border-left: 2px dashed var(--ls-stone); }

/* people killed: one figure each */
.toll { margin-bottom: 28px; max-width: 760px; }
.toll h3 { font-size: clamp(24px, 2.6vw, 34px); max-width: 22em; }
.people { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 10px 6px; margin-top: 18px; max-width: 560px; }
.people i { display: block; aspect-ratio: 1 / 2; -webkit-mask: radial-gradient(circle at 50% 18%, #000 0 17%, transparent 18%), linear-gradient(#000 0 0) 50% 100% / 62% 58% no-repeat; mask: radial-gradient(circle at 50% 18%, #000 0 17%, transparent 18%), linear-gradient(#000 0 0) 50% 100% / 62% 58% no-repeat; }
.walk { background: var(--ls-red); }
.veh { background: var(--ls-ink); }
.moto { background: var(--ls-stone); }
.bike { background: var(--ls-yellow); }

/* figures row: big numbers, each with one sentence */
.figures { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--ls-rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); }
.figures.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures b { display: block; font: 800 clamp(44px, 6vw, 76px)/1 var(--ls-font-display); color: var(--ls-red); }
.figures li:nth-child(n+2) b { color: var(--ls-trim); }
.figures span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; max-width: 18em; }
.figures .grow { margin-top: 8px; }
.figures .grow i { display: block; height: 10px; background: var(--ls-tan); margin-bottom: 3px; }
.figures .grow .to { background: var(--ls-red); }
@media (max-width: 900px) { .figures.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .figures { grid-template-columns: 1fr; gap: 16px; }
  .figures:not(.four) li { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .figures:not(.four) span { margin-top: 0; }
  .figures:not(.four) b { font-size: 48px; }
  .figures.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .figures.four b { font-size: 40px; }
}

/* crossing length bar */
.cross { margin-top: 32px; max-width: 760px; }
.cross-bar { display: grid; grid-template-columns: 60fr 11fr; min-height: 48px; }
.cross-bar span { display: grid; align-items: center; padding: 6px 10px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.cross-bar .now { background: var(--ls-tan); }
.cross-bar .more { background: var(--ls-red); color: #fff; padding: 6px 4px; text-align: center; white-space: nowrap; }

/* four short points in a row */
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; padding-top: 0; }
.points.four p { margin-bottom: 20px; font-size: 16px; }
@media (max-width: 1000px) { .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points.four { grid-template-columns: 1fr; } }

/* sources fold away */
.foot details { margin: 0 0 8px; }
.foot summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.foot details p { margin-top: 6px; }
