/*
 * SkoposIDE project site, a dark page. Colors, type, spacing, radii and shadows come from
 * tokens.css, the build's copy of the app's TinyOrbit tokens (ui/src/design/tinyorbit.css).
 * <html> sets data-theme="dark"; the screenshot in the Themes band sets data-theme="light".
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* Base */

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

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  background: var(--surface-page);
}

body {
  position: relative;
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-link);
}

a:hover {
  color: var(--text-link-hover);
}

/* A real outline, which forced-colors mode shows; it drops box shadows. */
:focus-visible {
  outline: 2px solid var(--orbit-300);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.icon--md {
  width: 18px;
  height: 18px;
}

.icon--sm {
  width: 14px;
  height: 14px;
}

.icon--xs {
  width: 12px;
  height: 12px;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-12);
}

.skip {
  position: absolute;
  z-index: 40;
  top: -48px;
  left: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-2);
  font: var(--type-label);
}

.skip:focus {
  top: 8px;
}

.overline {
  margin: 0;
  font: var(--type-overline);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.overline--accent {
  color: var(--text-accent);
}

.mono {
  font-family: var(--font-mono);
}

.quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
}

.quiet:hover {
  color: var(--text-primary);
}

/* Gradient text. Every stop is at least 7.9:1 on --gray-950. Without background-clip: text
   the text is plain --orbit-200; forced colors use CanvasText (end of file). */

.grad {
  color: var(--orbit-200);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .grad {
    background: linear-gradient(90deg, var(--orbit-300), var(--orbit-100) 30%, var(--orbit-300) 60%, var(--orbit-200));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.grad--move {
  animation: grad-drift 9s linear infinite;
}

@keyframes grad-drift {
  to {
    background-position: -200% 0;
  }
}

/* The orbit frame: a rail at each edge of the 1200 px column, a rule between sections and a
   star where they meet. Decoration only; hidden on narrow screens. */

.frame {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  border-inline: 1px solid var(--border-subtle);
  pointer-events: none;
}

.rule {
  position: relative;
  z-index: 5;
  height: 0;
  border-top: 1px solid var(--border-subtle);
}

.rule__star {
  position: absolute;
  top: -6.5px;
  width: 13px;
  height: 13px;
  fill: var(--orbit-200);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--orbit-400) 80%, transparent));
}

.rule__star--start {
  left: calc(50% - min(600px, 50% - 16px) - 6.5px);
}

.rule__star--end {
  right: calc(50% - min(600px, 50% - 16px) - 6.5px);
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand:hover {
  color: var(--text-primary);
}

.brand__name {
  font-weight: 600;
  font-size: var(--text-17);
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  gap: 26px;
  font: var(--type-body-sm);
}

.nav__links a,
.footer ul a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav__links a:hover,
.footer ul a:hover {
  color: var(--text-primary);
}

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font: var(--type-body-sm);
}

/* Buttons: the white pill is the primary action, the line pill the secondary one. No control
   is filled with orbit. The transparent border shows in forced-colors mode. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font: var(--type-label);
  font-size: var(--text-15);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.button--primary {
  padding: 0 16px 0 20px;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--orbit-500) 38%, transparent);
}

.button--primary:hover {
  background: var(--orbit-50);
  color: var(--text-inverse);
}

.button--line {
  border-color: var(--border-default);
  background: color-mix(in srgb, var(--gray-950) 45%, transparent);
  color: var(--text-primary);
}

.button--line:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.button--sm {
  height: 34px;
  padding: 0 14px;
  gap: 6px;
  font-size: var(--text-13);
}

.button--primary.button--sm {
  padding: 0 12px 0 14px;
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Ribbons: ribbon.js draws on the canvas; the glow behind it shows when it cannot, and a
   plate behind the copy keeps the text over it readable. */

.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 72% 22%, color-mix(in srgb, var(--orbit-500) 34%, transparent), transparent 70%),
    radial-gradient(45% 40% at 22% 88%, color-mix(in srgb, var(--orbit-700) 50%, transparent), transparent 72%);
}

.ribbon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* The plate is the copy's own box, so it grows with the copy at every width. Its middle
   holds 88% gray-950, enough for secondary text over the ribbon's brightest pixels, and it
   reaches past the copy by more than twice its blur, so the soft edge never thins it behind
   the text. */
