/* Shahed Bird: shared styles for every page. Colours come from the game
   (ShahedBird/Art/Palette.swift and UIColors in ShahedBird/UI/UIKitBits.swift). */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Game palette */
  --ink: #2b1d14;
  --ink-soft: #5a4434;
  --cream: #fff6df;
  --paper: #fffbef;
  --track: #f1e6c8;
  --sky-top: #4fc0ee;
  --sky-low: #cff3ff;
  --yellow: #ffd21f;
  --gold: #ffc928;
  --logo-red: #ff5a36;
  --red: #e8392f;
  --orange: #ff7a2f;
  --green: #4fc94a;
  --blue: #3fa9f5;
  --purple: #8e63d6;
  --purple-dark: #5e3ba0;
  --wood: #e6a057;
  --grass: #74cb4b;
  --grass-light: #8ed661;
  --grass-dark: #4e9f2e;
  --grass-edge: #24470e;
  --sand: #e2d79a;
  --sand-dark: #cdbe78;
  --placeholder: #ffe98a;

  /* Type */
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --round: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --prose: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The game's panel look: 5 px ink border, ink lip, soft inner shading */
  --border: 5px solid var(--ink);
  --lip: 0 7px 0 var(--ink);
  --panel-insets: inset 0 -8px 0 rgba(120, 80, 40, 0.14), inset 0 5px 0 rgba(255, 255, 255, 0.75);

  --gutter: 16px;
  --wrap: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--round);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.5;
  background-color: var(--sky-low);
  background-image: linear-gradient(180deg, var(--sky-top) 0, #86d3f3 700px, #b9e9fb 1600px, var(--sky-low) 100%);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 14px;
  font-family: var(--round);
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- The logo: two tilted words with an ink outline and drop (TitlePanel) ---------- */

.logo {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-word {
  display: block;
  /* An outline from 16 ink copies, then a heavier drop below, like the game's text. */
  text-shadow:
    0.055em 0 0 var(--ink), -0.055em 0 0 var(--ink), 0 0.055em 0 var(--ink), 0 -0.055em 0 var(--ink),
    0.039em 0.039em 0 var(--ink), -0.039em 0.039em 0 var(--ink), 0.039em -0.039em 0 var(--ink), -0.039em -0.039em 0 var(--ink),
    0.051em 0.021em 0 var(--ink), -0.051em 0.021em 0 var(--ink), 0.051em -0.021em 0 var(--ink), -0.051em -0.021em 0 var(--ink),
    0.021em 0.051em 0 var(--ink), -0.021em 0.051em 0 var(--ink), 0.021em -0.051em 0 var(--ink), -0.021em -0.051em 0 var(--ink),
    0 0.075em 0 var(--ink), 0.03em 0.09em 0 var(--ink), -0.03em 0.09em 0 var(--ink), 0 0.105em 0 var(--ink),
    0.045em 0.08em 0 var(--ink), -0.045em 0.08em 0 var(--ink);
}

.logo-top {
  color: var(--yellow);
  transform: rotate(-5deg);
}

.logo-bottom {
  color: var(--logo-red);
  transform: translateX(0.19em) rotate(-5deg);
}

/* ---------- Panels and chips ---------- */

.panel {
  background: var(--cream);
  border: var(--border);
  border-radius: 28px;
  box-shadow: var(--panel-insets), var(--lip);
}

.chip {
  display: inline-block;
  padding: 0.2em 0.8em 0.25em;
  border: 4px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
  background: var(--yellow);
}

.candy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 60px;
  padding: 0.35em 1.4em 0.45em;
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.14), var(--lip);
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.candy::before {
  /* The candy buttons' glossy pill */
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6px;
  height: 26%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.candy:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.14), 0 9px 0 var(--ink);
}

.candy:active {
  transform: translateY(5px);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.14), 0 2px 0 var(--ink);
}

/* ---------- Phone frames around the screenshots ---------- */

.phone {
  position: relative;
  margin: 0;
  padding: 3.4%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #4a382c 0%, #1d140e 55%, #2e2219 100%);
  box-shadow:
    0 0 0 3px var(--ink),
    inset 0 0 0 2px rgba(255, 255, 255, 0.14),
    0 10px 0 -1px rgba(43, 29, 20, 0.28),
    0 26px 44px rgba(18, 60, 110, 0.28);
}

.screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 12% / 5.6%;
  overflow: hidden;
  background: #0d0d0d;
}

.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen::after {
  /* Dynamic Island */
  content: "";
  position: absolute;
  left: 50%;
  top: 1.3%;
  width: 30%;
  height: 4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0b0b;
}

/* ---------- Clouds (decorative) ---------- */

.cloud {
  position: absolute;
  display: block;
  aspect-ratio: 200 / 80;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80'%3E%3Cg fill='white'%3E%3Ccircle cx='52' cy='52' r='27'/%3E%3Ccircle cx='90' cy='37' r='33'/%3E%3Ccircle cx='130' cy='46' r='27'/%3E%3Ccircle cx='160' cy='57' r='19'/%3E%3Crect x='28' y='54' width='152' height='26' rx='13'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

/* ---------- Page header for inner pages ---------- */

.topbar {
  padding-block: 14px;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.brand-word {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink),
    0 4px 0 var(--ink), 1.5px 3.5px 0 var(--ink), -1.5px 3.5px 0 var(--ink);
}

.brand-word .b1 {
  color: var(--yellow);
}

.brand-word .b2 {
  color: var(--logo-red);
}

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

.topnav a {
  display: inline-block;
  padding: 7px 14px 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.topnav a:hover {
  background: var(--yellow);
}

.topnav a[aria-current="page"] {
  background: var(--yellow);
}

/* ---------- Footer: the game's ground ---------- */

.scenery {
  position: relative;
  height: 96px;
  margin-top: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60' preserveAspectRatio='none'%3E%3Cg fill='%237ed38a'%3E%3Ccircle cx='20' cy='38' r='22'/%3E%3Ccircle cx='58' cy='30' r='26'/%3E%3Ccircle cx='100' cy='40' r='20'/%3E%3Ccircle cx='138' cy='28' r='26'/%3E%3Ccircle cx='180' cy='36' r='22'/%3E%3Ccircle cx='220' cy='32' r='24'/%3E%3Crect x='0' y='38' width='240' height='22'/%3E%3C/g%3E%3C/svg%3E") left bottom / 240px 60px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C 90 20 190 20 290 62 C 380 96 470 26 600 52 L 600 100 L 0 100 Z' fill='%238fc7ea'/%3E%3C/svg%3E") left bottom / 600px 96px repeat-x;
}

.ground {
  flex-shrink: 0;
  position: relative;
  color: var(--ink);
  background-color: var(--sand);
  background-image: radial-gradient(circle, rgba(150, 128, 60, 0.28) 1.4px, transparent 2px);
  background-size: 34px 22px;
  border-top: 4px solid var(--grass-edge);
}

.ground::before {
  /* The striped grass band */
  content: "";
  display: block;
  height: 22px;
  background: repeating-linear-gradient(120deg, var(--grass) 0 14px, var(--grass-light) 14px 28px);
  border-bottom: 5px solid var(--grass-dark);
}

.footer-inner {
  padding-block: 26px 34px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 8px 11px 9px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  background: var(--yellow);
}

.footer-inner p {
  margin: 0;
  max-width: 62ch;
}

.footer-fine {
  font-size: 0.875rem;
  font-weight: 800;
}

/* ---------- Landing page ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 36px 56px;
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rays {
  position: absolute;
  left: 50%;
  top: 150px;
  width: 980px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.2) 0deg 9deg, rgba(255, 255, 255, 0) 9deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 90s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.hero .c1 { width: 170px; top: 210px; left: -48px; }
.hero .c2 { width: 210px; top: 54px; right: -70px; }
.hero .c3 { width: 150px; top: 640px; right: -30px; }
.hero .c4 { width: 120px; top: 900px; left: -20px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-areas: "title" "phones" "body";
  gap: 30px;
  align-items: center;
}

.hero-title { grid-area: title; }
.hero-body { grid-area: body; }
.hero-phones { grid-area: phones; }

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}

.hero .logo {
  font-size: clamp(3.6rem, 21vw, 8.25rem);
  padding-bottom: 0.1em;
}

.logo-bob {
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.tagline {
  margin: 0;
  padding: 0.25em 0.8em 0.32em;
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--panel-insets), 0 6px 0 var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 6.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--purple-dark);
  transform: rotate(-3deg);
}

.tagline .hot {
  color: #d43128; /* the game's red, a shade deeper for 4.5:1 contrast on the bubble */
}

.lede {
  margin: 0;
  max-width: 34ch;
  font-size: 1.15rem;
  line-height: 1.5;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 3px 11px 4px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 251, 239, 0.9);
  font-weight: 900;
  font-size: 0.875rem;
  white-space: nowrap;
}

