:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #6b655c;
  --accent: #7a5c3a;
  --accent-soft: #e9dfd0;
  --line: #e2dccf;
  --max: 960px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15140f;
    --surface: #1f1d17;
    --text: #efe9df;
    --muted: #a39b8d;
    --accent: #d2a96f;
    --accent-soft: #2c2619;
    --line: #2e2a22;
  }
}
:root[data-theme="dark"] {
  --bg: #15140f;
  --surface: #1f1d17;
  --text: #efe9df;
  --muted: #a39b8d;
  --accent: #d2a96f;
  --accent-soft: #2c2619;
  --line: #2e2a22;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
nav a { margin-left: 18px; color: var(--muted); font-size: 15px; }
nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

main { padding: 48px 0 72px; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 20px 0 6px; }
p.lede { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 32px; }
p { max-width: 680px; }
ul { max-width: 680px; padding-left: 22px; }
li { margin: 4px 0; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: block;
  color: var(--text);
}
.card:hover { text-decoration: none; border-color: var(--accent); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }

.status { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 8px; vertical-align: middle; }

table { border-collapse: collapse; width: 100%; max-width: 680px; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); font-size: 14px; }

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  p.lede { font-size: 18px; }
  nav a { margin-left: 0; margin-right: 16px; }
}
