/*
 * The store pages: a privacy policy and a support page, which Apple and Google
 * both require as public URLs before an app may be submitted.
 *
 * Deliberately one small stylesheet and no build step. These pages exist to be
 * readable on a phone in a car park by somebody who has just been asked to
 * agree to something, and to still be there in three years. A framework would
 * make them worse at both.
 *
 * The palette is the app's own, from `src/theme.ts`.
 */

:root {
  --ink: #101418;
  --paper: #F7F5F1;
  --card: #FFFFFF;
  --asagi: #2E6C88;
  --asagi-deep: #255A72;
  --red: #E4401F;
  --rule: rgba(16, 20, 24, 0.10);
  --muted: rgba(16, 20, 24, 0.62);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F7F5F1;
    --paper: #0B1A20;
    --card: #12242C;
    --asagi: #7FB4C9;
    --asagi-deep: #9AC7D9;
    --rule: rgba(247, 245, 241, 0.14);
    --muted: rgba(247, 245, 241, 0.66);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  padding: 0 20px 64px;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: 40rem;
  margin: 0 auto;
  padding: 28px 0 0;
}

.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
}

.masthead nav a { font-size: 14.5px; }

main { max-width: 40rem; margin: 0 auto; }

h1 {
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 34px 0 14px;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.2px;
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.standfirst { font-size: 18px; line-height: 1.55; margin: 0 0 6px; }

.dateline {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 4px;
}

p { margin: 0 0 14px; }

a { color: var(--asagi-deep); text-underline-offset: 2px; }
a:hover { color: var(--red); }

ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }

ul.plain { list-style: none; padding-left: 0; }
ul.plain li {
  padding-left: 18px;
  position: relative;
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--asagi);
}

dl { margin: 0 0 14px; }
dt { font-weight: 700; margin-top: 14px; }
dd { margin: 2px 0 0; color: var(--muted); }

section:first-of-type h2 { border-top: none; padding-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0;
}
.card p:last-child { margin-bottom: 0; }

footer {
  max-width: 40rem;
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}
