:root {
  color-scheme: light dark;
  --paper: #f8f6ef;
  --surface: #fffdf7;
  --ink: #1d241f;
  --muted: #5d665f;
  --line: #d8d8cc;
  --accent: #35694f;
  --accent-soft: #e3efe7;
  --notice: #fff2c8;
  --danger: #8c2e2e;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-synthesis: none;
  line-height: 1.75;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header, .site-footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
}

.site-header-inner, .site-footer-inner, main {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-nav a { font-size: .92rem; }

main { padding-block: 56px 80px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: .01em; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { margin: 2.8em 0 .7em; font-size: clamp(1.35rem, 4vw, 1.8rem); }
h3 { margin: 1.8em 0 .5em; font-size: 1.08rem; }
p, ul, ol, dl { margin-block: .7em; }
li + li { margin-top: .45em; }

.lead { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.updated { color: var(--muted); font-size: .9rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.card, .callout, details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card { padding: 20px; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.callout { margin-block: 24px; padding: 18px 20px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout.notice { background: var(--notice); color: #3d3212; border-color: #e2cf8b; }
.callout.danger { border-color: #d7a4a4; color: var(--danger); }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--accent); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 28%; color: var(--muted); font-weight: 700; }

details { margin-top: 14px; padding: 0 18px; }
summary { cursor: pointer; padding-block: 16px; font-weight: 750; }
details > :not(summary) { margin-left: 0; }

.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: inherit; }

.site-footer { border-width: 1px 0 0; }
.site-footer-inner { padding-block: 28px 40px; color: var(--muted); font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }

@media (max-width: 560px) {
  .site-header-inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  main { padding-block: 36px 64px; }
  th, td { display: block; width: 100%; padding: 10px 8px; }
  th { border-bottom: 0; padding-bottom: 0; }
  td { padding-top: 2px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121713;
    --surface: #1a211c;
    --ink: #f1f4ef;
    --muted: #b3bdb5;
    --line: #39433b;
    --accent: #91d2ae;
    --accent-soft: #263a2e;
    --notice: #39331f;
    --danger: #ffb4b4;
  }
  .button { color: #102118; }
  .callout.notice { color: #f5e6b4; border-color: #665a2f; }
  .callout.danger { border-color: #734545; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
