:root {
  color-scheme: light dark;
  --bg: #071017;
  --surface: #0d1a24;
  --surface-strong: #122431;
  --text: #f4f8fb;
  --muted: #a9bac6;
  --accent: #55e5b7;
  --accent-strong: #20bd90;
  --line: rgba(255, 255, 255, 0.12);
  --max: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 189, 144, 0.18), transparent 34rem),
    linear-gradient(180deg, #071017 0%, #09141c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #91f2d3; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 23, 0.82);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

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

.brand span { color: var(--accent); }

nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--text); }

main { padding: 68px 0 88px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { margin: 0 0 14px; font-size: clamp(2.25rem, 8vw, 4.5rem); }
h2 { margin: 52px 0 14px; font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { margin: 30px 0 8px; font-size: 1.12rem; }
p, ul { margin: 0 0 18px; }
ul { padding-left: 1.35rem; }
li + li { margin-top: 8px; }

.lede { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.updated { margin-top: 24px; color: var(--muted); font-size: 0.9rem; }

.notice,
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 26, 36, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.notice { margin: 34px 0; padding: 20px 22px; }
.notice strong { color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 8px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 26, 36, 0.62);
}

.feature-card h3 { margin-top: 0; }
.feature-card p { margin-bottom: 0; color: var(--muted); }

.card { display: block; padding: 26px; color: var(--text); text-decoration: none; }
.card:hover { border-color: rgba(85, 229, 183, 0.55); background: var(--surface-strong); }
.card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }

.toc {
  margin: 36px 0 44px;
  padding: 24px;
  border-left: 3px solid var(--accent-strong);
  background: rgba(18, 36, 49, 0.62);
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { columns: 2; margin: 0; padding-left: 1.25rem; }
.toc li { break-inside: avoid; margin: 4px 18px 4px 0; }

.table-wrap { overflow-x: auto; margin: 20px 0 28px; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-strong); }
td { color: var(--muted); }

address { font-style: normal; }

.site-footer {
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  main { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

@media print {
  :root { color-scheme: light; --bg: white; --text: #111; --muted: #333; --line: #ccc; }
  body { background: white; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .toc { display: none; }
  main { width: 100%; padding: 0; }
  h2 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}