/* Colors from the old postcards: paper, harbor teal, sunset orange. Road status colors stay plain. */
:root {
  --paper: #F6F1E7;
  --card: #FFFFFF;
  --line: #E4DCCB;
  --ink: #1E2A2F;
  --ink-2: #3A4549;
  --muted: #5B6468;
  --teal: #1F5F66;
  --teal-soft: #E3EEEF;
  --orange: #D9822B;
  --orange-soft: #FBE7D3;
  --orange-ink: #8A4A0F;
  --nav: #FFFDF8;
  --road-open: #2E6B45;
  --road-soon: #9A5A12;
  --road-closed: #A3271D;
  --road-unknown: #55606A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151B1E;
    --card: #1E272B;
    --line: #2F3A3F;
    --ink: #EEE9DF;
    --ink-2: #CFC9BE;
    --muted: #A2A9AC;
    --teal: #7FC3C9;
    --teal-soft: #22393C;
    --orange-soft: #3A2A1A;
    --orange-ink: #F2B880;
    --nav: #1A2225;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; }
h1, h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: 34px; line-height: 1; }
h2 { font-size: 22px; line-height: 1.15; }
p { margin: 0; }
a { color: var(--teal); }
.pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.baseline { align-items: baseline; }
.row.gap { gap: 12px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.eyebrow.light { color: rgba(255,255,255,.9); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { font-size: 14px; font-weight: 600; }

.hero { position: relative; height: 150px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: sepia(.25) saturate(.85); display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--paper)); }
.hero-text { position: absolute; left: 16px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.hero-text .eyebrow { color: var(--ink); }

.status { border-radius: 18px; padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 6px; background: var(--road-unknown); }
.status[data-status="open"] { background: var(--road-open); }
.status[data-status="requested"], .status[data-status="reopening"] { background: var(--road-soon); }
.status[data-status="closed"] { background: var(--road-closed); }
.headline { font-size: 38px; font-weight: 700; line-height: 1.05; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.big-time { font-family: "DM Serif Display", Georgia, serif; font-size: 40px; line-height: 1; }
.badge { background: var(--orange-soft); color: var(--orange-ink); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge.teal { background: var(--teal-soft); color: var(--teal); }
.advice { border-top: 1px solid var(--line); padding-top: 10px; font-size: 15px; }
.advice:empty { display: none; }

.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
:is(.item, .opening summary) .t { font-weight: 700; min-width: 72px; }
:is(.item, .opening summary) .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
:is(.item, .opening summary) .sub { font-size: 12px; color: var(--muted); }
:is(.item, .opening summary) .end { font-size: 13px; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }

.slot { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.slot .t { width: 60px; font-weight: 700; }
.slot .note { flex: 1; font-size: 13px; color: var(--muted); }
.slot.past { background: transparent; border-color: transparent; }
.slot.past .t { color: var(--muted); }
.slot.next { background: var(--orange-soft); border: 2px solid var(--orange); }
.slot.next .note { color: var(--orange-ink); font-weight: 600; }
.slot.night { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot.night .note { color: var(--paper); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.day-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); margin-top: 6px; }

details.opening { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
details.opening[open] { border: 2px solid var(--teal); }
details.opening summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 48px; }
details.opening summary::-webkit-details-marker { display: none; }
.timeline { display: grid; grid-template-columns: 64px minmax(0, 1fr); row-gap: 4px; font-size: 13px; padding: 0 12px 12px; }
.timeline .tt { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.heard { font-size: 13px; color: var(--ink-2); padding: 0 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.heard q { quotes: "\201C" "\201D"; }

.button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--teal); color: var(--paper); cursor: pointer; }
.button.secondary { background: transparent; color: var(--teal); border: 1px solid var(--line); }
.button:disabled { opacity: .6; cursor: default; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); }

.postcards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.postcards figure { margin: 0; flex: 0 0 85%; scroll-snap-align: start; background: #fff; padding: 8px 8px 10px; border-radius: 6px; box-shadow: 0 1px 3px rgba(30,42,47,.18); }
.postcards img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; display: block; }
.postcards figcaption { font-size: 12px; color: #5B6468; margin-top: 6px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--nav); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs a { min-height: 56px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; border-top: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--teal); font-weight: 700; border-top-color: var(--teal); }
