:root {
  --paper: #e8ece7;
  --ink: #1a211c;
  --mute: #5c665f;
  --line: #c3cbc2;
  --panel: #f4f6f2;
  --accent: #1f6b62;
  --warn: #9a4b22;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
code, pre { font-family: var(--mono); }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 6vw;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.82rem;
}
.bar nav { display: flex; gap: 1.2rem; }
.bar a { color: var(--mute); text-decoration: none; }
.bar a:hover { color: var(--ink); }

.hero {
  padding: 4.5rem 6vw 3rem;
  max-width: 52rem;
}
.avail {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
h1 {
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.25rem;
  color: var(--mute);
  max-width: 38rem;
  margin: 0;
}

.section {
  padding: 2.6rem 6vw 3.2rem;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-weight: 450;
  font-size: 1.7rem;
  margin: 0 0 0.7rem;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.45rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 1.8rem;
  border: 1px solid var(--line);
}
.spec {
  background: var(--panel);
  padding: 1rem 1.1rem 1.15rem;
}
.spec span {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.35rem;
}
.spec b {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 450;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.6rem;
}
.stat b {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--mute);
}

.tapes {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.9rem 1rem 0.7rem;
}
.tapes p {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--mute);
  margin: 0.55rem 0 0;
}
.lane {
  display: flex;
  gap: 0.35rem;
  align-items: end;
  height: 56px;
  margin: 0.35rem 0;
}
.lane i {
  display: block;
  width: 6px;
  background: var(--accent);
  opacity: 0.85;
}
.lane.slow i { background: var(--warn); opacity: 0.7; }

pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 1.2rem 0 0.6rem;
}
.fine { font-family: var(--sans); font-size: 0.82rem; color: var(--mute); }

.compare {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.compare a {
  font-family: var(--sans);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
  color: var(--ink);
}
.compare a:hover { border-color: var(--accent); }

footer {
  padding: 1.4rem 6vw 2.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--mute);
}

@media (max-width: 800px) {
  .specs, .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .specs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