.hero__copy::before,
.cta__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -56px -64px;
  background: var(--gray-950);
  opacity: 0.88;
  filter: blur(24px);
  pointer-events: none;
}

/* Hero: pulled up under the glass navigation, so the ribbon runs behind it */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -57px;
  padding-top: 57px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__title {
  margin: 0;
  font: var(--type-display-2);
  font-size: 68px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title .grad {
  display: block;
}

.hero__lead {
  margin: 0;
  max-width: 56ch;
  font: var(--type-body-lg);
  color: var(--text-secondary);
  text-wrap: pretty;
}

.hero .actions {
  margin-top: 10px;
}

.hero__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font: var(--type-caption);
  color: var(--text-secondary);
}

.hero__alt {
  margin: -8px 0 0;
  font: var(--type-caption);
  color: var(--text-secondary);
}

.hero__shot {
  position: relative;
  z-index: 2;
  margin-top: 72px;
}

/* Screenshots */

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px var(--border-default),
    0 40px 120px color-mix(in srgb, var(--orbit-800) 55%, transparent);
}

.shot img {
  width: 100%;
}

/* The hero's shot fades into the page over its lower 42 %. */
.shot--fade {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, black 58%, transparent);
  mask-image: linear-gradient(to bottom, black 58%, transparent);
}

/* Stats */

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.stats li {
  padding: 32px 24px;
  border-left: 1px solid var(--border-subtle);
}

.stats__value {
  display: block;
  font: var(--type-title-2);
  font-size: 36px;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stats__label {
  display: block;
  margin-top: 6px;
  font: var(--type-body-sm);
  color: var(--text-secondary);
}

/* Sections */

.section {
  padding-block: 104px;
}

.section__title {
  margin: 12px 0 0;
  font: var(--type-title-2);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section__lead {
  margin: 14px 0 0;
  max-width: 60ch;
  font: var(--type-body-lg);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Features: a bento grid of cards */

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--orbit-500) 9%, transparent), transparent 62%),
    var(--surface-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--orbit-400) 55%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--orbit-700) 32%, transparent);
}

.card--half {
  grid-column: span 3;
}

.card--third {
  grid-column: span 2;
}

.card--wide {
  grid-column: span 6;
  flex-direction: row;
  flex-wrap: wrap;
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 22px;
}

.card--wide .card__text {
  flex: 1 1 320px;
  max-width: 440px;
  justify-content: center;
}

/* An icon with a mark, such as Next release, on one line. */
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__text code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--orbit-200);
  white-space: nowrap;
  /* Shows != as typed, not as one sign. */
  font-variant-ligatures: none;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--orbit-200);
  background: var(--surface-accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orbit-400) 30%, transparent);
}

.card__title {
  margin: 0;
  font: var(--type-title-3);
  letter-spacing: -0.019em;
}

.card__text > p {
  margin: 0;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font: var(--type-body-sm);
  color: var(--text-secondary);
}

.ticks li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* A small orbit diamond before each bullet and each roadmap row */
.ticks li::before,
.milestone__items div::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  transform: translateY(-1px) rotate(45deg);
  background: var(--orbit-300);
}

.card__media {
  margin: auto 0 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-page);
}

.card__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two pictures in one figure, one above the other */
.card__media--stack img + img {
  border-top: 1px solid var(--border-subtle);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font: var(--type-label);
  color: var(--text-link);
}

.bento__note {
  margin: 16px 0 0;
  font: var(--type-body-sm);
  color: var(--text-secondary);
}

.card--wide .card__media {
  flex: 999 1 520px;
  min-width: 0;
  margin: 0;
  border-top: 0;
  border-left: 1px solid var(--border-subtle);
}

/* Lightbox: site.js opens a feature picture larger in the #lightbox dialog. */

.card__media img[role="button"] {
  cursor: zoom-in;
  transition: filter 0.2s;
}

.card__media img[role="button"]:hover {
  filter: brightness(1.08);
}

.card__media img[role="button"]:focus-visible {
  outline-offset: -4px;
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px 24px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: var(--scrim-strong);
  backdrop-filter: blur(8px);
}

.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: min(1600px, 100%);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-page);
  box-shadow: var(--shadow-4);
}

