@font-face {
  font-family: "Nunito Sans";
  src: url("./nunito-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fdfef8;
  --panel: #f3f2e9;
  --raised: #fff;
  --ink: #1c1a18;
  --muted: #625e58;
  --line: #cbc7bc;
  --link: #1765a6;
  --focus: #601ce9;
  --purple: #601ce9;
  --pink: #c30068;
  --blue: #0eb7ff;
  --shadow: 0 12px 36px #17283d12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090e18;
    --panel: #101724;
    --raised: #182234;
    --ink: #f4f2e9;
    --muted: #b9c2d0;
    --line: #41556d;
    --link: #0eb7ff;
    --focus: #0eb7ff;
    --pink: #ff007f;
    --shadow: 0 12px 36px #0004;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 "Nunito Sans", system-ui, sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: .2em;
}

a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.site-header {
  background: var(--panel);
  border-block-end: 1px solid var(--line);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 5.25rem;
  padding-block: .65rem;
}

.brand { display: inline-block; width: 9rem; }
.brand img { width: 100%; height: auto; }
.topbar > a:not(.brand) { font-weight: 800; }

main { padding-block: clamp(2rem, 5vw, 4.5rem) 3rem; }

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-block-end: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--link);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); }
p { margin: .5rem 0 0; }
.lede { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.25rem); max-width: 56ch; }
.muted, .notice, .metadata { color: var(--muted); }

.product-icon {
  flex: 0 0 auto;
  width: clamp(4.5rem, 11vw, 6rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 18%;
  object-fit: contain;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
  gap: 1rem;
}

.card, .verification {
  padding: clamp(1rem, 2.5vw, 1.55rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-block-start: .25rem solid var(--blue);
  box-shadow: var(--shadow);
}
.product-card:nth-child(2) { border-block-start-color: var(--pink); }

.primary {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: .65rem;
  min-height: 2.85rem;
  margin-block-start: .55rem;
  padding: .6rem 1rem;
  border-radius: .55rem;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.product-card .primary { margin-block-start: auto; }
.primary:hover { background: #5016cb; text-decoration: underline; }

.files, .history ul, .verification ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.files li + li { border-block-start: 1px solid var(--line); }

.files a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .7rem;
  min-height: 2.75rem;
  padding-block: .45rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.files a strong { min-width: 0; font-weight: 800; text-decoration: underline; }
.files a:hover strong { text-decoration-thickness: .12em; }
.metadata { flex-shrink: 0; font-size: .875rem; white-space: nowrap; }
.notice + .grid { margin-block-start: .75rem; }
.documents, .verification, .notice, .history, .release-notes, .platform-fallback { margin-block-start: 1rem; }

summary { min-height: 1.6rem; cursor: pointer; font-weight: 800; }
.verification ul { display: grid; gap: .5rem; overflow-wrap: anywhere; }
.history ul { display: flex; flex-wrap: wrap; gap: .15rem 1.25rem; }
.history a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.release-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-block-start: 1.75rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.release-notes pre {
  margin-block-end: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: .88rem/1.65 ui-monospace, monospace;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: var(--raised);
}
.skip-link:not(:focus) { clip-path: inset(50%); }

@media (max-width: 39rem) {
  .product-grid { grid-template-columns: 1fr; }
  .hero { align-items: start; }
}

@media (max-width: 28rem) {
  .shell { width: min(100% - 1.75rem, 68rem); }
  .files a { flex-wrap: wrap; justify-content: start; }
  .release-hero { flex-direction: column-reverse; gap: .8rem; }
}

.short-name { font-size: .65em; color: var(--muted); }
.source-link { align-self: flex-start; font-weight: 700; }
.site-footer { padding-block: 1.5rem 3rem; border-block-start: 1px solid var(--line); }
.social-nav { display: grid; grid-template-columns: repeat(9, 2.75rem); justify-content: center; gap: .5rem 1rem; }
.social-nav a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--muted); border: 1px solid transparent; border-radius: .4rem; transition: color .2s, border-color .2s, transform .2s; }
.social-nav a:hover { color: var(--link); border-color: currentColor; transform: translateY(-2px); }
.social-nav a[aria-label="YouTube"] { color: #e00000; }
.social-nav svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.changelog { margin-block-start: 1rem; }
.changelog article { padding-block: 1.1rem; border-block-end: 1px solid var(--line); }
.changelog article:last-child { border-block-end: 0; padding-block-end: 0; }
.changelog h3 { font-size: 1.15rem; }
.changelog ul { margin: .5rem 0 0; padding-inline-start: 1.3rem; }
.changelog li + li { margin-block-start: .35rem; }
@media (max-width: 39rem) { .social-nav { grid-template-columns: repeat(3, 2.75rem); } }
@media (prefers-reduced-motion: reduce) { .social-nav a { transition: none; } .social-nav a:hover { transform: none; } }
