* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-ui); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-6); }
.skip { position: absolute; left: 24px; top: -100px; z-index: 1; padding: 12px; background: var(--surface); }
.skip:focus { top: 12px; }
header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header nav { margin-left: auto; }
.wordmark { display: inline-flex; padding: 8px 0; color: var(--ink); }
.logo { display: block; width: 132px; height: auto; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; }
.login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 14px; font-weight: 550; }
.login:hover { border-color: var(--ink); text-decoration: none; }
main { padding-bottom: var(--space-8); }
section { margin-top: var(--space-8); }
.hero { padding-top: 64px; margin-top: 0; }
h1, h2, h3 { margin: 0 0 16px; font-weight: 600; }
h1 { font-size: var(--fs-6); line-height: 1.1; letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--fs-5); line-height: 1.2; letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--fs-3); line-height: 1.35; }
p { margin: 0 0 16px; }
.meta { font-size: 14px; color: var(--ink-3); }
.table-card { overflow: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td:last-child, thead th:last-child { text-align: right; }
td:last-child { min-width: 150px; }
.prose { max-width: var(--measure); overflow-wrap: anywhere; }
.prose h2 { margin-top: 40px; font-size: 24px; }
.prose h3 { margin-top: 24px; }
.prose li { margin-bottom: 8px; }
.draft { padding: 16px; border: 1px solid var(--open); border-radius: var(--radius-m); background: var(--open-tint); color: var(--open); margin-bottom: 32px; }
.placeholder { color: var(--ink-3); border-bottom: 1px dashed currentColor; }
footer { border-top: 1px solid var(--line); padding: var(--space-6) 0; font-size: 14px; color: var(--ink-3); }
footer nav { flex-wrap: wrap; gap: 8px 24px; }
footer a:hover { color: var(--ink); }

/* Home: the wordmark alone on a quiet canvas, Log in above, the legal links below. */
.home { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); }
.home .wrap { max-width: none; }
.home main { display: grid; place-items: center; padding: var(--space-7) var(--space-5) 12vh; }
.brand { margin: 0; line-height: 0; }
.brand-mark { display: block; width: clamp(200px, 38vw, 520px); height: auto; }
.home footer { border-top: 0; }
.home footer nav { justify-content: center; }

@media (max-width: 719px) {
  .wrap { padding: 0 var(--space-5); }
  header .wrap { min-height: 64px; }
  .logo { width: 112px; }
  section { margin-top: var(--space-7); }
  .hero { padding-top: 40px; }
  th, td { padding: 16px; }
  .brand-mark { width: min(72vw, 320px); }
  footer nav { gap: 8px 14px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E100F; --surface: #171A18; --surface-2: #1E2220; --line: #2A2F2C; --line-strong: #3A403C;
    --ink: #F2F4F2; --ink-2: #BCC3BE; --ink-3: #8E9690; --on-ink: #121513;
    --brand: #2FA57C; --brand-ink: #06140E; --brand-press: #268A67; --brand-tint: #12291F;
    --paid: #2FA57C; --open: #F2A03D; --open-tint: #33230D; --error: #FF5D6E; --error-tint: #3A1419;
    --info: #86AEDB; --dash: #6E7670;
  }
  .home { background: var(--bg); }
}
