/* Tokens mirror src/theme.js so the web pages match the app. */
:root {
  --bk: #0a0a0a;
  --panel: #1a1a1a;
  --y: #ffe600;
  --ink: #e8e8e8;
  --ink-soft: #c8c1c1;
  --mut: #b8b2b2;
  --hairline: #3a3838;
  --head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bk);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
}
a { color: var(--y); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
mark { background: var(--y); color: var(--bk); padding: 0 4px; }

.top {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--hairline);
}
.brand { font: 400 1.125rem/1 var(--head); color: var(--y); text-decoration: none; letter-spacing: .02em; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--y); }

main { margin: 0 auto; padding: 40px 16px 64px; }
main.doc { max-width: 46rem; }
main.wide { max-width: 64rem; }

h1 { font: 400 clamp(2rem, 7vw, 3rem)/1.05 var(--head); color: #fff; margin: 0 0 24px; letter-spacing: .01em; }
h2 { font: 400 1.125rem/1.3 var(--head); color: var(--y); margin: 40px 0 12px; letter-spacing: .02em; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 8px; }
strong { color: #fff; }

.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { border: 1px solid var(--hairline); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--panel); color: #fff; }

.btn {
  display: inline-block; background: var(--y); color: var(--bk); font-weight: 700; text-decoration: none;
  padding: 14px 20px; border-radius: 4px; word-break: break-all;
}

.hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding: 24px 0 48px; }
.hero h1 { font-size: clamp(3rem, 13vw, 6.5rem); line-height: .95; margin-bottom: 20px; }
.hero h1 i { display: block; font-style: normal; }
.hero h1 .y { color: var(--y); }
.tagline { color: var(--ink-soft); font-size: 1.0625rem; }
.soon {
  display: inline-block; margin-top: 12px; border: 1px solid var(--y); color: var(--y);
  padding: 10px 14px; border-radius: 4px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
}
.mascot { position: relative; width: min(40vw, 327px); }
.mascot .rise { overflow: hidden; }
.mascot .rise img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; }
.spark { position: absolute; height: auto; }
.spark.s1 { width: 16%; left: -6%; top: 2%; }
.spark.s2 { width: 9%; right: 2%; top: -8%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps > div { background: var(--panel); border-radius: 12px; padding: 20px; }
.steps b { color: var(--mut); font-size: .8125rem; letter-spacing: .08em; }
.steps h2 { margin: 8px 0; }
.steps p { margin: 0; color: var(--ink-soft); }

.notice { margin-top: 32px; border: 2px solid var(--y); border-radius: 12px; padding: 20px; }
.notice h2 { margin: 0 0 8px; }
.notice p { margin: 0; color: var(--ink); }

footer { border-top: 1px solid var(--hairline); padding: 32px 16px 48px; text-align: center; }
.powered { color: var(--mut); font-size: .75rem; letter-spacing: .12em; margin-bottom: 10px; }
.wordmark { max-width: 70vw; height: auto; }
.disclaimer { max-width: 46rem; margin: 24px auto 16px; color: var(--mut); font-size: .8125rem; line-height: 1.6; }
.links { font-size: .875rem; margin: 24px 0 0; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .mascot { justify-self: end; width: 45vw; margin-top: -24px; }
  .steps { grid-template-columns: 1fr; }
}

/* Motion. Everything is visible and still when the visitor asks for reduced
   motion or scripting is off. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 i { animation: slam .5s cubic-bezier(.2, .9, .3, 1.2) both; }
  .hero h1 i:nth-child(2) { animation-delay: .1s; }
  .hero h1 i:nth-child(3) { animation-delay: .2s; }
  .hero h1 i:nth-child(4) { animation-delay: .3s; }
  .tagline, .soon { animation: fade .6s .55s both; }
  .mascot .rise img { animation: rise .7s .45s cubic-bezier(.2, .9, .3, 1.15) both, wave 3.2s 1.4s ease-in-out infinite; }
  .spark { animation: twinkle 2.4s 1.2s ease-in-out infinite both; }
  .spark.s2 { animation-delay: 1.9s; }
  .motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .motion .reveal.in { opacity: 1; transform: none; }
  .btn, .soon { transition: transform .15s ease; }
  .btn:hover { transform: translateY(-2px); }
}
@keyframes slam { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) translateY(-2px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(-10deg); } 40%, 60% { opacity: 1; transform: scale(1) rotate(0); } }
