/* The privacy policy and the support page (site/README.md), on the night page in design-system.md
   §3.4's colours. The titles are outlines of the app's Fraunces; the text is the phone's own face, so
   the pages load no font. */

:root {
  color-scheme: dark;
  --ground: #17181c;
  --text: #f3efe6;
  --secondary: #a9a7b4;
  --tertiary: #8e8c9a;
  --card: rgb(255 255 255 / 0.05);
  --rule: rgb(255 255 255 / 0.07);
}

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

svg {
  display: block;
  fill: currentColor;
}

.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
}

/* The app icon's crescent (Design/Crescent.swift), flat in the icon's gold. */
.crescent {
  fill: #ff9d00;
}

@supports (color: color(display-p3 1 1 1)) {
  .crescent {
    fill: color(display-p3 0.968 0.637 0);
  }
}

h1 {
  margin: 0 0 6px;
}

.updated {
  margin: 0;
  color: var(--tertiary);
  font-size: 15px;
}

p.lead {
  margin: 20px 0 28px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

h2 {
  margin: 36px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
}

p,
ul {
  margin: 0 0 12px;
  color: var(--secondary);
}

ul {
  padding-inline-start: 1.2em;
}

li {
  margin-bottom: 6px;
}

strong,
em {
  color: var(--text);
}

strong {
  font-weight: 600;
}

/* A card's fill, with no line round it (design-system.md §3.4). */
.card {
  margin: 0 0 8px;
  padding: 18px 20px 8px;
  border-radius: 22px;
  background: var(--card);
}

.card h2 {
  margin-top: 0;
}

a {
  color: var(--text);
  text-decoration-color: var(--tertiary);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--tertiary);
  font-size: 15px;
}

/* At least 44 pt tall (design-system.md §9). */
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-end: 20px;
  color: var(--secondary);
}

footer p {
  margin: 0;
  color: var(--tertiary);
}

/* The words the outlines draw, for VoiceOver and for copying. */
.words {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
