:root {
  --paper: #f3f1eb;
  --paper-deep: #e8e5dc;
  --ink: #181918;
  --muted: #77776f;
  --line: #d5d2c8;
  --blue: #2854b6;
  --shadow: rgba(24, 25, 24, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  display: none;
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  border-bottom: 1px solid var(--line);
  animation: rise-in 700ms ease both;
}

.wordmark,
.eyebrow,
.topbar-meta,
.section-kicker,
.release-index,
.release-specs,
.release-summary p,
.latest-build,
.minor-label,
.archive-meta,
.footer-meta,
.hero-note,
.search-field input {
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
}

.wordmark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.wordmark span { color: var(--blue); padding: 0 4px; }

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(40, 84, 182, 0.13);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 8vw;
  align-items: end;
  min-height: 470px;
  padding: 82px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-copy { max-width: 690px; animation: rise-in 750ms 80ms ease both; }

.eyebrow {
  margin: 0 0 26px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.3vw, 84px);
  font-weight: 540;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 em {
  color: var(--blue);
  font-family: inherit;
  font-style: normal;
  font-weight: 450;
  letter-spacing: -0.065em;
}

.hero-lede {
  max-width: 430px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-links,
.latest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button,
.text-link,
.compact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button { padding: 14px 17px; }

.button span,
.text-link span,
.compact-link span { font-size: 15px; line-height: 0; }

.button:hover,
.text-link:hover,
.compact-link:hover { transform: translateY(-2px); }

.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--blue); }
.button-primary { background: var(--blue); color: #fffaf2; }
.button-primary:hover { background: var(--ink); }
.button-light { background: var(--paper-deep); color: var(--ink); }
.button-light:hover { background: var(--ink); color: var(--paper); }
.text-link { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.hero-note {
  align-self: end;
  max-width: 220px;
  padding: 5px 0 5px 20px;
  border-left: 1px solid var(--ink);
  animation: rise-in 750ms 180ms ease both;
}

.hero-note-label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-transform: uppercase;
}

.latest-section,
.archive-section { padding: 82px 0 0; }

.section-kicker {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker span:first-child { color: var(--blue); }

.latest-release {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 7vw;
  padding: 35px 0 54px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  animation: rise-in 750ms 170ms ease both;
}

.latest-title-line,
.release-version-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  background: var(--blue);
  color: white;
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-date {
  color: var(--muted);
  font-size: 12px;
}

.latest-main h2 {
  margin: 30px 0 12px;
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 530;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.latest-build {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.latest-changelog { padding-top: 5px; }

.minor-label {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.latest-changelog ul,
.release-details ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.latest-changelog li,
.release-details li {
  position: relative;
  padding-left: 19px;
  color: #4b4c47;
  font-size: 13px;
  line-height: 1.55;
}

.latest-changelog li::before,
.release-details li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 1px;
  content: "";
  background: var(--blue);
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}

.archive-heading .eyebrow { margin-bottom: 15px; }

.archive-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 530;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
}

.search-icon { color: var(--blue); font-size: 22px; line-height: 0; }

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-field input::placeholder { color: var(--muted); }

.archive-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

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

.release-row {
  display: grid;
  grid-template-columns: 54px minmax(170px, 1.15fr) minmax(165px, 0.85fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, padding 180ms ease;
}

.release-row:hover { background: rgba(255, 255, 255, 0.28); }

.release-index {
  align-self: start;
  padding-top: 4px;
  color: var(--blue);
  font-size: 11px;
}

.release-summary h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.055em;
}

.release-summary p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.release-specs {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 14px;
}

.compact-link {
  color: var(--ink);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.compact-link:hover { color: var(--blue); }

.release-details { grid-column: 2 / -1; }

.release-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  list-style: none;
  text-transform: uppercase;
}

.release-details summary::-webkit-details-marker { display: none; }
.release-details summary::before { content: "+ "; color: var(--blue); }
.release-details[open] summary::before { content: "− "; }
.release-details ul { max-width: 670px; margin-top: 20px; margin-bottom: 0; }

.empty-state,
.loading-line {
  padding: 30px 0;
  color: var(--muted);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 110px;
  padding: 25px 0 36px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 12px;
}

.footer p { margin: 0; }
.footer-meta { font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 36px, 620px); }
  .topbar { height: 70px; }
  .topbar-meta span:first-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 56px; min-height: auto; padding: 78px 0 86px; }
  .hero-note { width: min(100%, 330px); max-width: none; justify-self: start; }
  .latest-release { grid-template-columns: 1fr; gap: 48px; }
  .archive-heading { align-items: start; flex-direction: column; }
  .search-field { width: 100%; }
  .release-row { grid-template-columns: 35px minmax(0, 1fr); gap: 13px 16px; }
  .release-specs { grid-column: 2; }
  .release-actions { grid-column: 2; justify-content: start; }
  .release-details { grid-column: 2; }
  .archive-meta { flex-direction: column; gap: 7px; }
  .footer { flex-direction: column; gap: 12px; margin-top: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
