/*
 * Orbit Rush — the public site.
 *
 * No web fonts, no analytics, no cookies, no third-party requests of any kind.
 * That is not minimalism for its own sake: this site exists to host a privacy
 * policy and a Play Store support link, and a privacy policy that loads a
 * tracker from a CDN to render itself is not a document anybody should believe.
 * If you add anything here that makes a network request, the policy text stops
 * being true.
 *
 * Colours are the game's, from src/ui/theme.ts.
 */

:root {
  --abyss: #05020e;
  --void: #0a0518;
  --bone: #ede6d4;
  --flare: #ff6a2b;
  --gold: #ffc93c;
  --dim: rgba(237, 230, 212, 0.62);
  --faint: rgba(237, 230, 212, 0.38);
  --line: rgba(237, 230, 212, 0.14);
}

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

html {
  background: var(--abyss);
}

body {
  margin: 0;
  padding: 0;
  background: var(--abyss);
  color: var(--bone);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ---------- masthead ---------- */

.masthead {
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.9rem;
}

.wordmark {
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}

.wordmark span {
  color: var(--flare);
}

.tagline {
  color: var(--dim);
  margin: 1rem 0 0;
  max-width: 30rem;
}

/* ---------- type ---------- */

h1.page {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
  color: var(--gold);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--flare);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

strong {
  color: #fff;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.45rem;
}

.updated {
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--bone);
}

/* ---------- table ---------- */

.scroll {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- callout ---------- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--void);
  padding: 1rem 1.15rem;
  margin: 0 0 1.6rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Marks text the developer still has to replace. Deliberately loud — a
   placeholder that shipped to the Play Store listing would be worse than an
   ugly page. */
.todo {
  background: var(--flare);
  color: #160600;
  font-weight: 700;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  white-space: nowrap;
}

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

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

footer a {
  color: var(--dim);
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 2.5rem 1.15rem 3.5rem;
  }
}
