:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5b6470;
  --border: #e3e0d8;
  --accent: #0f5c4d;
  --accent-soft: #e6f1ee;
  --link: #0b5c8c;
  --note-bg: #fff7e6;
  --radius: 10px;
  --maxw: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1a1d21;
    --text: #e7e9ec;
    --muted: #a3abb5;
    --border: #2c3137;
    --accent: #5cc5ac;
    --accent-soft: #1d2b28;
    --link: #7cc0f0;
    --note-bg: #2a2418;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); }
a { color: var(--link); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: .95rem; }
nav a:first-child { margin-left: 0; }
nav a:hover, .brand:hover { color: var(--accent); }

main { padding: 2rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; margin: .2rem 0 .6rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.12rem; margin: 1.8rem 0 .5rem; }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 1.4rem; }
.lede { font-size: 1.1rem; }

.picks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.picks li { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: .7rem .9rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--accent-soft); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }

.note { color: var(--muted); font-size: .9rem; }
.fit { background: var(--accent-soft); border-radius: var(--radius); padding: .6rem .9rem; }
.disclaimer { background: var(--note-bg); border-radius: var(--radius); padding: .7rem .9rem; font-size: .92rem; }
.sources li { margin: .25rem 0; font-size: .95rem; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; padding: 1.5rem 0 2.5rem; }
footer.site a { color: var(--muted); }
footer.site p { margin: .3rem 0; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  nav a { margin-left: .8rem; }
}
