/* One stylesheet, one accent colour. Keep it plain: see docs/DESIGN_BRIEF.md "Explicitly avoid". */
:root {
  --paper: #fbfbfa;
  --ink: #1b1f24;
  --muted: #5f6670;
  --rule: #e1e3e6;
  --rule-strong: #1b1f24;
  --accent: #2a5a8a;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141619;
    --ink: #e5e7ea;
    --muted: #9ba2ab;
    --rule: #2a2e34;
    --rule-strong: #e5e7ea;
    --accent: #8db8e3;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding-block: 64px 48px;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  display: grid;
  gap: 48px;
}

h1, p { margin: 0; }

header { display: grid; gap: 8px; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
header p { color: var(--muted); max-width: 60ch; }

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  padding: 0 16px 8px 0;
  border-bottom: 1px solid var(--rule-strong);
}
tbody th, tbody td {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
}
tbody th { font-weight: 600; white-space: nowrap; }
th:last-child, td:last-child { padding-right: 0; }
.desc { color: var(--muted); max-width: 52ch; }
.link { font-family: var(--mono); font-size: 14px; white-space: nowrap; }

footer {
  display: grid;
  gap: 4px;
  font-size: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.muted { color: var(--muted); }

/* Phone: each table row becomes a stacked block. */
@media (max-width: 760px) {
  .page {
    padding-block: 36px 28px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    gap: 32px;
  }
  thead { display: none; }
  table, tbody, tr, tbody th, tbody td { display: block; }
  tr { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  tr:first-child { border-top: 1px solid var(--rule-strong); }
  tbody th, tbody td { padding: 0; border: 0; white-space: normal; }
  .link { overflow-wrap: anywhere; }
}
