/* The landing pages (server/landing.js): one calm column of reading, the app's colours, light and dark. */
:root { --bg: #FAFAF7; --surface: #FFFFFF; --text: #1A1A1A; --muted: #55574F; --line: #D9D9D2; --accent: #1D4ED8; --accent-text: #FFFFFF; --soft: #E6ECFB; --stripe: #B91C1C; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121311; --surface: #1C1D1A; --text: #F1F1EC; --muted: #B9BAB2; --line: #3A3B36; --accent: #8FB0FF; --accent-text: #0B1530; --soft: #1F2A44; --stripe: #FF8A8A; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 680px; margin: 0 auto; padding: 10px 20px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.open, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; }
main { max-width: 680px; margin: 0 auto; padding: 8px 20px 24px; }
h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.15; margin: 18px 0 14px; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 34px 0 8px; text-wrap: balance; }
p { margin: 0 0 14px; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin: 6px 0; }
blockquote { margin: 22px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--stripe); }
blockquote p { margin: 0; font-size: 1.2rem; font-weight: 650; line-height: 1.4; text-wrap: balance; }
.scroll { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-size: .9rem; color: var(--muted); }
td { font-variant-numeric: tabular-nums; }
.cta { margin: 36px 0 8px; padding: 22px 20px; background: var(--soft); border-radius: 16px; text-align: center; }
.cta-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.cta .btn { min-height: 52px; padding: 0 26px; font-size: 1.1rem; }
.cta p:last-child { margin: 0; }
.next ul, .hub { list-style: none; padding: 0; margin: 0; }
.next li, .hub li { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.next a, .hub a { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.1rem; }
.next span, .hub span { display: block; color: var(--muted); }
footer { max-width: 680px; margin: 24px auto 0; padding: 20px 20px 40px; border-top: 1px solid var(--line); font-size: .95rem; }
footer h2 { font-size: 1rem; margin: 0 0 8px; }
footer ul { list-style: none; padding: 0; margin: 0 0 16px; columns: 2; column-gap: 20px; }
footer li { margin: 0; break-inside: avoid; }
footer li a, footer p a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 420px) { footer ul { columns: 1; } }
/* citations and the list of sources (the history page) */
.ref { font-size: .75em; line-height: 0; } .ref a { padding: 0 2px; text-decoration: none; font-weight: 700; }
.sources { font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; } .sources li { margin: 10px 0; scroll-margin-top: 16px; }
.sources li:target { color: var(--text); }
