:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1b19;
  --muted: #5f5a54;
  --line: #e6e1da;
  --accent: #b4532a;
  --accent-text: #ffffff;
  --max: 46rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #1f1c1a;
    --text: #f1ece6;
    --muted: #b3aba2;
    --line: #34302c;
    --accent: #e48a5f;
    --accent-text: #161412;
  }
}
* { 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, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: 0.95rem; }
nav a:hover { color: var(--text); }
main { padding-block: 2.5rem 3rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, li { color: var(--text); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.muted { color: var(--muted); font-size: 0.95rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: 0.7rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.legal h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }
footer.site { border-top: 1px solid var(--line); padding-block: 1.5rem; }
footer.site p { margin: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
footer.site a { color: var(--muted); }
