/* DiscToISO — "Polycarbonate"
   Dark by commitment, not by default: the subject is a disc spinning in a dark
   drive, and the accent is sampled from real CD diffraction rather than a
   stock gradient. */

:root {
  --ink: #0b0e14;
  --ink-2: #10141d;
  --ink-3: #161b26;
  --line: #232936;
  --line-2: #2f3746;

  --fg: #e8edf5;
  --fg-2: #97a2b4;
  --fg-3: #5f6a7d;

  /* Diffraction: the colors light actually splits into off a disc. */
  --cyan: #3fd5d0;
  --magenta: #c86be8;
  --amber: #f0b54a;
  --spectrum: linear-gradient(100deg, var(--cyan), var(--magenta) 55%, var(--amber));

  --ok: #5fd08a;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --page: 1080px;
  --gut: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gut);
}

a {
  color: var(--fg);
}

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

code {
  font: 0.88em/1.4 var(--mono);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.38em;
}

.eyebrow {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 18px;
}

.spec {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 24px;
  height: 24px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-nav .btn-sm {
  background: var(--fg);
  color: var(--ink);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
}

.site-nav .btn-sm:hover {
  background: #fff;
  color: var(--ink);
}

@media (max-width: 680px) {
  .site-nav .hide-sm {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 680;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero .lede {
  color: var(--fg-2);
  font-size: 17px;
  margin: 0 0 14px;
  max-width: 46ch;
}

.hero .lede:last-of-type {
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--fg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 7px;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: none;
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--ink-3);
  color: var(--fg);
}

.hero-meta {
  margin: 20px 0 0;
  font: 11.5px/1.6 var(--mono);
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.7));
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ---------- generic section ---------- */

.section {
  border-bottom: 1px solid var(--line);
  padding: 84px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section p {
  color: var(--fg-2);
  margin: 0 0 16px;
  max-width: 62ch;
}

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

/* ---------- alternating figure rows ---------- */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.row + .row {
  margin-top: 76px;
}

.row.flip .row-copy {
  order: 2;
}

.row h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 620;
}

.row p {
  color: var(--fg-2);
  margin: 0 0 14px;
  max-width: 48ch;
}

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

.shot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.6));
}

.shot figcaption {
  margin: 14px 0 0;
  font: 11.5px/1.5 var(--mono);
  color: var(--fg-3);
}

@media (max-width: 860px) {
  .row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .row.flip .row-copy {
    order: 0;
  }
  .row + .row {
    margin-top: 56px;
  }
}

/* ---------- spec table ---------- */

.specs {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.spec-row {
  display: flex;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font: 13px/1.5 var(--mono);
}

.spec-row dt {
  color: var(--fg-3);
  min-width: 116px;
  margin: 0;
  flex-shrink: 0;
}

.spec-row dd {
  color: var(--fg);
  margin: 0;
}

/* ---------- callout ---------- */

.note {
  display: flex;
  gap: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  max-width: 68ch;
}

.note p {
  margin: 0;
  font-size: 14.5px;
}

.note strong {
  color: var(--fg);
}

/* ---------- changelog ---------- */

.release {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.release:last-child {
  border-bottom: 0;
}

.release-meta {
  position: sticky;
  top: 78px;
  align-self: start;
}

.release-ver {
  font: 600 15px/1.2 var(--mono);
  letter-spacing: 0.02em;
  margin: 0 0 5px;
}

.release-date {
  font: 11.5px/1.4 var(--mono);
  color: var(--fg-3);
  margin: 0;
}

.chg-kind {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 10px;
}

.chg-group + .chg-group {
  margin-top: 22px;
}

.chg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chg-list li {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.6;
  padding-left: 17px;
  position: relative;
  max-width: 68ch;
}

.chg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-2);
}

.chg-list a {
  color: var(--fg);
  text-decoration-color: var(--line-2);
  text-underline-offset: 2px;
}

.chg-list a:hover {
  text-decoration-color: var(--cyan);
}

@media (max-width: 680px) {
  .release {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .release-meta {
    position: static;
  }
}

/* ---------- download ---------- */

.download {
  text-align: center;
  padding: 96px 0;
}

.download h2 {
  margin-bottom: 12px;
}

.download p {
  margin-left: auto;
  margin-right: auto;
}

.download .cta-row {
  justify-content: center;
  margin-top: 26px;
}

.hairline {
  height: 1px;
  background: var(--spectrum);
  opacity: 0.7;
  border: 0;
  margin: 0;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
}

.site-foot .wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.site-foot p {
  margin: 0;
  font: 12.5px/1.6 var(--mono);
  color: var(--fg-3);
}

.site-foot .made a {
  color: var(--fg-2);
  text-decoration-color: var(--line-2);
  text-underline-offset: 2px;
}

.site-foot .made a:hover {
  color: var(--fg);
  text-decoration-color: var(--cyan);
}

.site-foot .heart {
  font-style: normal;
  /* Sits high against the mono baseline otherwise. */
  font-size: 11px;
  vertical-align: 1px;
}

.site-foot nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.site-foot nav a {
  color: var(--fg-3);
  font-size: 13px;
  text-decoration: none;
}

.site-foot nav a:hover {
  color: var(--fg);
}
