:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #14181f;
  --text-2: #4a5360;
  --line: #dde2e9;
  --accent: #0a68cc;
  --accent-ink: #ffffff;
  --measure: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --text: #e8ecf1;
    --text-2: #a3adba;
    --line: #2a313b;
    --accent: #5aa9ff;
    --accent-ink: #0d1117;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 10; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav.site ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
nav.site a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 2.5rem 0 4rem; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol { margin: 0.75rem 0; }
li { margin: 0.35rem 0; }
.meta { color: var(--text-2); font-size: 0.9rem; margin: 0 0 2rem; }
.lede { font-size: 1.15rem; color: var(--text-2); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1.1rem; margin: 1.5rem 0; }
.note p:first-child { margin-top: 0; } .note p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { color: var(--text-2); font-weight: 600; white-space: nowrap; }

.cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; padding: 0; margin: 1.5rem 0; }
.cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; color: var(--text); text-decoration: none; }
.cards a:hover { border-color: var(--accent); }
.cards strong { display: block; margin-bottom: 0.2rem; }
.cards span { color: var(--text-2); font-size: 0.95rem; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.65rem 1.1rem; border-radius: 10px; text-decoration: none; font-weight: 600; }

details { border-bottom: 1px solid var(--line); padding: 0.25rem 0; }
summary { cursor: pointer; font-weight: 600; padding: 0.7rem 0; }
details > :not(summary) { margin-top: 0; }
details[open] { padding-bottom: 0.5rem; }

footer.site { border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.9rem; }
footer.site .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
footer.site ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; padding: 0; margin: 0 0 0.75rem; }
footer.site a { color: var(--text-2); }

@media (max-width: 30rem) { h1 { font-size: 1.65rem; } main { padding-top: 1.75rem; } }
@media print { header.site nav, footer.site ul, .skip { display: none; } }
