:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e4e0d8;
  --text: #1c1a17;
  --muted: #6b655c;
  --accent: #7b3f00;
  --accent-soft: #f4ece2;
  --radius: 10px;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151300;
    --bg: #161513;
    --surface: #1f1d1a;
    --border: #322e29;
    --text: #ece8e1;
    --muted: #a09889;
    --accent: #e0a666;
    --accent-soft: #2a241d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--maxw); margin: 0 auto; }

header { margin-bottom: 2.5rem; }

h1 {
  margin: 0 0 .4rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
}

.tagline { margin: 0; color: var(--muted); font-size: 1.05rem; }

h2 {
  margin: 2.5rem 0 .75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

h2:first-of-type { margin-top: 0; }

h3 { margin: 1.75rem 0 .5rem; font-size: 1rem; }

p, li { color: var(--text); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Link cards */
.links { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }

.links a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.links a:hover { border-color: var(--accent); transform: translateY(-1px); }

.links strong { display: block; font-size: 1.02rem; }
.links span { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }

/* Callout for placeholders and notices */
.note {
  padding: .9rem 1.1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.note p { margin: 0; }

dl { margin: 0; }
dt { font-weight: 600; margin-top: 1.1rem; }
dd { margin: .2rem 0 0; color: var(--muted); }

.updated { color: var(--muted); font-size: .92rem; margin-top: .25rem; }

footer {
  max-width: var(--maxw);
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
}

footer a { color: var(--muted); }

/* Wide content must scroll itself, never the page */
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
