/* JawnOS — hand-drawn, self-hosted, no dependencies. */

@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff9e8;
  --paper-2: #fffdf5;
  --ink: #111111;
  --muted: #4b463b;
  --yellow: #ffd90f;
  --yellow-soft: #fff1b8;
  --blue: #5b8def;
  --mint: #7ed6a5;
  --pink: #ff8fb1;
  --lav: #b79ced;
  --coral: #ff6b57;
  --shadow: 7px 7px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
}

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

html {
  scroll-behavior: smooth;
}

section[id],
main[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.brand-word,
.footer-brand,
.num {
  font-family: "Archivo Black", Impact, "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-small);
}

.skip-link:focus {
  left: 16px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 232, 0.94);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: auto;
  transform: rotate(-5deg);
}

.brand-word {
  font-size: 26px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  flex: none;
  margin-left: 4px;
}

.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 220px;
  display: grid;
  padding: 8px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.mobile-menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu-panel a:hover {
  background: var(--yellow);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--yellow {
  background: var(--yellow);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--paper-2);
}

.btn--ink:hover {
  box-shadow: 7px 7px 0 var(--paper-2);
}

.btn--ink:active {
  box-shadow: 3px 3px 0 var(--paper-2);
}

.btn--ghost {
  background: transparent;
}

.btn--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  border-width: 2.5px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--small:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.btn--small:active {
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 7.4vw, 86px);
  line-height: 0.98;
}

.hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  padding: 0 0.05em;
}

.lede {
  max-width: 570px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 700;
}

.chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.chips li:nth-child(2)::before { background: var(--mint); }
.chips li:nth-child(3)::before { background: var(--blue); }
.chips li:nth-child(4)::before { background: var(--pink); }

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.sticker {
  position: absolute;
  left: 1%;
  bottom: 7%;
  padding: 5px 12px 7px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 25px;
  line-height: 1;
  box-shadow: var(--shadow-small);
  transform: rotate(-6deg);
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  flex: none;
}

.marquee span {
  position: relative;
  padding: 13px 25px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span::after {
  content: "✦";
  position: absolute;
  right: -4px;
  color: var(--paper);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding-block: 92px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head h2,
.split h2,
.sponsor h2,
.launch h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
}

.section-head p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 24px 23px 26px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon--blue { background: var(--blue); }
.card-icon--yellow { background: var(--yellow); }
.card-icon--mint { background: var(--mint); }
.card-icon--pink { background: var(--pink); }
.card-icon--lav { background: var(--lav); }
.card-icon--coral { background: var(--coral); }

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.12;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 36px;
}

