:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #22201c;
  --muted: #6b655c;
  --accent: #b5542d;
  --accent-ink: #ffffff;
  --line: #e6e0d6;
  --max: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171512;
    --surface: #211e1a;
    --text: #efe9df;
    --muted: #a69e92;
    --accent: #e07a4f;
    --accent-ink: #171512;
    --line: #35302a;
  }
}
:root[data-theme="dark"] {
  --bg: #171512;
  --surface: #211e1a;
  --text: #efe9df;
  --muted: #a69e92;
  --accent: #e07a4f;
  --accent-ink: #171512;
  --line: #35302a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: 0.01em; }
.brand svg { width: 30px; height: 30px; fill: var(--accent); }
nav.site a { color: var(--muted); margin-left: 18px; text-decoration: none; }
nav.site a:hover { color: var(--text); }
.hero { padding: 56px 0 28px; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.015em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 24px; max-width: 36rem; }
.tag { display: inline-block; font-size: 0.95rem; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 14px; }
section { padding: 26px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.35rem; margin: 0 0 10px; }
section p { margin: 0 0 12px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.note { color: var(--muted); font-size: 0.95rem; }
footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 0.95rem; }
footer.site a { color: var(--muted); margin-right: 16px; }
article h1 { font-size: 2rem; line-height: 1.15; margin: 40px 0 8px; }
article h2 { font-size: 1.25rem; margin: 28px 0 8px; }
article p, article li { color: var(--text); }
article .meta { color: var(--muted); margin-bottom: 20px; }
article ul { padding-left: 1.2rem; }
article table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
article th, article td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