.lightbox__caption {
  max-width: 72ch;
  color: var(--text-secondary);
  font: var(--type-body-sm);
  text-align: center;
  text-wrap: pretty;
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
}

.lightbox[open] .lightbox__figure {
  animation: lightbox-in 0.2s ease-out;
}

.lightbox[open]::backdrop {
  animation: lightbox-fade 0.2s ease-out;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
}

/* Badges, after the app's Badge, such as a Next release mark (see docs/releasing.md), and tags */

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--status-neutral-soft);
  color: var(--status-neutral-text);
  font: var(--type-caption);
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-full);
  background: var(--surface-accent-soft);
  color: var(--text-on-accent-soft);
  font: var(--type-caption);
  font-weight: 500;
}

/* Docs pages */

.doc {
  max-width: 920px;
  padding-block: 72px 32px;
}

.doc__title {
  margin: 12px 0 0;
  font: var(--type-title-1);
  letter-spacing: var(--track-display);
}

.doc__lead {
  margin: 16px 0 0;
  max-width: 64ch;
  font: var(--type-body-lg);
  color: var(--text-secondary);
  text-wrap: pretty;
}

.doc__toc {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-card);
}

.doc__toc ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  font: var(--type-body-sm);
}

.doc__section {
  margin-top: 56px;
  scroll-margin-top: 88px;
}

.doc h2 {
  margin: 0 0 14px;
  font: var(--type-title-3);
  letter-spacing: var(--track-tighter);
}

.doc h3 {
  margin: 28px 0 10px;
  font: var(--type-subheading);
  letter-spacing: var(--track-tight);
}

.doc p,
.doc__steps {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.doc p strong,
.doc th[scope="row"] {
  font-weight: 600;
  color: var(--text-primary);
}

.doc .ticks {
  margin-top: 12px;
  font: var(--type-body);
}

/* Docs bullets hold inline code, which a flex row would cut into columns. */
.doc .ticks li {
  display: block;
  position: relative;
  padding-left: 16px;
}

.doc .ticks li::before {
  position: absolute;
  left: 0;
  top: 9px;
}

.doc__steps {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.doc__steps ul {
  margin: 8px 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.doc code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--orbit-200);
  overflow-wrap: anywhere;
}

.doc__code {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-sunken);
  font: var(--type-mono);
  line-height: 20px;
}

.doc__code code {
  font-size: inherit;
  overflow-wrap: normal;
  white-space: pre;
}

.doc__table {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.doc__table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font: var(--type-body-sm);
}

.doc__table th,
.doc__table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.doc__table thead th {
  border-top: 0;
  background: var(--surface-sunken);
  font: var(--type-overline);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.doc__figure {
  margin: 20px 0 0;
}

.doc__figure img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.doc__figure figcaption {
  margin-top: 8px;
  font: var(--type-caption);
  color: var(--text-secondary);
}

.nav__links a[aria-current="page"] {
  color: var(--text-primary);
}

/* Themes: the one place in the light theme */

.themes {
  position: relative;
  overflow: hidden;
  padding-block: 104px;
}

.themes__glow {
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 1100px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orbit-300) 22%, transparent), transparent);
}

.themes .wrap {
  position: relative;
}

.themes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 40px;
}

.themes__head .section__title {
  max-width: 18ch;
}

.themes__text {
  margin: 0;
  max-width: 44ch;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.themes__shot {
  box-shadow:
    0 0 0 1px var(--light-a08),
    0 30px 120px color-mix(in srgb, var(--orbit-300) 24%, transparent);
}

/* Download */

.downloads {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.platform {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--surface-card);
}

/* The visitor's own system, marked by site.js */
.platform--mine {
  border-color: var(--orbit-500);
  background:
    radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--orbit-500) 16%, transparent), transparent 65%),
    var(--surface-card);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--orbit-700) 30%, transparent);
}

.platform__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform__name {
  margin: 0;
  font: var(--type-title-3);
  letter-spacing: -0.019em;
}

.files {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--divider);
}

.file__text {
  flex: 1;
  min-width: 0;
}

.file__label {
  display: block;
  font: var(--type-label);
}

.file__meta {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--text-11);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.first-run {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-sunken);
  font: var(--type-caption);
  color: var(--text-secondary);
}

.first-run p {
  margin: 0;
}

