:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #141414;
  --graphite: #444444;
  --paper: #D6D6D6;
  --signal: #E2E800;
  --muted: #979797;
}

* { box-sizing: border-box; }

html { background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a { color: inherit; }

.masthead {
  min-height: 430px;
  padding: 48px clamp(24px, 6vw, 92px);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.eyebrow, .index {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(76px, 15vw, 190px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.masthead-note {
  min-width: 240px;
  border-top: 5px solid var(--ink);
  padding-top: 14px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.masthead-note p { margin: 4px 0; }

.signal {
  min-height: 64px;
  padding: 14px clamp(24px, 6vw, 92px);
  background: var(--signal);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.signal span:last-child { margin-left: auto; }

main { background: var(--black); }

.intro, .section-block, .mcp-block {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
  border-bottom: 1px solid var(--graphite);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
}

h2 {
  margin: 0;
  max-width: 900px;
  color: var(--paper);
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.intro-copy {
  align-self: end;
  margin: 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.intro-copy strong { color: var(--signal); }

.metric-grid {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--graphite);
}

.metric {
  min-height: 190px;
  padding: 24px;
  background: var(--ink);
  border-right: 1px solid var(--graphite);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric:last-child { border-right: 0; }
.metric span, .metric small { color: var(--muted); }
.metric span { font: 12px "Courier New", monospace; text-transform: uppercase; }
.metric strong { font-size: clamp(34px, 4vw, 64px); font-weight: 400; }
.signal-metric { background: var(--signal); color: var(--ink); }
.signal-metric span, .signal-metric small { color: var(--ink); }

.section-heading {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
}

.section-heading h2 { font-size: clamp(36px, 5vw, 72px); }
.section-heading p:last-child { color: var(--muted); }

.chart-grid, .wide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.wide-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 0.7fr); }

.chart-panel, .range-panel {
  min-width: 0;
  padding: 22px;
  background: var(--ink);
}

.panel-label {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--graphite);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font: 12px "Courier New", monospace;
}

.panel-label b { color: var(--signal); font-weight: 400; }
canvas { display: block; width: 100%; height: auto; background: var(--ink); }

.range-panel { display: flex; flex-direction: column; justify-content: space-between; }
.range-panel span { color: var(--muted); font: 12px "Courier New", monospace; }
.range-panel strong { color: var(--signal); font-size: clamp(50px, 8vw, 112px); font-weight: 400; }
.range-panel p { color: var(--muted); }
.range-line { height: 14px; background: var(--graphite); }
.range-line i { display: block; width: 68%; height: 14px; margin: 0 auto; background: var(--signal); }

.table-wrap { overflow-x: auto; border: 1px solid var(--graphite); }
table { width: 100%; border-collapse: collapse; background: var(--ink); }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--graphite); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font: 11px "Courier New", monospace; text-transform: uppercase; }
td:first-child { color: var(--signal); text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

.mcp-block { padding-bottom: 110px; }
.mcp-block > p:not(.index) { max-width: 840px; color: var(--muted); font-size: 18px; }
code { background: var(--ink); color: var(--signal); font-family: "Courier New", monospace; }
.tool-list { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--graphite); border: 1px solid var(--graphite); }
.tool-list code { padding: 22px; }

footer {
  padding: 44px clamp(24px, 6vw, 92px);
  background: var(--ink);
  border-top: 1px solid var(--graphite);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

footer div { display: flex; flex-direction: column; }
footer strong { color: var(--paper); font-size: 22px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
footer a:hover, footer a:focus { color: var(--signal); }
footer > p { grid-column: 1 / -1; margin: 16px 0 0; font-size: 12px; }

.legal-head {
  padding: 28px clamp(24px, 6vw, 92px);
  background: var(--signal);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  font: 12px "Courier New", monospace;
}

.legal-head a { font-weight: 700; text-decoration: none; }
.legal-signal { position: static; }
.legal-main { min-height: 70vh; padding: 90px max(24px, calc((100vw - 980px) / 2)); }
.legal-main h1 { margin: 0 0 48px; color: var(--paper); font-size: clamp(60px, 10vw, 140px); font-weight: 400; letter-spacing: -0.07em; }
.legal-main > p { max-width: 820px; color: var(--paper); font-size: 21px; line-height: 1.7; }
.legal-main .legal-date { margin-top: 50px; color: var(--muted); font: 12px "Courier New", monospace; }

@media (max-width: 900px) {
  .masthead { min-height: 360px; align-items: flex-start; flex-direction: column; }
  .masthead-note { min-width: 0; width: 100%; }
  .signal { align-items: flex-start; flex-direction: column; gap: 5px; }
  .signal span:last-child { margin-left: 0; }
  .intro, .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--graphite); }
  .chart-grid, .wide-grid { grid-template-columns: 1fr; }
  .range-panel { min-height: 330px; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
  footer > p { grid-column: auto; }
}

@media (max-width: 560px) {
  .masthead { min-height: 320px; }
  .masthead h1 { font-size: 72px; }
  .intro, .section-block, .mcp-block, .metric-grid { width: min(100% - 28px, 1500px); }
  .intro, .section-block, .mcp-block { padding: 64px 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--graphite); }
  .metric:last-child { border-bottom: 0; }
  .tool-list { grid-template-columns: 1fr; }
}
