/* Chemtrail Hero: marketing site styles. Colours and type follow the game's menu screen. */

@font-face {
  font-family: 'Bungee';
  src: url('../fonts/bungee-latin.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --neon: #5cff6a;
  --neon-deep: #17b83a;
  --neon-glow: rgba(92, 255, 106, 0.6);
  --gold: #ffd23f;
  --gold-deep: #ffa412;
  --sky: #3f9cf0;
  --sky-light: #9fd6ff;
  --ink: #10203b;
  --ink-2: #162a4d;
  --panel: #122240;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-dim: #c3d3ea;
  --danger: #ff3d4a;
  --cork: #c8955a;
  --paper: #fff8e6;

  --font-display: 'Bungee', 'Arial Black', Impact, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 20px;
  --o: 3px;
  --wrap: 1120px;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-light);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  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: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Thick dark outline so display text stays readable on a bright sky (same trick as the game). */
.ink {
  text-shadow:
    calc(-1 * var(--o)) calc(-1 * var(--o)) 0 var(--ink),
    0 calc(-1 * var(--o)) 0 var(--ink),
    var(--o) calc(-1 * var(--o)) 0 var(--ink),
    var(--o) 0 0 var(--ink),
    var(--o) var(--o) 0 var(--ink),
    0 var(--o) 0 var(--ink),
    calc(-1 * var(--o)) var(--o) 0 var(--ink),
    calc(-1 * var(--o)) 0 0 var(--ink),
    0 calc(2 * var(--o)) 0 var(--ink);
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 5;
  padding: 12px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.brand {
  --o: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand b {
  font-weight: 400;
  color: var(--neon);
}

.brand img {
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}

.nav a:hover {
  background: #fff;
  color: var(--ink);
}

.nav a[aria-current='page'] {
  background: var(--gold);
}

/* ---------- buttons and badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0.55em 1.3em 0.5em;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(to bottom, #fff27a 0%, var(--gold) 45%, var(--gold-deep) 100%);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow:
    0 6px 0 var(--ink),
    0 12px 18px rgba(0, 0, 0, 0.25),
    inset 0 3px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 70ms ease-out, box-shadow 70ms ease-out, filter 120ms;
}

.btn:hover {
  color: var(--ink);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

.btn-go {
  background: linear-gradient(to bottom, #c9ffcf 0%, var(--neon) 40%, var(--neon-deep) 100%);
}

.btn-alt {
  background: linear-gradient(to bottom, #ffffff 0%, var(--sky-light) 50%, #6fb6f5 100%);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Plain "coming soon" badges. Not the official store artwork, on purpose. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 158px;
  padding: 8px 14px 8px 10px;
  color: #fff;
  background: #0b1628;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
}

.badge svg {
  flex: none;
  width: 26px;
  height: 26px;
}

.badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.badge strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #2f86e0 0%, #7cc4ff 55%, #ffe3a3 100%);
  color: var(--ink);
}

.hero::after {
  /* a soft cloud bank at the bottom edge */
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 120px;
  background:
    radial-gradient(60px 50px at 10% 50%, #fff 98%, transparent),
    radial-gradient(90px 70px at 28% 60%, #fff 98%, transparent),
    radial-gradient(70px 55px at 47% 45%, #fff 98%, transparent),
    radial-gradient(100px 75px at 66% 60%, #fff 98%, transparent),
    radial-gradient(70px 50px at 86% 50%, #fff 98%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 0;
  line-height: 0.92;
  transform: rotate(-4deg);
  animation: titleBob 3.2s ease-in-out infinite;
}

.title .t1 {
  --o: 4px;
  font-size: clamp(34px, 10.5vw, 72px);
  color: #fff;
}

.title .t2 {
  --o: 5px;
  font-size: clamp(60px, 19vw, 128px);
  color: var(--neon);
  filter: drop-shadow(0 0 22px var(--neon-glow));
}

.swoosh {
  width: min(78%, 360px);
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, var(--neon) 30%, #eaffec 50%, var(--neon) 70%, transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 18px var(--neon-glow);
  transform: rotate(-4deg);
  animation: swoosh 2.2s linear infinite;
}

.tagline {
  --o: 2px;
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(17px, 4.6vw, 26px);
  line-height: 1.2;
  color: var(--gold);
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}

.hero .badges {
  justify-content: center;
}

.hero-art {
  position: relative;
  margin: 0;
}

.frame {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 10px 0 var(--ink), 0 24px 50px rgba(16, 32, 59, 0.35);
  background: var(--ink);
}

.hero-art .frame {
  transform: rotate(1.5deg);
}

.hero-art img {
  width: 100%;
}

.sticker {
  position: absolute;
  z-index: 2;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--gold);
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
}

.hero-art .sticker {
  left: -6px;
  bottom: -18px;
  padding: 6px 12px;
  font-size: 14px;
  transform: rotate(-6deg);
}

.hero-plane {
  position: absolute;
  z-index: 2;
  right: -10px;
  top: -34px;
  width: 21%;
  max-width: 130px;
  filter: drop-shadow(0 8px 10px rgba(16, 32, 59, 0.35));
  animation: hover 3.6s ease-in-out infinite;
}

@media (min-width: 700px) {
  .nav a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1.08fr;
    align-items: center;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 104px;
  }

  .title .t1 {
    font-size: 62px;
  }

  .title .t2 {
    font-size: 116px;
  }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: 64px 0;
}

.section-dark {
  background: var(--ink);
}

.section-panel {
  background: var(--panel);
}

.section-sky {
  background: linear-gradient(to bottom, #7cc4ff, #bfe3ff);
  color: var(--ink);
}

.section-sky a {
  color: #0b4f9c;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--neon);
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.section-title {
  --o: 3px;
  font-size: clamp(30px, 7vw, 48px);
  color: var(--gold);
}

.section-sky .section-title {
  color: #fff;
}

.section-head p {
  color: var(--text-dim);
  font-size: 18px;
}

.section-sky .section-head p {
  color: var(--ink);
}

/* ---------- features ---------- */

.features {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
  background: linear-gradient(to bottom, var(--ink-2), #0f1d36);
  border: 4px solid #000a1c;
  border-radius: 24px;
  box-shadow: 0 8px 0 #000a1c, inset 0 0 0 3px var(--line);
}

.feature img {
  width: 120px;
  height: 120px;
  margin: -4px auto 6px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.feature h3 {
  --o: 2px;
  font-size: 21px;
  color: var(--neon);
  text-align: center;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
}

.feature p + p {
  margin-top: 0.6em;
}

.tag {
  display: inline-block;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 0.82em;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
}

/* ---------- evidence board (boss roster) ---------- */

.board {
  position: relative;
  padding: 28px 16px 36px;
  background-color: var(--cork);
  background-image:
    radial-gradient(rgba(90, 50, 20, 0.35) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 230, 190, 0.35) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 6px;
  border: 10px solid #7a4a22;
  border-radius: 16px;
  box-shadow: 0 10px 0 #000a1c, inset 0 0 40px rgba(60, 30, 10, 0.45);
}

.board-strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.board-stamp {
  position: absolute;
  right: 14px;
  top: -22px;
  z-index: 3;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--danger);
  background: var(--paper);
  border: 3px solid var(--danger);
  border-radius: 8px;
  transform: rotate(5deg);
}

.bosses {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .bosses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .bosses {
    grid-template-columns: repeat(4, 1fr);
  }
}

.boss {
  position: relative;
  padding: 14px 14px 16px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(40, 20, 5, 0.45);
  transform: rotate(var(--tilt, -1.5deg));
}

.boss:nth-child(2n) {
  --tilt: 1.8deg;
}

.boss:nth-child(3n) {
  --tilt: -0.6deg;
}

.boss::before {
  /* push pin */
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a8f, var(--danger) 55%, #a3141e);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.45);
}

.boss figure {
  margin: 0 0 10px;
  background: linear-gradient(to bottom, #6fb6f5, #ffe3a3);
  border: 3px solid var(--ink);
}

.boss img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
}

.boss h3 {
  margin: 0 0 4px;
  font-size: 19px;
  color: var(--ink);
}

.boss .when {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a3b00;
}

.boss p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.45;
}

.boss .weak {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.boss-final {
  background: #fff1c4;
}

.boss-final .when {
  color: #b0121e;
}

/* ---------- zones ---------- */

.zones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .zones {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.zone {
  overflow: hidden;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
}

.zone img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.zone div {
  padding: 8px 10px 12px;
}

.zone h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--ink);
}

.zone .zname {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b5a85;
}

.zone p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- daily ---------- */

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.callout {
  padding: 22px 22px 8px;
  background: var(--ink-2);
  border: 4px solid #000a1c;
  border-radius: 24px;
  box-shadow: 0 8px 0 #000a1c, inset 0 0 0 3px var(--line);
}

.callout h3 {
  --o: 2px;
  font-size: 22px;
  color: var(--gold);
}

.checks {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px #000a1c;
}

.quote-card {
  position: relative;
  padding: 20px 20px 18px;
  color: var(--ink);
  background: #fff27a;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transform: rotate(-2deg);
}

.quote-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.6vw, 24px);
  line-height: 1.25;
}

.quote-card small {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
    max-width: 960px;
    margin: 0 auto;
  }
}

.phone {
  display: block;
  padding: 7px;
  background: #0b1424;
  border: 3px solid #2b3d5e;
  border-radius: 28px;
  box-shadow: 0 8px 0 #000a1c, 0 16px 26px rgba(0, 0, 0, 0.4);
  transition: transform 160ms ease-out;
}

.phone:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 21px;
  background: #1c2c4a;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--text-dim);
}

/* lightbox */

.lightbox {
  width: min(94vw, 460px);
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(6, 12, 26, 0.86);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 70px);
  margin: 0 auto;
  border: 5px solid var(--ink);
  border-radius: 24px;
  background: #1c2c4a;
}

.lightbox p {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(to bottom, #ffffff, var(--sky-light));
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  margin-bottom: 14px;
  background: var(--ink-2);
  border: 4px solid #000a1c;
  border-radius: 18px;
  box-shadow: 0 6px 0 #000a1c;
}

.faq summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: var(--ink);
  background: var(--neon);
  border-radius: 8px;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq .answer {
  padding: 0 18px 6px;
  color: var(--text-dim);
}

/* ---------- CTA strip ---------- */

.cta {
  padding: 56px 0;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(to bottom, #ffe3a3, #ffc27a);
}

.cta h2 {
  --o: 3px;
  font-size: clamp(26px, 6.5vw, 42px);
  color: #fff;
}

.cta p {
  max-width: 34em;
  margin: 0 auto 22px;
  font-weight: 650;
}

.cta .badges {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 40px 0 32px;
  color: var(--text-dim);
  background: #0a1528;
  border-top: 4px solid #000a1c;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-weight: 700;
}

.satire {
  margin: 12px 0 0;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-left: 6px solid var(--gold-deep);
  border-radius: 8px;
  font-weight: 650;
}

.fine {
  margin: 18px 0 0;
  font-size: 13px;
  color: #8ea3c4;
}

/* ---------- inner pages ---------- */

.page-hero {
  padding: 8px 0 40px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(to bottom, #2f86e0 0%, #7cc4ff 70%, #a9d8ff 100%);
}

.page-hero h1 {
  --o: 3px;
  margin: 10px 0 8px;
  font-size: clamp(32px, 8vw, 56px);
  color: #fff;
}

.page-hero p {
  max-width: 36em;
  margin: 0 auto;
  font-weight: 650;
}

.doc {
  padding: 40px 0 64px;
  background: var(--panel);
}

.doc .wrap {
  max-width: 820px;
}

.doc h2 {
  --o: 2px;
  margin-top: 1.6em;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--gold);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin-top: 1.4em;
  font-size: 18px;
  color: var(--neon);
}

.doc p,
.doc li {
  color: var(--text-dim);
}

.doc ul {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc strong {
  color: #fff;
}

.note {
  margin: 0 0 28px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff27a;
  border: 3px solid var(--ink);
  border-radius: 14px;
  font-weight: 650;
}

.note p {
  margin: 0;
  color: var(--ink);
}

.mail-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 0 0 32px;
  padding: 20px;
  background: var(--ink-2);
  border: 4px solid #000a1c;
  border-radius: 22px;
  box-shadow: 0 8px 0 #000a1c;
}

.mail-card p {
  flex: 1 1 260px;
  margin: 0;
}

.mail-card .btn {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.facts {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
  font-size: 16px;
}

.facts th,
.facts td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--line);
}

.facts th {
  width: 34%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  color: var(--gold);
}

.facts td {
  color: var(--text-dim);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .downloads {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.downloads a {
  display: block;
  height: 100%;
  padding: 8px 8px 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--ink-2);
  border: 3px solid #000a1c;
  border-radius: 14px;
}

.downloads a:hover {
  border-color: var(--gold);
}

.downloads img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #1c2c4a;
}

.downloads .logo-thumb img {
  object-fit: contain;
  padding: 6px;
  background: linear-gradient(to bottom, #2f86e0, #ffe3a3);
}

.downloads span {
  display: block;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- 404 ---------- */

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 24px 0 64px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(to bottom, #2f86e0 0%, #7cc4ff 55%, #ffe3a3 100%);
}

.lost .code {
  --o: 5px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(84px, 28vw, 180px);
  line-height: 1;
  color: var(--neon);
  filter: drop-shadow(0 0 22px var(--neon-glow));
}

.lost h1 {
  --o: 3px;
  font-size: clamp(24px, 6vw, 38px);
  color: #fff;
}

.lost p {
  max-width: 30em;
  margin: 0 auto 22px;
  font-weight: 650;
}

.lost img {
  width: 150px;
  margin: 0 auto 6px;
  animation: hover 3.6s ease-in-out infinite;
}

.lost .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- motion ---------- */

@keyframes titleBob {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-6px);
  }
}

@keyframes swoosh {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .title {
    animation: none;
    transform: rotate(-4deg);
  }

  .swoosh,
  .hero-plane,
  .lost img {
    animation: none;
  }
}

@media (max-width: 479px) {
  .nav-wide {
    display: none;
  }
}

@media (max-width: 639px) {
  .feature {
    display: grid;
    grid-template-columns: 88px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 16px;
  }

  .feature img {
    grid-row: 1 / span 3;
    width: 88px;
    height: 88px;
    margin: 0;
  }

  .feature h3 {
    margin-bottom: 0.35em;
    font-size: 18px;
    text-align: left;
  }

  .feature p {
    font-size: 15.5px;
    line-height: 1.5;
  }
}

@media (max-width: 559px) {
  .boss {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 12px;
    align-items: start;
  }

  .boss figure {
    grid-row: 1 / span 2;
    margin: 0 0 10px;
  }

  .boss h3 {
    align-self: end;
  }

  .boss > p:not(.when) {
    grid-column: 1 / -1;
  }

  .board {
    padding: 26px 10px 30px;
    border-width: 7px;
  }

  .boss img {
    padding: 4px;
  }

  .boss h3 {
    font-size: 17px;
  }

  .boss p {
    font-size: 15px;
  }
}
