:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --rule: #dbe3ee;
  --accent: #0078d4;
  --accent-dark: #005a9e;
  --code: #eef5ff;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-dark);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  border-color: var(--rule);
  border-style: solid;
}

.site-header {
  border-width: 0 0 1px;
}

.site-footer {
  border-width: 1px 0 0;
}

.bar,
.page {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
}

.bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.page {
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: 0;
}

h2 {
  font-size: 28px;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.rows {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.row dt {
  font-weight: 700;
}

.row dd {
  margin: 0;
  color: var(--muted);
}

code,
textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--code);
  color: var(--text);
  font-size: 0.95em;
}

textarea {
  width: 100%;
  min-height: 164px;
  margin-top: 16px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 700px) {
  .bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .page {
    padding: 48px 0;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --text: #e5eef9;
    --muted: #9fb0c3;
    --rule: #1e3a5f;
    --accent: #369deb;
    --accent-dark: #74bef7;
    --code: #0b2540;
  }
}