.first-run strong {
  font-weight: 500;
  color: var(--text-primary);
}

.first-run code {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-12);
  color: var(--orbit-200);
  overflow-wrap: anywhere;
}

.download__more {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font: var(--type-body-sm);
  color: var(--text-secondary);
}

.download__more a {
  white-space: nowrap;
}

/* Roadmap */

.milestones {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}

.milestone {
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--orbit-500) 9%, transparent), transparent 62%),
    var(--surface-card);
}

.milestone__title {
  margin: 6px 0 0;
  font: var(--type-title-3);
  letter-spacing: -0.019em;
}

.milestone__items {
  margin: 16px 0 0;
}

.milestone__items div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--divider);
  font: var(--type-body-sm);
}

.milestone__items dt {
  flex: none;
  width: 120px;
  font-weight: 500;
  color: var(--text-primary);
}

.milestone__items dd {
  margin: 0;
  color: var(--text-secondary);
}

/* Call to action: a second ribbon */

/* A floor, not a height: zoomed text makes the copy taller, and the padding keeps its plate
   inside the section. */
.cta {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding-block: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__copy {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.cta__copy .section__title {
  margin: 0;
}

.cta__lead {
  margin: 0;
  font: var(--type-body-lg);
  color: var(--text-secondary);
}

.cta .actions {
  margin-top: 8px;
}

/* Footer, with the wordmark cut by the page's bottom edge */

.footer {
  padding-top: 64px;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.footer__about {
  margin: 8px 0 0;
  max-width: 28ch;
  font: var(--type-body-sm);
  color: var(--text-secondary);
}

.footer ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font: var(--type-body-sm);
}

.footer__bottom {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font: var(--type-caption);
  color: var(--text-secondary);
}

.footer__bottom .mono {
  margin-left: auto;
}

.wordmark {
  margin-top: 56px;
  overflow: hidden;
  font-weight: 600;
  font-size: clamp(80px, 17vw, 250px);
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--orbit-200) 30%, transparent), transparent 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* Narrow screens */

@media (max-width: 980px) {
  .card--half,
  .card--third {
    grid-column: span 6;
  }

  .card--wide {
    flex-direction: column;
  }

  .card--wide .card__text {
    flex: none;
    max-width: none;
  }

  .card--wide .card__media {
    flex: none;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 760px) {
  .frame,
  .rule__star,
  .nav__links {
    display: none;
  }

  .wrap {
    padding-inline: var(--space-8);
  }

  .hero__copy {
    margin-top: 72px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 1.08;
  }

  .section__title {
    font-size: 32px;
  }

  .section,
  .themes {
    padding-block: 72px;
  }
}

/* Beside the section links the menu bar has room for Sponsor only on wide screens; the
   footer keeps it. Without the links (760 px and under) it fits again. */
@media (min-width: 761px) and (max-width: 980px) {
  .nav__sponsor {
    display: none;
  }
}

/* Just above that, Source makes way for the links too; the hero and the footer link the source. */
@media (min-width: 761px) and (max-width: 880px) {
  .nav__source {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav__source,
  .nav__sponsor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grad--move {
    animation: none;
  }

  .lightbox[open] .lightbox__figure,
  .lightbox[open]::backdrop {
    animation: none;
  }

  .card,
  .button {
    transition: none;
  }
}

/* Browsers without color-mix(), before 2023, reset each property that uses it, since the
   var() inside defers the check to computed time. Plain tokens stand in here; shadows and
   filters just drop. */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .button--line {
    background: var(--gray-950);
  }

  .glow {
    background:
      radial-gradient(55% 45% at 72% 22%, var(--orbit-800), transparent 70%),
      radial-gradient(45% 40% at 22% 88%, var(--orbit-800), transparent 72%);
  }

  .themes__glow {
    background: radial-gradient(closest-side, var(--orbit-800), transparent);
  }

  .card,
  .platform--mine,
  .milestone {
    background: var(--surface-card);
  }

  .card:hover {
    border-color: var(--orbit-600);
  }

  .wordmark {
    background: linear-gradient(to bottom, var(--gray-700), transparent 82%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

@media (forced-colors: active) {
  .ribbon {
    display: none;
  }

  .grad {
    background: none;
    color: CanvasText;
  }

  .wordmark {
    display: none;
  }
}
