:root {
  color-scheme: light dark;
  --text: #1c1b1a;
  --muted: #6b6664;
  --line: #e5e1de;
  --accent: #00796b;
  --bg: #fff;
  --callout-bg: #f1f8f7;
  --stale-bg: #fef3c7;
  --stale-text: #92400e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e6e3;
    --muted: #a8a29e;
    --line: #35302c;
    --accent: #4db6ac;
    --bg: #171614;
    --callout-bg: #17231f;
    --stale-bg: #45301a;
    --stale-text: #fbbf24;
  }
}

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
  max-width: 44rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans KR", "Noto Sans JP",
               "Noto Sans Arabic", "Noto Sans Thai", "Noto Sans Devanagari",
               sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

[data-lang="th"] body { line-height: 1.9; }
[data-lang="hi"] body { line-height: 1.8; }

h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.125rem; margin: 2.25rem 0 .5rem; }
p { margin: .75rem 0; }
ul { margin: .75rem 0; padding-inline-start: 1.25rem; }
li { margin: .35rem 0; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

.updated { color: var(--muted); font-size: .875rem; margin: 0 0 2rem; }
.lead { font-size: 1.0625rem; }

.source-note {
  margin: 0 0 1.5rem;
  padding: .6rem .85rem;
  border-inline-start: 3px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: .5rem;
  border-inline-start: 4px solid var(--accent);
  background: var(--callout-bg);
}

.stale-notice {
  margin: 0 0 1.5rem;
  padding: .7rem .95rem;
  border-radius: .4rem;
  background: var(--stale-bg);
  color: var(--stale-text);
  font-size: .875rem;
}
.stale-notice a { color: inherit; }

.lang-switch {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-end: 1rem;
  z-index: 10;
}
.lang-switch select {
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--bg);
  color: var(--text);
  font-size: .875rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}