.soon {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 10px 18px 12px;
  background: var(--paper);
  border: 4px dashed var(--ink);
  border-radius: 20px;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.25;
}

.soon .chip {
  font-size: 1rem;
  border-width: 3px;
}

.hero-phones {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-block: 4% 2%;
}

.hero-phones > .phone {
  grid-area: 1 / 1;
  align-self: center;
}

.hero-phones .phone--center {
  justify-self: center;
  width: 50%;
  z-index: 2;
}

.hero-phones .phone--left {
  justify-self: start;
  width: 39%;
  margin-left: 4%;
  transform: rotate(-8deg) translateY(4%);
  z-index: 1;
}

.hero-phones .phone--right {
  justify-self: end;
  width: 39%;
  margin-right: 4%;
  transform: rotate(8deg) translateY(4%);
  z-index: 1;
}

.section {
  position: relative;
  padding-block: clamp(44px, 8vw, 88px);
}

main > .section:last-child {
  padding-bottom: 28px;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(26px, 5vw, 44px);
}

.section-title {
  margin: 0;
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 8.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-lede {
  margin: 12px auto 0;
  max-width: 44ch;
  font-size: 1.1rem;
}

.hook-list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hook {
  position: relative;
  padding: 26px 22px 26px;
  text-align: left;
}

.hook-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hook-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14), 0 5px 0 var(--ink);
}

.hook-icon svg {
  width: 40px;
  height: 40px;
}

.hook--flap .hook-icon { background: var(--blue); }
.hook--sling .hook-icon { background: var(--green); }
.hook--fever .hook-icon { background: var(--orange); }

.hook-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hook p {
  margin: 0;
}

.shots-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-block: 8px 34px;
  scrollbar-width: thin;
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 250px);
  gap: 22px;
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

.shot {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}

.shot .phone {
  width: 88%;
  margin-inline: auto;
}

.shot:nth-child(odd) .phone { transform: rotate(-2deg); }
.shot:nth-child(even) .phone { transform: rotate(2deg); }

.shot-card {
  padding: 16px 18px 18px;
  border-radius: 22px;
}

.shot-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shot-card p {
  margin: 0;
  font-size: 1rem;
}

