:root {
  color-scheme: dark;
  --ink: #ecf2e8;
  --muted: #a8b7ad;
  --acid: #bdff5c;
  --blue: #73d9ff;
  --panel: #151d1a;
  --line: #34443d;
  background: #09100e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% 0, #183b34 0, transparent 34rem), #09100e; }
.hero, main, footer { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; }
.hero { min-height: 74vh; padding: 7rem 0 4rem; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow, .section-number { color: var(--acid); font: 700 .78rem/1.4 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 13ch; margin: .5rem 0 1rem; font-size: clamp(3rem, 8vw, 7rem); line-height: .92; letter-spacing: -.065em; }
.lede { max-width: 48rem; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
nav, .links, footer { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
a { color: var(--blue); text-underline-offset: .2em; }
section { padding: 5rem 0; border-top: 1px solid var(--line); }
h2 { margin: .3rem 0 2rem; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.04em; }
h3 { margin-top: 0; }
p { line-height: 1.65; }
code, pre, textarea, input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre, textarea, input, .callout, article { border: 1px solid var(--line); background: color-mix(in srgb, var(--panel), transparent 8%); border-radius: .45rem; }
pre { padding: 1rem; overflow: auto; }
.callout { margin: 2rem 0; padding: 1rem; border-left: .3rem solid var(--acid); }
textarea, input { width: 100%; color: var(--ink); padding: 1rem; font-size: .95rem; }
label { display: block; margin: .75rem 0 .4rem; color: var(--muted); }
.controls { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: end; }
.controls label { grid-column: 1 / -1; }
button { min-height: 3.2rem; padding: 0 1.4rem; border: 0; border-radius: .45rem; background: var(--acid); color: #071007; font-weight: 800; cursor: pointer; }
.result { min-height: 10rem; color: var(--acid); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
article { padding: 1.4rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); }
footer { justify-content: space-between; padding: 2rem 0 4rem; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 42rem) {
  .hero { padding-top: 4rem; }
  .grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .controls label { grid-column: auto; }
}
