/*
 * Night to first light, the same as the app.
 *
 * Deliberately one stylesheet and no build step: this site exists so a link
 * can open the app and so the store has a privacy policy to point at. The day
 * it becomes a real site it can grow a toolchain; until then a toolchain is
 * something to keep working for nothing.
 */

:root {
  --night: #08080d;
  --raised: #101017;
  --card: #15151e;
  --line: #242430;
  --gold: #ffb45c;
  --coral: #ff7a59;
  --on-gold: #1a1206;
  --text: #f7f5f2;
  --muted: #a6a2ae;
  --faint: #6e6a79;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* The ring, drawn once and used as the mark. */
.mark {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
}

h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 30rem;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem;
}

p {
  color: var(--muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

.button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
}

.button:active {
  background: #e89c46;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 2rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  /* The letter-spacing pads the right of the last glyph; this takes it back so
     the code still reads as centred. */
  text-indent: 0.28em;
  margin: 0.5rem 0 1.5rem;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
}

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

ul {
  color: var(--muted);
}

li {
  margin-bottom: 0.5rem;
}
