:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --surface: #fffdf8;
  --text: #242722;
  --muted: #62675f;
  --accent: #41624a;
  --border: #d9ddd5;
  --shadow: 0 18px 55px rgb(35 43 36 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a17;
    --surface: #202420;
    --text: #f2f3ee;
    --muted: #bdc4bb;
    --accent: #9ecaa8;
    --border: #3b433b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; line-height: 1.65; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
.site-header, main, .site-footer { width: min(100% - 2rem, 760px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.brand { color: var(--text); font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .92rem; }
nav a { color: var(--muted); }
main { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 3.25rem); margin-block: 1rem 3rem; }
h1, h2 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 7vw, 3.3rem); margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; }
p, li { max-width: 68ch; }
.lede { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.meta { color: var(--muted); font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { display: block; border: 1px solid var(--border); border-radius: 18px; padding: 1.2rem; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card strong { display: block; margin-bottom: .3rem; }
.card span { color: var(--muted); font-size: .95rem; }
.button { display: inline-block; background: var(--accent); color: var(--surface); border-radius: 999px; padding: .7rem 1.1rem; font-weight: 700; text-decoration: none; }
.notice { border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: .85rem 1rem; border-radius: 0 12px 12px 0; }
.site-footer { color: var(--muted); font-size: .88rem; padding-bottom: 2.5rem; }
@media (max-width: 600px) { .site-header { align-items: flex-start; flex-direction: column; } }
