:root {
  --bg: #0b1f1e;
  --panel: #10302e;
  --ink: #f2f7f6;
  --muted: #a9c2bf;
  --accent: #19c58f;
  --accent-ink: #052016;
  --rule: #1d4a46;
  --max: 62rem;
}
:root:not([data-theme="dark"]) {
  --bg: #f4faf8;
  --panel: #ffffff;
  --ink: #0b1f1e;
  --muted: #4b6360;
  --accent: #0e8f66;
  --accent-ink: #ffffff;
  --rule: #d6e7e3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1f1e; --panel: #10302e; --ink: #f2f7f6; --muted: #a9c2bf; --accent: #19c58f; --accent-ink: #052016; --rule: #1d4a46;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; line-height: 1.6;
}
main, header, footer { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
header a { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
header nav a { font-weight: 500; color: var(--muted); margin-left: 1.25rem; }
header nav a:hover, header nav a:focus-visible { color: var(--accent); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: 2.5rem 0 1rem; max-width: 22ch; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
p { max-width: 65ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.9rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 0.6rem; padding: 1.1rem 1.2rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.links a { display: inline-block; margin: 0.4rem 1rem 0 0; color: var(--accent); font-weight: 600; }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; padding: 1.5rem 0 2.5rem; margin-top: 3rem; }
footer a { color: var(--muted); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; max-width: 65ch; }
@media (prefers-reduced-motion: no-preference) { a { transition: color 120ms ease; } }
