:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-2: #e4ecf2;
  --ink: #10222f;
  --muted: #4d6171;
  --line: #cfdbe4;
  --accent: #b3151f;        /* Chicago flag red */
  --accent-ink: #ffffff;
  --lake: #2d7fb8;          /* Chicago flag blue */
  --hero-a: #dbe9f4;
  --hero-b: #f3f8fc;
  --rain: #2d7fb8;
  --warm: #d9622b;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #0c1720;
  --surface: #13232f;
  --surface-2: #1b303f;
  --ink: #e8f1f7;
  --muted: #9db3c3;
  --line: #28404f;
  --accent: #ff6b73;
  --accent-ink: #1a0508;
  --lake: #6bb7e6;
  --hero-a: #18344a;
  --hero-b: #102230;
  --rain: #6bb7e6;
  --warm: #ff9a62;
}
body[data-sky="clear"] { --hero-a: #cfe6f7; --hero-b: #fff4dc; }
body[data-sky="rain"] { --hero-a: #c3d2de; --hero-b: #e3ebf1; }
body[data-sky="snow"] { --hero-a: #dfe9f2; --hero-b: #f7fafc; }
body[data-sky="storm"] { --hero-a: #b4bfce; --hero-b: #dbe0e8; }
[data-theme="dark"] body[data-sky="clear"] { --hero-a: #1c4163; --hero-b: #14283a; }
[data-theme="dark"] body[data-sky="night"] { --hero-a: #101c33; --hero-b: #0d1a28; }
[data-theme="dark"] body[data-sky="rain"] { --hero-a: #1b2d3b; --hero-b: #142330; }
[data-theme="dark"] body[data-sky="snow"] { --hero-a: #243847; --hero-b: #172a38; }
[data-theme="dark"] body[data-sky="storm"] { --hero-a: #1d2133; --hero-b: #131a2a; }
body[data-sky="night"] { --hero-a: #cdd8e8; --hero-b: #e6ecf5; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  transition: background .3s, color .3s;
}
h1, h2, h3, p { margin: 0; }
h1 { font: 800 1.9rem/1 var(--serif); letter-spacing: -.01em; }
h2 { font: 600 1.15rem/1.2 var(--serif); }
a { color: var(--lake); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); font-size: .875rem; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }

.top, main, .foot { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.star { color: var(--accent); font-size: .9rem; letter-spacing: -.1em; writing-mode: vertical-rl; line-height: 1; }
.clock { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.controls { display: flex; gap: 8px; align-items: center; }
main { display: grid; gap: 16px; padding-bottom: 24px; }
.foot { padding-top: 8px; padding-bottom: 32px; color: var(--muted); font-size: .85rem; }
.status { min-height: 0; }
.status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
