/*
 * Shared styling for the three hosted pages.
 *
 * Deliberately one small stylesheet with no build step and no dependencies:
 * these pages exist so the App Store, Google Play and a regulator can read
 * them, and the failure mode that matters is "the link is dead", not "the
 * typography is unfashionable". Nothing here loads from a third party — a
 * privacy policy that phones out to a font CDN to render is a bad joke.
 *
 * The palette is the game's: Okabe-Ito accents on the same near-black.
 */

:root {
  --bg: #0d0f12;
  --surface: #16191e;
  --border: #262b33;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #e69f00; /* the crystal amber */
  --blue: #0072b2;
  --green: #009e73;
  --vermillion: #d55e00;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* The wordmark: four bars in the beam colours, same as the app's home screen. */
.mark {
  display: flex;
  gap: 5px;
  margin-bottom: 1rem;
}
.mark span {
  width: 22px;
  height: 6px;
  border-radius: 3px;
}
.mark span:nth-child(1) { background: var(--blue); }
.mark span:nth-child(2) { background: var(--accent); }
.mark span:nth-child(3) { background: var(--green); }
.mark span:nth-child(4) { background: var(--vermillion); }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--accent);
}

p, li {
  color: var(--text);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card p:last-child { margin-bottom: 0; }
.card p:first-child { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

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

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
}
