:root {
  color-scheme: light dark;
  --bg: #f4f7f5;
  --panel: #ffffff;
  --text: #15211b;
  --muted: #52645b;
  --line: #d8e2dc;
  --accent: #176b4d;
  --accent-strong: #0f5139;
  --accent-soft: #dff4e8;
  --focus: #ffbf47;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d0b;
    --panel: #111a16;
    --text: #edf7f1;
    --muted: #adbbb3;
    --line: #293930;
    --accent: #72ddb1;
    --accent-strong: #9bf0c9;
    --accent-soft: #173a2c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: .9rem; }
nav a { font-weight: 650; text-decoration: none; }

main { padding: 3rem 0 4rem; }

.hero { padding: 2rem 0 1.25rem; }
.eyebrow {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { max-width: 18ch; margin: .35rem 0 1rem; font-size: clamp(2.1rem, 7vw, 3.7rem); }
h2 { margin-top: 2.25rem; font-size: 1.45rem; }
h3 { margin-top: 1.5rem; font-size: 1.12rem; }
p, li { max-width: 72ch; }
.lede { color: var(--muted); font-size: 1.15rem; }
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.card, .notice {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 1.25rem;
}

.card h2 { margin-top: 0; }
.card a { font-weight: 750; }
.notice { margin: 1.5rem 0; background: var(--accent-soft); }

.button {
  display: inline-block;
  margin-top: .5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #06130d;
  font-weight: 800;
  padding: .72rem 1.1rem;
  text-decoration: none;
}

@media (prefers-color-scheme: light) {
  .button { color: #fff; }
}

dl { display: grid; gap: .45rem; }
dt { font-weight: 800; }
dd { margin: 0 0 .8rem; color: var(--muted); }

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

@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  main { padding-top: 1.75rem; }
}
