:root {
  color-scheme: light dark;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --text: #17201c;
  --muted: #5b6761;
  --accent: #087f5b;
  --accent-soft: #dff5ec;
  --border: #dce4df;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav {
  width: min(1040px, calc(100% - 2rem));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.nav-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.nav-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

main {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero { padding: clamp(1rem, 4vw, 3rem) 0 2rem; }
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { margin: 0.35rem 0 1rem; font-size: clamp(2.4rem, 7vw, 4.7rem); }
h2 { margin: 2.8rem 0 0.8rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { margin: 1.8rem 0 0.45rem; font-size: 1.08rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.35rem; }
li + li { margin-top: 0.45rem; }

.lede { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.25rem); }
.updated { color: var(--muted); font-size: 0.9rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card, .notice {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card { padding: 1.4rem; text-decoration: none; }
.card h2 { margin: 0 0 0.4rem; color: var(--text); font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.notice { margin: 1.5rem 0; padding: 1.25rem 1.4rem; background: var(--accent-soft); }
.notice p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.94rem; }
th, td { padding: 0.85rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }

footer {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 160ms ease, border-color 160ms ease; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111714;
    --surface: #18211d;
    --text: #edf5f0;
    --muted: #acbbb3;
    --accent: #69ddb6;
    --accent-soft: #17372c;
    --border: #324139;
    --shadow: none;
  }
}
