:root {
  color-scheme: dark;
  --night: #101c27;
  --deep: #0b151f;
  --snow: #eaf3f6;
  --ink: #142c3b;
  --slate: #405966;
  --ice: #b9eff6;
  --night-text: #becfd7;
  --light-line: #a7bec8;
  --dark-line: #425c6a;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--night); color: var(--snow); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.button:focus-visible { outline-color: var(--ice); }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--deep);
}
.skip:not(:focus) { clip-path: inset(50%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--night);
  border-bottom: 1px solid var(--dark-line);
}
.nav-row, .footer, nav { display: flex; flex-wrap: wrap; align-items: center; }
.nav-row, .footer { justify-content: space-between; gap: .25rem 1.5rem; }
.nav-row { min-height: 4.5rem; padding-block: .5rem; }
nav { gap: 0 clamp(.85rem, 3vw, 2rem); }
.brand, nav a, .source-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { gap: .55rem; font-size: 1.22rem; font-weight: 780; letter-spacing: -.035em; text-decoration: none; }
.brand:hover, nav a:hover, .source-link:hover { color: var(--ice); }
.mark {
  width: 1.65rem;
  height: 1.4rem;
  background: currentColor;
  color: var(--ice);
  clip-path: polygon(0 89%, 28% 41%, 39% 56%, 65% 4%, 100% 89%, 78% 89%, 64% 53%, 46% 89%);
}
nav a, .source-link { color: var(--night-text); font-size: .9375rem; font-weight: 650; text-decoration: none; }
.source-link { border-bottom: 1px solid var(--dark-line); }

.hero { background: var(--night); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 8vw, 7.25rem);
}
.hero-content { min-width: 0; }
h1 {
  font-size: clamp(3.65rem, 9.5vw, 8.5rem);
  line-height: .94;
  letter-spacing: -.075em;
  font-weight: 800;
}
.hero-subtitle {
  margin-top: 1.35rem;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: -.035em;
}
.intro, .section-copy {
  max-width: 34ch;
  margin-top: .9rem;
  color: var(--night-text);
  font-size: 1.1rem;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 68% center;
  border: 1px solid var(--dark-line);
  border-radius: .35rem 2.75rem .35rem .35rem;
  background: var(--deep);
}
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.3rem; margin-top: 1.6rem; }
.button, .text-link { display: inline-flex; align-items: center; min-height: 2.85rem; font-weight: 700; }
.button { padding: .55rem 1rem; border-radius: .25rem; text-decoration: none; }
.primary { color: var(--deep); background: var(--ice); }
.primary:hover { background: var(--snow); }
.text-link:hover { color: var(--ice); }

.features { background: var(--snow); color: var(--ink); color-scheme: light; }
.features > .wrap, .get-layout { padding-block: clamp(3rem, 6vw, 6rem); }
h2 {
  max-width: 25ch;
  font-size: clamp(2.15rem, 4.5vw, 4.25rem);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: -.055em;
}
h3 { font-size: 1.2rem; line-height: 1.2; font-weight: 760; letter-spacing: -.02em; }

.mode-grid, .system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-grid { gap: .8rem; margin-top: 1.55rem; }
.mode-grid article {
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 2.65rem);
  background: #d8eaf0;
  border-radius: .35rem;
}
.mode-grid article:first-child { background: var(--ink); color: var(--snow); color-scheme: dark; }
.mode-grid h3 { margin-top: .9rem; font-size: clamp(1.35rem, 3vw, 2.3rem); }
.mode-grid p, .system-grid p { max-width: 49ch; margin-top: .45rem; color: var(--slate); }
.mode-grid article:first-child p { color: var(--night-text); }
.feature-icon {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-grid .feature-icon { width: 2.35rem; height: 2.35rem; }
.mode-grid article:first-child .feature-icon { color: var(--ice); }
.plasma-icon { fill: currentColor; stroke: none; }
.system-features { margin-top: clamp(3rem, 7vw, 6rem); }
.system-features h2 { font-size: clamp(1.85rem, 3.7vw, 3rem); }
.system-grid { column-gap: clamp(1.25rem, 4vw, 3.25rem); margin-top: 1.15rem; }
.system-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .9rem;
  align-content: start;
  padding-block: 1.15rem;
  border-top: 1px solid var(--light-line);
}
.system-grid .feature-icon { grid-row: span 2; }
.feature-note { margin-top: .65rem; color: var(--slate); }
.feature-note a { color: var(--ink); font-weight: 650; }

.get-section { background: var(--deep); }
.get-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7vw, 6rem); }
.release-status { margin-top: .75rem; color: var(--ice); font-weight: 700; }
.resource-links { list-style: none; margin: 1.35rem 0 0; padding: 0; max-width: 27rem; border-bottom: 1px solid var(--dark-line); }
.resource-links a {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding-block: .45rem;
  border-top: 1px solid var(--dark-line);
  font-weight: 700;
}
.resource-links a:hover, .verification-link:hover { color: var(--ice); }
.requirements { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--dark-line); border-radius: .35rem; }
.requirements dl { margin: .9rem 0 0; }
.requirements dl div { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; border-top: 1px solid var(--dark-line); padding-block: .55rem; }
.requirements dt, .hardware-note { color: var(--night-text); }
.requirements dd { margin: 0; }
.hardware-note { margin-top: .8rem; }
.verification-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; }
.footer { min-height: 6rem; padding-block: .85rem; }
.error-page { padding-block: clamp(3rem, 12vw, 9rem); }
.error-page h1 { font-size: clamp(2.8rem, 8vw, 6rem); }

@media (max-width: 49rem) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .mode-grid, .system-grid, .get-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-image { border-top-right-radius: 1.75rem; }
}

@media (max-width: 23rem) {
  html { scroll-padding-top: 7.75rem; }
  .nav-row { column-gap: .75rem; }
  .nav-row nav { gap: .75rem; }
  .requirements dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-content { animation: hero-enter .5s ease-out both; }
  .hero-image { animation: hero-enter .65s .06s ease-out both; }
  .primary { transition: transform .18s ease-out; }
  .primary:active { transform: translateY(1px); }

  @media (hover: hover) {
    .primary:hover:not(:active) { transform: translateY(-2px); }
  }
}

@keyframes hero-enter {
  from { opacity: .8; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}
