:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --control-line: #86868b;
  /* Juice orange is the single accent: links, the 92% row, calculator outputs, focus. */
  --accent: #ff4d00;
  /* One grotesque family for everything, Geist-style, from the system stack. No webfonts. */
  --sans: -apple-system, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --control-line: #98989d;
    --accent: #ff7a45;
  }
}

* { box-sizing: border-box; }

body { margin: 0; }

::selection {
  color: var(--page);
  background: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(68rem, calc(100% - 2 * clamp(1rem, 4vw, 3rem)));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-decoration: none;
}

.site-name span {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9rem;
}

.nav-links [aria-current] { font-weight: 700; color: var(--ink); }

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

h1, h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(3.5rem, 1.75rem + 6vw, 5.5rem); }

h2 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); letter-spacing: -0.03em; }

h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  max-width: 70ch;
  margin: 0.75rem 0 0;
}

.lede {
  max-width: 58ch;
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.quote {
  margin: 2rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent);
}

blockquote {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

figcaption, caption, .site-footer { font-size: 0.88rem; }

figcaption { color: var(--muted); }

section {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.access-grid, .estimates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}

.access-grid > div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  margin: 1rem 0 0;
  background: var(--surface);
  white-space: pre-wrap;
}

table {
  width: min(100%, 40rem);
  border-collapse: collapse;
  margin: 1rem 0 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

caption {
  padding-bottom: 0.5rem;
  color: var(--muted);
  text-align: left;
}

th, td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

th:not(:first-child), td { text-align: right; }

.highlight { color: var(--accent); font-weight: 700; }

.table-scroll {
  overflow-x: auto;
  margin-block: 1rem;
}

.timing-table {
  width: 100%;
  min-width: 49rem;
  margin: 0;
}

.faq, .findings, .steps {
  max-width: 72ch;
  margin-bottom: 0;
}

.faq div + div, .findings li + li, .steps li + li { margin-top: 1rem; }

dt { font-weight: 650; }

dd { margin: 0.25rem 0 0; }

.steps, .findings { padding-inline-start: 1.5rem; }

.steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.calculator {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2rem) 0 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.calculator label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 650;
}

input {
  width: min(100%, 11rem);
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--control-line);
  border-radius: 0;
  color: var(--ink);
  background: var(--page);
  caret-color: var(--accent);
  font: inherit;
}

input[aria-invalid="true"] { border-style: dashed; }

#calculator-error { font-weight: 650; }

.estimates {
  max-width: 46rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.estimates output {
  color: var(--accent);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: 1rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p { max-width: none; }

@media (max-width: 44rem) {
  .hero-split, .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 27rem) {
  .estimates { grid-template-columns: 1fr; }
}