.also strong {
  margin-right: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- dark split ---------- */

.section--dark {
  border-block: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.section--dark .eyebrow::before {
  background: var(--yellow);
}

.section--dark h2 {
  color: var(--paper);
}

.section--dark .split-copy > p {
  color: #d9d3c4;
}

.split {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 54px;
  align-items: center;
}

.split-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.faces {
  display: grid;
  gap: 0;
  margin: 30px 0 28px;
}

.face {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-top: 2px solid rgba(255, 249, 232, 0.24);
}

.face:last-child {
  border-bottom: 2px solid rgba(255, 249, 232, 0.24);
}

.face-num {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--yellow);
  padding-top: 3px;
}

.face h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.face p {
  margin: 0;
  color: #d9d3c4;
  font-size: 14.5px;
  line-height: 1.5;
}

.device-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-pills span {
  padding: 7px 12px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.art-frame {
  margin: 0;
  padding: 10px;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--yellow);
}

.section--dark .art-frame {
  border-color: var(--paper);
}

.art-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* ---------- mini desktop ---------- */

.split--inside {
  grid-template-columns: 0.95fr 1.05fr;
}

.mini-desktop-wrap {
  margin: 0;
}

.mini-desktop {
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
  transform: rotate(-1.2deg);
}

.mini-clothes {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #3b6b4a;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.mini-clothes span {
  flex: none;
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: 9.5px;
  font-weight: 700;
}

.mini-clothes span:nth-child(2) { background: #ffd0a8; }
.mini-clothes span:nth-child(3) { background: #bfd8ff; }
.mini-clothes span:nth-child(4) { background: #c8ebd4; }
.mini-clothes span:nth-child(5) { background: #e6d6ff; }

.mini-windows {
  position: relative;
  height: 342px;
  background: #3b6b4a;
}

.mini-win {
  position: absolute;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.mini-win--blue {
  left: 14px;
  top: 18px;
  width: 54%;
}

.mini-win--yellow {
  right: 12px;
  top: 46px;
  width: 43%;
}

.mini-win--mint {
  left: 24px;
  bottom: 16px;
  width: 44%;
}

.mini-win--pink {
  right: 18px;
  bottom: 16px;
  width: 42%;
}

.mini-bar {
  padding: 6px 9px;
  border-bottom: 2px solid var(--ink);
  font-size: 9.5px;
  font-weight: 700;
}

.mini-win--blue .mini-bar { background: var(--blue); }
.mini-win--yellow .mini-bar { background: var(--yellow); }
.mini-win--mint .mini-bar { background: var(--mint); }
.mini-win--pink .mini-bar { background: var(--pink); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 10px;
}

.mini-grid i {
  display: block;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--yellow);
}

.mini-grid i:nth-child(3n) { background: var(--pink); }
.mini-grid i:nth-child(4n) { background: var(--mint); }

.mini-cal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 10px;
}

.mini-cal i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8e1cf;
}

.mini-cal .is-marked {
  background: var(--pink);
  border: 2px solid var(--ink);
}

.mini-lines {
  display: grid;
  gap: 7px;
  padding: 11px;
}

.mini-lines i {
  display: block;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
}

.mini-lines i:last-child {
  width: 70%;
  margin-left: auto;
  background: var(--yellow);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 56px;
  padding: 9px 12px;
}

.mini-bars i {
  display: block;
  width: 18%;
  border: 2px solid var(--ink);
  border-radius: 3px 3px 0 0;
  background: var(--mint);
}

.mini-bars i:nth-child(2) { height: 80%; background: var(--yellow); }
.mini-bars i:nth-child(3) { height: 55%; background: var(--blue); }
.mini-bars i:nth-child(4) { height: 95%; background: var(--lav); }

.mini-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
}

.mini-start {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--yellow);
}

.mini-clock {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
}

.fine {
  margin: 14px 0 0;
  color: #6f685a;
  font-size: 12.5px;
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link:hover {
  background: var(--yellow);
}

/* ---------- launch / countdown ---------- */

.launch {
  position: relative;
  overflow: hidden;
  padding-block: 88px;
  border-block: 4px solid var(--ink);
  background: var(--yellow);
}

.launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  opacity: 0.12;
  pointer-events: none;
}

.launch-inner {
  position: relative;
  text-align: center;
}

.launch-inner .eyebrow {
  justify-content: center;
}

.launch h2 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7.2vw, 84px);
}

.launch-date {
  margin-bottom: 0;
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 700;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 24px;
}

.count {
  min-width: 132px;
  padding: 13px 18px 12px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: 7px 7px 0 var(--ink);
}

.num {
  display: block;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.label {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch-sub {
  max-width: 660px;
  margin: 0 auto 26px;
  font-size: 17px;
  line-height: 1.6;
}

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

/* ---------- sponsor ---------- */

.sponsor {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 50px;
  align-items: center;
}

.sponsor-art {
  margin: 0;
}

.sponsor-art img {
  display: block;
  width: 100%;
  height: auto;
}

.sponsor-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.sponsor blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-left: 9px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: var(--paper-2);
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 26px;
  line-height: 1.18;
}

.sponsor blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding-block: 70px;
  text-align: center;
}

.not-found .eyebrow {
  justify-self: center;
}

.not-found h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 74px);
  line-height: 0.98;
}

.not-found > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
}

.not-found img {
  width: min(540px, 100%);
  height: auto;
  margin: 10px auto 18px;
}

.not-found-actions {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding-block: 38px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-size: 21px;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 30px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  color: var(--yellow);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .fine {
  margin: 0;
  color: #b9b3a5;
}

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero {
    gap: 20px;
  }

  .feature-grid {
    gap: 20px;
  }
}

