:root {
  /* The apps' palette (OverAndOutKit/Brand.swift and the BrandX colour assets). */
  --bg: #fff6df;          /* ivory */
  --text: #10161b;        /* ink */
  --muted: #48566a;
  --accent: #a64700;      /* talk orange, darkened for text on ivory */
  --card: #ffffff;
  --line: #eadfc4;
  --masthead: #252a51;    /* the art's indigo, so the mascot's panel meets it seamlessly */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #272d50;        /* indigo */
    --text: #fff6df;
    --muted: #bed5df;     /* silver blue */
    --accent: #ff8b1a;
    --card: #333b60;
    --line: #3f4870;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
}

/* The mascot and wordmark on indigo, as on the iPhone's sign-in screen. */
.masthead {
  background: var(--masthead);
  text-align: center;
  padding: 12px 20px 8px;
}

.masthead a { display: inline-block; }

.masthead img {
  display: block;
  width: 176px;
  height: 176px;
}

.masthead + main { padding-top: 32px; }

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 20px 0 12px;
}

h2 { font-size: 21px; margin: 36px 0 8px; }

p, li { color: var(--text); }
.lead { font-size: 19px; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 28px 0;
}

.card ol { margin: 0; padding-left: 22px; }
.card li + li { margin-top: 8px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 12px;
}

.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

footer a { color: var(--muted); margin-right: 16px; }
footer p { color: var(--muted); margin: 12px 0 0; }
