@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

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

:root {
  color-scheme: dark;
  --canvas: #0b0c0e;
  --surface: #191c21;
  --surface-hover: #242830;
  --border: #393e47;
  --text: #edf0f4;
  --muted: #b2b8c3;
  --orange: #ff5a1f;
  --orange-hover: #ff7545;
  --on-orange: #121417;
  --link: #ff8a50;
  --shadow: rgb(0 0 0 / 32%);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  isolation: isolate;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 1rem / 1.55 "Instrument Sans", system-ui, sans-serif;
}

.star-field {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
}

a { color: var(--link); text-underline-offset: .24em; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.container {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: 1rem;
  transform: translateY(-150%);
  background: var(--surface);
  padding: .6rem .9rem;
}

.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { border-color: var(--border); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner { min-height: 4.75rem; }

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  color: var(--text);
  font: 400 .875rem / 1.2 var(--mono);
  letter-spacing: -.01em;
  text-decoration: none;
}

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

.brand-mark { margin-right: .4em; color: #74b8a8; }
.brand-wordmark { white-space: nowrap; }

.header-inner nav,
.languages {
  display: flex;
  align-items: center;
}

.header-inner nav { gap: 1.5rem; }
.header-inner nav a { font-size: .875rem; }

.header-inner nav a,
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.header-inner nav a:hover,
.footer-inner a:hover { color: var(--text); text-decoration: underline; }

.languages {
  gap: .2rem;
  padding: .15rem;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.languages a {
  display: grid;
  min-width: 2.4rem;
  min-height: 2.6rem;
  place-items: center;
  border-radius: 4px;
  font-family: var(--mono);
}

.languages a[aria-current="page"] { background: var(--surface-hover); color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.25rem);
  padding-block: clamp(3rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  color: var(--muted);
  font: .75rem / 1.5 var(--mono);
}

.release-meta span + span {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

h1 {
  font-size: clamp(2.55rem, 6.2vw, 4.65rem);
  line-height: .98;
  font-weight: 650;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero h1 { margin-top: 1.15rem; }
.hero-brand {
  display: flex;
  align-items: center;
  gap: .22em;
}

.hero-brand img:first-child { width: .72em; height: auto; }
.hero-brand img:nth-child(2) { width: min(100%, 3.85em); height: auto; }
.hero-platform { display: block; margin-top: .14em; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lede { margin-top: 1.25rem; max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }

.download-options {
  display: grid;
  gap: 1.15rem;
  max-width: 27rem;
  margin-top: 2rem;
}

.download-option p { margin-top: .42rem; font-size: .86rem; color: var(--muted); }

.button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .65rem;
  align-items: center;
  min-height: 3.25rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .65rem .95rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.primary:hover { border-color: var(--orange-hover); background: var(--orange-hover); }
.secondary { background: var(--surface); color: var(--text); }
.secondary:hover { background: var(--surface-hover); }
.download-size { white-space: nowrap; font: .74rem / 1.2 var(--mono); }
.secondary .download-size { color: var(--muted); }
.published { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.45rem; color: var(--muted); font-size: .84rem; }

.preview { min-width: 0; }

.preview-frame {
  padding: .45rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 20px 55px var(--shadow);
}

.preview-frame img { width: 100%; height: auto; border-radius: 7px; }

figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .4rem 1rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .83rem;
}

.start {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 1rem clamp(2.5rem, 5vw, 5.25rem);
  padding-block: 2rem;
  border-top: 1px solid var(--border);
}

.start h2 { font-weight: 650; font-size: 1.5rem; letter-spacing: -.03em; }
.start ol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; padding-left: 1.25rem; }
.start li::marker { color: var(--link); font-family: var(--mono); }
.start li p { margin-top: .25rem; color: var(--muted); font-size: .92rem; }
.integrity { border-top: 1px solid var(--border); color: var(--muted); }
.integrity summary { padding: .9rem 0; cursor: pointer; }
.integrity-content { padding-bottom: 1.25rem; }
.integrity code { display: block; margin: .55rem 0; overflow-wrap: anywhere; }
.integrity code, .mono { font-family: var(--mono); font-size: .8rem; }

.site-footer { border-top-width: 1px; margin-top: 3.5rem; }
.footer-inner { min-height: 5.5rem; padding-block: 1rem; font-size: .875rem; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-inner .publisher { font-family: var(--mono); color: var(--text); }
.motion-control {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding-inline: .75rem;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.motion-control:hover, .motion-control[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-hover);
}

@media (max-width: 800px) {
  .hero, .start { grid-template-columns: 1fr; }
  .hero h1 { text-wrap: initial; }
  .download-options { max-width: 30rem; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  .brand { font-size: .8125rem; }
  .header-inner nav { gap: .8rem; }
  .hero { padding-top: 2.7rem; }
  .start ol { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; }
}
