@font-face {
  font-family: "Kanit";
  src: url("/fonts/kanit-black-italic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #0e0b16;
  --panel: #1a1426;
  --line: #3a3049;
  --red: #ff1744;
  --gold: #ffc233;
  --text: #f4effa;
  --mute: #b4aac6;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, .play:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.page { max-width: 38rem; margin: 0 auto; padding: 0 20px 64px; }

h1, h2, .wordmark {
  font-family: "Kanit", system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
}

/* Home: a neon streak falls from the top of the screen onto the icon, like the arrow in it. */
.hero { position: relative; padding-top: 22vh; }
.streak {
  position: absolute;
  top: 0;
  left: 47px;
  width: 3px;
  height: calc(22vh + 10px);
  background: linear-gradient(to bottom, transparent, var(--red));
  box-shadow: 0 0 12px var(--red), 0 0 28px rgba(255, 23, 68, .6);
  transform-origin: top;
  animation: fall .7s cubic-bezier(.5, 0, .9, .4) both;
}
@keyframes fall { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .streak { animation: none; } }

.icon {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 0 40px rgba(255, 23, 68, .35);
}

.hero h1 { font-size: clamp(44px, 12vw, 72px); margin: 28px 0 12px; }
.lede { font-size: 20px; color: var(--text); margin: 0 0 28px; max-width: 30ch; }

.play {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1426;
  font-weight: 700;
  text-decoration: none;
}
.play:hover { background: #ffd166; }

section { margin-top: 56px; }
h2 { font-size: 30px; margin: 0 0 12px; }
p { margin: 0 0 14px; }
.mute { color: var(--mute); }

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 15px;
}
footer p { margin: 0 0 6px; }

/* Privacy policy */
.top { display: flex; align-items: center; gap: 12px; padding: 24px 0; text-decoration: none; color: var(--text); }
.top img { width: 40px; height: 40px; border-radius: 10px; }
.top .wordmark { font-size: 22px; }
.policy h1 { font-size: clamp(36px, 9vw, 52px); margin: 24px 0 6px; }
.policy h2 { font-size: 22px; margin: 36px 0 8px; }
.policy ul { padding-left: 22px; margin: 0 0 14px; }
.policy li { margin-bottom: 4px; }
