:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --fg-2: #8f8f8f;
  --fg-3: #5e5e5e;
  --accent: #d4a84b;
  --line: rgba(255, 255, 255, 0.08);
  --col: 1040px;
  --pad: clamp(20px, 5vw, 56px);
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum";
}
a { color: inherit; text-decoration: none; }
img { display: block; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; color: var(--fg); }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 18px; }
h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }

/* header */
.top {
  max-width: var(--col); margin: 0 auto; padding: 22px var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 24px; height: auto; }
.top nav { display: flex; gap: 22px; font-size: 14px; color: var(--fg-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); }
.top nav a[aria-current] { color: var(--accent); }

/* page column */
main { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }
section { border-top: 1px solid var(--line); padding: 44px 0; }
section:first-child { border-top: 0; }

/* two-column section: label left, content right */
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.row > .label { margin: 0; padding-top: 4px; }
.label { font-size: 13px; color: var(--accent); margin: 0 0 16px; }
.body { max-width: var(--measure); }
.body p { color: var(--fg-2); }
.body p strong { color: var(--fg); }
.body p:last-child { margin-bottom: 0; }
.quiet { color: var(--fg-3); }
.body p + .quiet { margin-top: 20px; }
.more { display: inline-block; margin-top: 18px; color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.more:hover { color: var(--accent); }

/* hero */
.hero { padding: 64px 0 52px; }
.lockup { width: 250px; height: auto; margin: 0 0 40px; }
.hero h1 {
  font-size: clamp(32px, 2rem + 2.4vw, 54px); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em;
  margin: 0 0 18px; max-width: 18ch;
}
.sub { font-size: 18px; color: var(--fg-2); margin: 0; max-width: 40em; }

/* page title (inner pages) */
.title { padding: 56px 0 44px; }
.title h1 { font-size: clamp(30px, 2rem + 1.6vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 16px; max-width: 22ch; }

/* lists */
.list { list-style: none; margin: 0 0 20px; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--fg-2); }
.list li:first-child { border-top: 0; padding-top: 0; }

.facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--fg-3); margin: 0; }
.facts dd { margin: 0; color: var(--fg-2); }

/* engine page: parts grid */
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.parts p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* measurements */
.measure { margin: 0; }
.measure > div { padding: 16px 0; border-top: 1px solid var(--line); }
.measure > div:first-child { border-top: 0; padding-top: 0; }
.measure dt { font-weight: 500; margin-bottom: 4px; }
.measure dd { margin: 0; color: var(--fg-2); font-size: 15px; }

/* test suites */
.suite-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin: 0 0 36px; }
.suite-summary div { border-top: 1px solid var(--line); padding-top: 10px; }
.suite-summary dt { font-size: 13px; color: var(--fg-3); }
.suite-summary dd { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.suite { margin: 0 0 32px; }
.suite:last-child { margin-bottom: 0; }
.suite header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--fg-3); }
.suite header h3 { margin: 0; }
.suite header span { color: var(--fg-2); font-size: 14px; }
.suite header span b { color: var(--fg); font-weight: 500; }
.suite ul { list-style: none; margin: 0; padding: 0; }
.suite li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 48px; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.suite li code { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; color: var(--fg); }
.suite li span { color: var(--fg-2); }
.suite li em { font-style: normal; text-align: right; color: var(--fg); }
.suite .note { color: var(--fg-3); font-size: 14px; margin: 10px 0 0; }

/* head-to-head table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0 8px; }
.compare th { text-align: left; font-weight: 400; font-size: 13px; color: var(--fg-3); padding: 0 0 8px; border-bottom: 1px solid var(--fg-3); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: right; white-space: nowrap; }
.compare td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare td:first-child { color: var(--fg-2); padding-right: 16px; }
.compare td:nth-child(2) { color: var(--fg); font-weight: 500; }
.compare td:nth-child(3) { color: var(--fg-2); }
.compare tfoot td { border-bottom: 0; color: var(--fg-3); font-size: 13px; padding-top: 10px; text-align: left; white-space: normal; }

/* dated list */
.dated { list-style: none; margin: 0; padding: 0; }
.dated li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dated li:first-child { border-top: 0; padding-top: 0; }
.dated time { color: var(--fg-3); font-size: 14px; padding-top: 2px; }
.dated p { margin: 0; color: var(--fg-2); }
.dated p strong { color: var(--fg); }

/* goals */
.goals { list-style: none; margin: 0; padding: 0; counter-reset: goal; }
.goals li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); counter-increment: goal; }
.goals li:first-child { border-top: 0; padding-top: 0; }
.goals li::before { content: counter(goal, decimal-leading-zero); color: var(--accent); font-size: 13px; padding-top: 4px; }
.goals p { margin: 0; color: var(--fg-2); }
.goals p strong { color: var(--fg); }

/* contact */
.mail { font-size: clamp(22px, 1.2rem + 1.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.mail:hover { color: var(--accent); }

footer {
  max-width: var(--col); margin: 0 auto; padding: 24px var(--pad) 40px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
}
footer p { margin: 0; }
footer a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .parts { grid-template-columns: 1fr; gap: 20px; }
  .suite-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite li { grid-template-columns: minmax(0, 1fr) 40px; }
  .suite li code { grid-column: 1; }
  .suite li span { grid-column: 1; }
  .suite li em { grid-column: 2; grid-row: 1; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .hero { padding-top: 52px; }
  .lockup { width: 210px; margin-bottom: 32px; }
  .top nav { gap: 16px; }

  .compare { font-size: 14px; }
  .compare th:not(:first-child), .compare td:not(:first-child) { white-space: normal; }
  .dated li { grid-template-columns: 1fr; gap: 2px; }
}
