/* Shared styling for the standing pages (about, privacy, terms, contact).
   The tokens mirror index.html so the whole site reads as one thing. */
:root {
  --ground: #eef1f5;
  --surface: #ffffff;
  --line: #d6dce5;
  --ink: #151a21;
  --muted: #5b6675;
  --accent: #b21f2d;
  --on-accent: #ffffff;
  --focus: #2f6fd0;
  --display: "Bricolage Grotesque", "Noto Sans Sinhala", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Noto Sans Sinhala", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #101319;
    --surface: #171c24;
    --line: #2a3240;
    --ink: #e8ecf2;
    --muted: #97a2b2;
    --accent: #ef8189;
    --on-accent: #16090b;
    --focus: #7fb0ff;
  }
}

* { box-sizing: border-box; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding: 40px 20px 72px;
  margin: 0;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

header { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.lede { margin: 0; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.updated {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
main > :first-child { margin-top: 0; }
main > :last-child { margin-bottom: 0; }
h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 26px 0 10px;
}
p, li { text-align: justify; hyphens: auto; }
p { margin: 0 0 12px; }
ul { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 13px; }

footer { font-size: 13px; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 8px; }
footer p { margin: 0; text-align: center; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 600px) {
  body { padding: 24px 14px 48px; }
  main { padding: 18px; }
}
