:root {
  --bg: #f8f8f4;
  --ink: #11110f;
  --muted: #63645f;
  --line: #d8d8ce;
  --line-strong: #9b9b91;
  --accent: #285b34;
  --warn: #8b3f2f;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 750;
}

.brand img {
  display: block;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--ink);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.intro {
  padding: clamp(42px, 8vw, 86px) 0 clamp(28px, 5vw, 48px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.pretitle,
.facts dt,
.ruled-list h3,
.link-grid span,
.surface span,
.section-head p,
footer {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pretitle {
  margin: 0 0 14px;
  color: var(--accent);
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.summary {
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
}

.summary p:last-child {
  margin-bottom: 0;
}

.facts {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.facts div {
  min-width: 0;
  padding: 16px 12px 18px;
  text-align: center;
}

.facts dt {
  margin-bottom: 7px;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 760;
  line-height: 1.1;
}

.facts .mode-value {
  white-space: nowrap;
}

.facts dd code {
  font-size: 0.92em;
}

.section {
  padding: clamp(54px, 8vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}

.compact-section {
  padding-top: clamp(34px, 5vw, 54px);
  padding-bottom: clamp(34px, 5vw, 54px);
}

.section h2 {
  margin-bottom: clamp(22px, 4vw, 36px);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 36px);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  text-align: right;
}

.page-copy {
  max-width: 820px;
  margin-bottom: clamp(22px, 4vw, 36px);
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
}

.section-link {
  margin: 18px 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.section-link a {
  text-decoration: none;
}

.section-link a:hover {
  color: var(--ink);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.link-grid a {
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  padding: 17px 18px 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.link-grid strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
}

.link-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.link-grid a:hover strong {
  color: var(--accent);
}

.ruled-list {
  border-top: 1px solid var(--line-strong);
}

.ruled-list article {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 52px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.ruled-list h3 {
  margin-bottom: 0;
  color: var(--warn);
}

#uses .ruled-list article {
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
}

.ruled-list p,
.surface p,
.status-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.secondary-table {
  margin-top: 22px;
}

.methodology {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.35fr;
  gap: clamp(14px, 3vw, 30px);
  margin-top: 20px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.methodology div {
  min-width: 0;
}

.methodology strong {
  display: block;
  margin-bottom: 6px;
  color: var(--warn);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.methodology span,
.methodology code {
  color: var(--muted);
  font-size: 15px;
}

.eval-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 52px);
  padding: 20px 0 0;
}

.eval-notes p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

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

td:first-child,
td:last-child {
  color: var(--ink);
  font-weight: 700;
}

td:last-child {
  white-space: normal;
}

.release-table td,
.comparison-table td {
  min-width: 140px;
}

.release-table td:nth-child(3),
.release-table td:last-child,
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table td:last-child {
  white-space: normal;
}

.surface {
  border-top: 1px solid var(--line-strong);
}

.surface div {
  display: grid;
  grid-template-columns: minmax(110px, 0.2fr) minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 36px);
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.surface span {
  color: var(--warn);
}

.surface strong {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.1;
}

.code-section pre {
  margin: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.status-list li {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--line);
}

.status-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 34px;
  color: var(--muted);
}

footer nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar nav {
    justify-content: flex-start;
    gap: 18px;
  }

  .intro-grid,
  .link-grid,
  .ruled-list article,
  .surface div,
  .methodology,
  .eval-notes {
    grid-template-columns: 1fr;
  }

  #uses .ruled-list article {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(32px, 8.6vw, 38px);
  }

  .facts dl,
  .status-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
    text-align: left;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  main,
  .topbar,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar nav {
    font-size: 13px;
    gap: 13px;
  }

  .facts dl,
  .status-list {
    grid-template-columns: 1fr;
  }

  .facts div {
    padding-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
