/* oatsoda.club: light grey + one warm amber, per the Oct 16 brand decision. Green is used only for money paid to a station. */
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f4f4f6;
  --bg-low: #eaeaef;
  --card: #ffffff;
  --ink: #121316;
  --slate: #555861;
  --rule: #e2e3e8;
  --amber: #9a4800;      /* small amber text: 6.36:1 on white */
  --amber-big: #c25e00;  /* "//", borders, large type only */
  --glow: rgba(245, 158, 11, 0.32);
  --money: #0d5f3a;      /* ledger green, same as the charter */
  --box: #f7f6f1;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-low); }
body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-low) 900px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--amber); }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; padding-top: max(20px, env(safe-area-inset-top)); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.muted { color: var(--slate); }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.top .tag { color: var(--slate); margin-left: 8px; }

/* Telegram in-app browser: quiet, owner-initiated way out (decision: no automatic escape) */
.tg { display: none; margin: -8px 0 16px; text-align: right; }
.tg.on { display: block; }
.tg a { font-family: var(--mono); font-size: 13px; text-decoration: none; border-bottom: 1px solid currentColor; }
.tg .hint { display: block; font-family: var(--mono); font-size: 11px; color: var(--slate); margin-top: 4px; }

/* Frosted card (solid on small screens, where blur costs frames) */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(18, 19, 22, 0.10);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 24px 48px -12px rgba(194, 94, 0, 0.14);
}
@media (min-width: 720px) {
  .card { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); padding: 36px 40px; }
}
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -60px; height: 240px;
  background: radial-gradient(closest-side, var(--glow), rgba(245, 158, 11, 0)); pointer-events: none;
}

/* Private station page */
.poster { border-radius: 8px; box-shadow: 0 12px 32px -12px rgba(18, 19, 22, 0.35); margin-bottom: 28px; }
.label { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
h1.station { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 9vw, 56px); line-height: 1.05; margin: 6px 0 4px; }
.sub { font-family: var(--serif); font-style: italic; color: var(--slate); margin: 0; }
h2 { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin: 32px 0 10px; }

.profile { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 22px 0 0; }
.profile div { padding: 12px 12px 12px 0; }
.profile div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
.profile div:nth-child(n+3) { border-top: 1px solid var(--rule); }
@media (min-width: 720px) {
  .profile { grid-template-columns: repeat(4, 1fr); }
  .profile div { padding-left: 14px; border-left: 1px solid var(--rule); border-top: 0 !important; }
  .profile div:first-child { padding-left: 0; border-left: 0; }
}
.profile b { display: block; font-size: 24px; }
.profile span { display: block; font-size: 13px; color: var(--slate); line-height: 1.3; }

.headline { margin-top: 26px; }
.headline .lead { font-family: var(--serif); margin: 0; }
.headline .money { font-family: var(--serif); font-weight: 700; color: var(--money); font-size: clamp(38px, 10vw, 60px); line-height: 1.1; }
.headline .year { color: var(--slate); }
.bill { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.bill .today { color: var(--slate); font-size: 15px; display: block; }
.bill strong { display: block; font-size: 19px; }
.bill strong em { font-style: normal; color: var(--money); }

/* Schedule I: a table on wide screens, stacked rows on phones */
table.sched { width: 100%; border-collapse: collapse; }
.sched th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); text-align: left; padding: 8px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.sched th.n, .sched td.n { text-align: right; white-space: nowrap; }
.sched td { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.sched td.name { font-weight: 700; padding-right: 12px; }
.sched td.name sup { color: var(--slate); font-weight: 400; }
.sched td.basis { color: var(--slate); font-size: 15px; padding-right: 12px; }
.sched td.n { padding-left: 12px; }
.sched tr.group td { font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--slate); border-bottom: 0; padding-top: 16px; }
.sched tr.total td { font-family: var(--serif); font-weight: 700; font-size: 19px; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
@media (max-width: 719px) {
  table.sched, .sched tbody { display: block; width: 100%; }
  .sched thead { display: none; }
  .sched tr { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .sched td { display: block; border: 0 !important; padding: 0 !important; }
  .sched td.name, .sched td.basis, .sched tr.total td:first-child, .sched tr.group td { flex: 1 0 100%; }
  .sched td.basis { margin-bottom: 4px; }
  .sched td.n { text-align: left; font-size: 15px; }
  .sched td.n::before { content: attr(data-l) " "; color: var(--slate); font-family: var(--sans); font-size: 12px; }
  .sched tr.group { border-bottom: 0; padding-bottom: 0; }
  .sched tr.total { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
  .sched tr.total td.n { font-size: 16px; }
}

.protect { background: var(--box); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin-top: 24px; }
.protect p { font-family: var(--serif); margin: 6px 0 0; }
.foot { font-size: 13px; color: var(--slate); line-height: 1.55; margin-top: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 14px; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; }
.pill:hover, .pill:focus-visible { border-color: var(--amber-big); color: var(--amber); }

.invite { margin-top: 36px; }
.invite .when { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.25; }

/* Holding page */
.hero { margin-top: 12vh; }
.hero h1 { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(40px, 11vw, 76px); line-height: 0.98; margin: 0; }
.hero h1 .sl { color: var(--amber-big); }
.hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); }
.hero p { max-width: 520px; }

.sitefoot { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.sitefoot span { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--amber-big); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
