@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/site/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/site/jetbrains-mono.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #070a10;
  --surface: #0f141c;
  --border: #263444;
  --text: #c8d5e0;
  --bright: #e0e8ee;
  --muted: #a3b2c0;
  --primary: #8cc8d4;
  --mono: 'JetBrains Mono', monospace;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--primary);
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--bright);
}
button {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
}
p {
  line-height: 1.65;
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  line-height: 1.05;
  font-weight: 500;
  color: var(--bright);
  margin: 0 0 0.38em;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.025em;
}
.shell {
  width: min(1232px, 100% - 96px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(3.4rem, 7vw, 6.4rem);
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.8rem 1rem;
}
.skip:focus {
  top: 0.7rem;
}

.masthead {
  position: relative;
  z-index: 2;
  background: #090d14;
  border-bottom: 1px solid var(--border);
}
.masthead-inner,
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--bright);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.19em;
}
.wordmark img {
  flex: none;
}
.masthead nav,
.footer nav {
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2.8rem);
}
.masthead nav a,
.footer nav a {
  display: flex;
  align-items: center;
  border-block: 2px solid transparent;
  min-height: 52px;
  color: var(--muted);
  font: 0.875rem var(--mono);
  text-decoration: none;
}
.masthead nav a[aria-current],
.masthead nav a:hover,
.footer nav a:hover {
  color: var(--primary);
}
.masthead nav a[aria-current] {
  border-bottom-color: var(--primary);
}

.hero {
  position: relative;
  isolation: isolate;
  background: #070d14;
}
.hero-art,
.hero-art img,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art {
  z-index: -2;
}
.hero-art img {
  object-fit: cover;
  object-position: center 34%;
}
.hero::after {
  content: '';
  z-index: -1;
  background:
    linear-gradient(90deg, #06090eee 1%, #06090ed6 25%, #06090e68 48%, transparent 72%),
    linear-gradient(0deg, #070a10 0%, transparent 33%);
}
.hero-inner {
  min-height: clamp(530px, 50vw, 760px);
  display: grid;
  align-items: center;
  padding-block: 4.5rem;
}
.hero-copy {
  max-width: 660px;
}
.eyebrow {
  margin-bottom: 1rem;
  color: var(--primary);
  font: 500 0.875rem / 1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.8rem, 7.15vw, 6.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 0.16em;
}
.hero-tagline {
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  line-height: 1.15;
  margin-bottom: 0.65em;
  color: var(--bright);
  letter-spacing: -0.035em;
}
.hero-description {
  max-width: 395px;
  color: #c3d1dc;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: 1.65rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1.05rem;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #0b111ad9;
  color: var(--bright);
  transition:
    border-color 0.15s,
    background-color 0.15s,
    color 0.15s;
}
.button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #06121a;
}
.button.primary:hover {
  background: #b5e1ea;
}
.hero-strip {
  background: #080d15e8;
  border-block: 1px solid var(--border);
}
.hero-strip .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.5rem, 5vw, 4.5rem);
  padding-block: 0.9rem;
  font: 0.82rem / 1.6 var(--mono);
  color: var(--muted);
}

.features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.features article {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.features p,
.world-grid p:not(.eyebrow) {
  color: var(--muted);
}
.world-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.world-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.world-grid > img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.section-heading h2 {
  margin-bottom: 0;
}
.news-list {
  border-top: 1px solid var(--border);
  margin-top: 1.7rem;
}
.news-list article {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 0;
}
.news-list time {
  color: var(--muted);
  font: 0.85rem / 1.6 var(--mono);
}
.news-list h3 {
  margin-bottom: 0.35rem;
}
.news-list a {
  color: var(--bright);
  text-decoration: none;
}
.news-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.news-list p {
  margin: 0;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--border);
  background: #090d14;
}

.page-intro > p:not(.eyebrow) {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 44rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.gallery figure a {
  display: block;
}
.gallery figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gallery figure a:hover {
  outline: 1px solid var(--primary);
  outline-offset: -1px;
}
figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}
figcaption span + span {
  font: 0.78rem var(--mono);
  color: var(--muted);
}
.lightbox {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: min(1120px, 94vw);
  max-height: 95dvh;
  padding: 0.75rem;
}
.lightbox::backdrop {
  background: #04060bef;
}
.lightbox img {
  width: 100%;
  max-height: 73dvh;
  object-fit: contain;
  background: #05070a;
}
.lightbox-bar,
.lightbox-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}
.lightbox-bar {
  margin-bottom: 0.65rem;
}
.lightbox-bar p {
  margin: 0;
}
.lightbox-nav {
  margin-top: 0.65rem;
}
.lightbox button {
  color: var(--primary);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}
.lightbox button:hover {
  border-color: var(--primary);
}
.back {
  display: inline-block;
  margin-bottom: 1.6rem;
}
.prose {
  max-width: 820px;
}
.prose h1 {
  font-size: clamp(2.5rem, 6vw, 4.65rem);
}
.prose .lede {
  font-size: 1.32rem;
}
.article-body {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.7rem;
  font-size: 1.07rem;
  overflow-wrap: anywhere;
}
.release-panel {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(1.1rem, 4vw, 2.4rem);
  max-width: 50rem;
}
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.download-layout > div > p:not(.eyebrow) {
  font-size: 1.125rem;
  color: var(--muted);
}
.download-art {
  width: 100%;
  height: auto;
  max-height: 570px;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--border);
}
.release-panel h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}
.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.65rem;
  margin: 1.2rem 0 1.5rem;
}
.release-meta dt {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font: 0.82rem var(--mono);
}
.release-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.release-panel details {
  margin-top: 1rem;
}
.release-panel summary {
  cursor: pointer;
  color: var(--primary);
}
.release-panel code {
  overflow-wrap: anywhere;
}
.release-notes {
  border-top: 1px solid var(--border);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 48px, 1232px);
  }
  .hero-art img {
    object-position: 60% 34%;
  }
  .hero::after {
    background:
      linear-gradient(90deg, #06090ef0 0%, #06090edb 22%, #06090e64 66%, transparent),
      linear-gradient(0deg, #070a10, transparent 35%);
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }
  .masthead-inner,
  .footer-inner {
    flex-wrap: wrap;
    gap: 0 1.1rem;
    padding-block: 0.52rem 0;
  }
  .masthead .wordmark,
  .footer .wordmark {
    min-height: 38px;
  }
  .masthead nav,
  .footer nav {
    gap: 0.65rem 1.2rem;
    flex-wrap: wrap;
  }
  .masthead nav a,
  .footer nav a {
    min-height: 40px;
  }
  .hero-inner {
    min-height: unset;
    align-items: end;
    padding-block: clamp(275px, 81vw, 395px) 2rem;
  }
  .hero-art img {
    object-fit: contain;
    object-position: center top;
  }
  .hero::after {
    background: linear-gradient(180deg, transparent 21%, #070a1033 36%, #070a10 64%);
  }
  .hero h1 {
    font-size: clamp(2.35rem, 10.25vw, 3.85rem);
  }
  .hero-description {
    margin-bottom: 1.2rem;
  }
  .hero-strip .shell {
    gap: 0.3rem 1.15rem;
  }
  .features,
  .world-grid,
  .gallery,
  .download-layout {
    grid-template-columns: 1fr;
  }
  .features {
    gap: 1rem;
  }
  .news-list article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
