:root {
  --night: #0e1a28;
  --pea: #8fad8a;
  --ice: #e8f0f2;
  --amber: #d4a017;
  --red: #8a1c1c;
  --mute: #8aa0b0;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body { margin: 0; color: var(--ice); background: var(--night); font-family: var(--sans); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); color: var(--amber); }
.condense { pointer-events: none; position: fixed; inset: 0; z-index: 6; opacity: 0.12; background-image: url("images/texture.webp"); background-size: 360px auto; mix-blend-mode: screen; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--amber); color: #111; padding: 8px; }
.tower { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(14,26,40,0.94); border-bottom: 1px solid #2a3a4c; }
.brand { font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--amber); letter-spacing: 0.14em; }
.nav-toggle { display: none; background: var(--amber); color: var(--night); border: 0; padding: 8px 12px; font-weight: 700; }
.clock-nav { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.clock-nav a { color: var(--mute); }
.clock-nav a.is-active, .clock-nav a:hover { color: var(--ice); }
.clock-nav a.live { background: var(--amber); color: var(--night); padding: 7px 12px; }
.or { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.face { padding: 48px 6vw; display: flex; flex-direction: column; justify-content: center; }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--amber); margin: 0 0 10px; }
.minutes { font-family: var(--mono); font-size: clamp(64px, 12vw, 140px); line-height: 0.85; margin: 0 0 12px; letter-spacing: -0.04em; }
.minutes span { font-size: 22px; color: var(--mute); margin-left: 8px; }
.org-name { color: var(--pea); margin: 0 0 16px; }
.org-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.org-btns button { background: transparent; border: 1px solid var(--pea); color: var(--ice); padding: 8px 12px; }
.org-btns button.on { background: var(--pea); color: var(--night); }
#org-msg { max-width: 38em; color: var(--mute); }
.or figure { margin: 0; }
.or img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.or figcaption { position: absolute; left: -999px; }
.gates { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.gates li { padding: 16px; border-top: 6px solid #2a3a4c; background: #132232; font-size: 13px; }
.gates li.lit { border-top-color: var(--pea); }
.gates span { display: block; font-family: var(--mono); color: var(--amber); margin-bottom: 6px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
#need, #wall, #rules { background: #142434; }
.night { background: #0b1622; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h2 { font-size: clamp(24px, 3vw, 34px); }
.quiet { color: var(--mute); max-width: 46em; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.tri article, .io > div { background: #1a2c3c; padding: 16px; }
.tri ul, .io ul { margin: 0; padding-left: 1.1em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 28px 0; }
.row.rev { direction: rtl; }
.row.rev > * { direction: ltr; }
.num { font-family: var(--mono); color: var(--amber); font-size: 12px; }
.row figure { margin: 0; }
.row figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
footer { padding: 18px 22px 36px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
@media (max-width: 900px) {
  .or, .gates, .tri, .row, .row.rev, .io { grid-template-columns: 1fr; }
  .row.rev { direction: ltr; }
  .minutes { font-size: 72px; }
  .nav-toggle { display: inline-block; }
  .clock-nav { display: none; position: absolute; right: 10px; top: 52px; flex-direction: column; background: var(--night); padding: 10px; border: 1px solid #2a3a4c; }
  .clock-nav.open { display: flex; }
}
