:root {
  --bg: #0d0d0d;
  --surface: #181818;
  --surface2: #232323;
  --border: #2e2e2e;
  --text: #d4d4d4;
  --muted: #8a8a8a;
  --accent: #fbbf24;
  --fill: #b45309;
  --on-fill: #ffffff;
  --link: #fbbf24;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface2: #f0f0f0;
    --border: #d4d4d4;
    --text: #1a1a1a;
    --muted: #525252;
    --accent: #c2410c;
    --fill: #c2410c;
    --link: #c2410c;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 60rem; }

header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; display: block; border-radius: 7px; }
nav { display: flex; gap: 18px; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--text); }

.hero { padding: 56px 0 40px; }
.eyebrow { color: var(--accent); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.2em 0 .5em; }
h3 { font-size: 1.05rem; margin: 1.6em 0 .3em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.btn { display: inline-block; background: var(--fill); color: var(--on-fill); padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 20px 0 8px; padding: 0; list-style: none; }
@media (min-width: 40rem) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.card h3 { margin: 0 0 6px; color: var(--accent); }
.card p { margin: 0; font-size: .97rem; color: var(--text); }

.note { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 28px 0; }
.note p { margin: 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details p { margin: 0 0 14px; }

.doc h1 { font-size: 2rem; margin-top: 40px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0 0 1.2em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 600; }
.ph { background: var(--surface2); border: 1px dashed var(--accent); border-radius: 4px; padding: 0 4px; white-space: normal; }
.tablewrap { overflow-x: auto; }

footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