@media (max-width: 940px) {
  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-cta {
    margin-left: auto;
  }

  .mobile-menu {
    margin-left: 0;
  }

  .hero,
  .split,
  .split--inside,
  .sponsor {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-art {
    max-width: 760px;
    margin-inline: auto;
  }

  .split,
  .sponsor {
    gap: 40px;
  }

  .split--inside .mini-desktop-wrap {
    order: 2;
  }

  .split--inside .split-copy {
    order: 1;
  }

  .sponsor-art {
    max-width: 560px;
    margin-inline: auto;
  }

  .section {
    padding-block: 74px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-word {
    font-size: 22px;
  }

  .brand-mark {
    width: 32px;
  }

  .header-cta {
    padding-inline: 11px;
    font-size: 13px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .split h2,
  .sponsor h2,
  .launch h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 68px);
  }

  .lede {
    font-size: 16.5px;
  }

  .actions {
    align-items: stretch;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .count {
    min-width: 0;
    padding-inline: 10px;
  }

  .num {
    font-size: clamp(42px, 13vw, 62px);
  }

  .launch {
    padding-block: 66px;
  }

  .sponsor blockquote {
    font-size: 23px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(38px, 12.5vw, 58px);
  }

  .sticker {
    left: 0;
    bottom: 3%;
    font-size: 21px;
  }

  .card {
    padding: 20px;
  }

  .mini-windows {
    height: 300px;
  }

  .mini-win--blue,
  .mini-win--yellow {
    width: 62%;
  }

  .mini-win--yellow {
    top: 84px;
    right: 8px;
  }

  .mini-win--mint,
  .mini-win--pink {
    width: 48%;
  }

  .mini-clothes span:nth-child(4),
  .mini-clothes span:nth-child(5) {
    display: none;
  }
}

/* ---------- download + theme chooser ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 42px;
  align-items: start;
}

.download-h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Archivo Black", Impact, "Arial Black", sans-serif;
  font-size: 16px;
}

.theme-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 24px;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.theme-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.theme-card.is-selected {
  background: var(--yellow-soft);
  box-shadow: 6px 6px 0 var(--ink);
}

.theme-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.theme-swatch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 11px 1fr 1fr;
  gap: 3px;
  flex: none;
  width: 48px;
  height: 42px;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--t-bg);
}

.theme-swatch i {
  display: block;
  min-width: 0;
  border-radius: 3px;
  background: var(--t-line);
}

.theme-swatch .sw-bar {
  grid-column: 1 / -1;
  background: var(--t-surface);
}

.theme-swatch .sw-accent {
  background: var(--t-accent);
}

.theme-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.theme-label strong {
  font-size: 15px;
}

.theme-label span {
  color: var(--muted);
  font-size: 12px;
}

.theme-choice {
  padding-top: 16px;
  border-top: 2px dashed var(--ink);
}

.theme-choice p {
  font-size: 14.5px;
}

.actions--tight {
  gap: 9px;
  margin-bottom: 6px;
}

.actions--tight .btn {
  flex: 0 1 auto;
}

p code,
li > code,
.fine code,
.theme-choice code {
  padding: 1px 6px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.steps li {
  padding-left: 4px;
  font-size: 15.5px;
  line-height: 1.55;
}

.steps li::marker {
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.steps .fine {
  display: block;
  margin-top: 7px;
  margin-bottom: 0;
}

.steps .fine a {
  font-weight: 700;
}

.steps pre {
  margin: 11px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-small);
  font-size: 13px;
  line-height: 1.6;
}

.steps pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.download-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px dashed var(--ink);
}

@media (max-width: 940px) {
  .download-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 560px) {
  .theme-list {
    grid-template-columns: 1fr;
  }

  .step-num {
    width: 32px;
    height: 32px;
  }
}

/* ---- pre-alpha downloads ---- */
.prealpha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 34px;
}

.prealpha-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-small);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.prealpha-card:hover {
  transform: translate(-1px, -1px);
}

.prealpha-icon {
  flex: 0 0 96px;
}

.prealpha-icon svg {
  display: block;
  width: 96px;
  height: 96px;
}

.prealpha-body {
  min-width: 0;
}

.prealpha-body h3 {
  margin: 0.15em 0 0.35em;
  font-size: 1.35rem;
}

.prealpha-badge {
  display: inline-block;
  margin: 0;
  padding: 0.2em 0.6em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prealpha-note {
  margin: 0.2em 0 0.7em;
}

.prealpha-meta {
  margin: 0 0 0.7em;
  font-weight: 600;
}

.prealpha-link {
  display: inline-flex;
}

.prealpha-state {
  margin: 0.5em 0 0;
  min-height: 1.2em;
}

.prealpha-card.is-missing {
  opacity: 0.5;
  filter: grayscale(1);
}

.prealpha-card.is-missing .prealpha-link {
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 940px) {
  .prealpha-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .prealpha-card {
    flex-direction: column;
  }

  .prealpha-icon {
    flex: 0 0 auto;
  }
}