.scroll-hint {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

.extras {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extra {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  align-content: start;
  padding: 18px 18px 20px;
  border-radius: 22px;
}

.extra-dot {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.dot-concrete { background: repeating-linear-gradient(135deg, var(--gold) 0 5px, var(--ink) 5px 9px); }
.dot-glass { background: #a9e8f8; }
.dot-gold { background: var(--gold); }
.dot-cat { background: var(--purple); }

.extra h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.extra p {
  margin: 0;
}

.cta-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 30px 22px 34px;
  text-align: center;
  background: var(--paper);
}

.cta-icon {
  width: 112px;
  height: 112px;
  border-radius: 24%;
  border: 5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transform: rotate(-4deg);
}

.cta-panel h2 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cta-panel p {
  margin: 0;
  max-width: 46ch;
}

/* ---------- Inner pages: documents ---------- */

.doc-main {
  padding-block: 10px 0;
}

.wrap--doc {
  max-width: 860px;
}

.doc {
  padding: 26px 20px 34px;
  background: var(--paper);
  font-family: var(--prose);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.doc h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.doc h2 {
  margin: 2.2em 0 0.5em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 5.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  scroll-margin-top: 16px;
}

.doc h3 {
  margin: 1.6em 0 0.4em;
  font-family: var(--round);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.3;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc li::marker {
  color: var(--ink-soft);
}

.doc strong {
  font-weight: 700;
}

.doc a {
  overflow-wrap: anywhere;
}

.doc-meta {
  margin: 0 0 1.4em;
  color: var(--ink-soft);
  font-family: var(--round);
  font-weight: 800;
}

.summary {
  margin: 1.4em 0 1.8em;
  padding: 18px 20px 6px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 5px 0 var(--ink);
}

.summary h2 {
  margin: 0 0 0.5em;
  font-size: 1.4rem;
}

.toc {
  margin: 0 0 1.5em;
  padding: 16px 20px 6px;
  border: 3px dashed var(--ink-soft);
  border-radius: 18px;
  font-family: var(--round);
  font-weight: 800;
}

.toc h2 {
  margin: 0 0 0.4em;
  font-family: var(--round);
  font-weight: 900;
  font-size: 1.05rem;
}

.toc ol {
  columns: 2 220px;
  column-gap: 28px;
}

.toc li {
  break-inside: avoid;
}

.ph {
  /* A placeholder only the owner can fill in */
  padding: 0 0.25em;
  border-radius: 4px;
  background: var(--placeholder);
  outline: 2px dashed #8a6200;
  outline-offset: -1px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--ink);
}

.doc .note {
  padding: 12px 16px;
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: #e6f6fe;
}

/* Support FAQ */

.faq {
  margin: 0 0 1.2em;
}

.faq details {
  margin-bottom: 12px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
}

.faq summary {
  position: relative;
  padding: 14px 52px 15px 18px;
  list-style: none;
  cursor: pointer;
  font-family: var(--round);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.35;
  border-radius: 15px;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 10px no-repeat,
    var(--yellow);
}

.faq details[open] summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 3px no-repeat,
    var(--yellow);
}

.faq details[open] summary {
  border-bottom: 3px dashed var(--track);
  border-radius: 15px 15px 0 0;
}

.faq .answer {
  padding: 14px 18px 4px;
}

.doc .controls {
  display: grid;
  gap: 14px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.controls li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: baseline;
  margin: 0;
}

.controls .key {
  justify-self: start;
  padding: 2px 10px 3px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--round);
  font-weight: 900;
  font-size: 0.95rem;
  white-space: nowrap;
}

.contact-card {
  margin: 2em 0 0.5em;
  padding: 20px 20px 8px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 5px 0 var(--ink);
}

.contact-card h2 {
  margin-top: 0;
}

/* 404 */

.lost {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-block: 40px 20px;
  text-align: center;
}

.lost .ribbon {
  position: relative;
  margin: 0 0 6px;
  max-width: none;
  display: inline-block;
  padding: 6px 34px 12px;
  background: var(--red);
  border: var(--border);
  border-radius: 18px;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.25), var(--lip);
  font-family: var(--display);
  font-size: clamp(3.4rem, 18vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--yellow);
  transform: rotate(-3deg);
  text-shadow:
    3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 6px 0 var(--ink);
}

.lost h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.lost p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.15rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .hook-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .extras {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav a {
    padding-inline: 18px;
    font-size: 1rem;
  }

  .controls li {
    grid-template-columns: 7.5em 1fr;
    gap: 12px;
  }

  .doc {
    padding: 40px 48px 48px;
  }

  .cta-panel {
    padding: 40px 40px 44px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: 56px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    grid-template-areas: "title phones" "body phones";
    gap: 26px 24px;
  }

  .hero-title {
    align-self: end;
  }

  .hero-body {
    align-self: start;
  }

  .hero-copy {
    justify-items: start;
    text-align: left;
  }

  .hero .logo {
    align-items: flex-start;
    font-size: clamp(5.5rem, 9.6vw, 8.25rem);
  }

  .rays {
    left: 27%;
    top: 190px;
  }

  .facts {
    justify-content: flex-start;
  }

  .hero .c3 { top: 420px; right: 46%; }

  .hook-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .shots-scroller {
    overflow: visible;
  }

  .shots {
    width: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .scroll-hint {
    display: none;
  }

  .extras {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .extra-dot {
    grid-row: auto;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rays,
  .logo-bob {
    animation: none;
  }

  .candy,
  .candy:hover,
  .candy:active {
    transition: none;
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar nav,
  .scenery,
  .ground::before,
  .skip-link {
    display: none;
  }

  .doc,
  .panel,
  .summary {
    box-shadow: none;
    border-color: #999;
  }
}
