/* One stylesheet for both pages.
 *
 * No CDN, no webfont service, no analytics: the fonts are served from this
 * origin. That is not tidiness — /privacy claims the site makes no
 * third-party requests, and a Google Fonts <link> would hand every reader's
 * address to a third party while the page beside it says otherwise. */

@font-face {
  font-family: 'Archivo Web';
  src: url('fonts/Archivo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Web';
  src: url('fonts/Archivo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f6f3ee;
  --card: #fffdfa;
  --ink: #1b1917;
  --ink-soft: #5c554d;
  --line: #e2dbd0;
  --accent: #7a3f16;
  --accent-soft: #f0e5d8;
  --stop: #8c2f22;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --card: #1f1e1b;
    --ink: #f2ede6;
    --ink-soft: #a9a196;
    --line: #322f2a;
    --accent: #e0a374;
    --accent-soft: #2b241d;
    --stop: #e08a7a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header ------------------------------------------------------------------ */

header.site {
  padding: 2.5rem 0 0;
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.mark .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 3rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 18ch;
}

.lede {
  max-width: var(--measure);
  margin: 1.25rem 0 0;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Apple's own badge, unmodified, in the two variants they publish: the black
 * one on the light background and the white one on the dark. Their marketing
 * guidelines forbid recolouring or redrawing it, and a single variant would
 * either vanish into the dark background or sit in a white box that is not part
 * of the artwork. Both files are here rather than hotlinked from Apple. */
.badge {
  display: inline-block;
  line-height: 0;
}

.badge img {
  width: 160px;
  height: auto;
}

.badge:hover {
  opacity: 0.85;
}

.badge-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .badge-light {
    display: none;
  }

  .badge-dark {
    display: inline-block;
  }
}

.cta small {
  color: var(--ink-soft);
}

/* Cards ------------------------------------------------------------------- */

.points {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

@media (min-width: 46rem) {
  .points {
    grid-template-columns: 1fr 1fr;
  }
}

.point {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.point h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.point p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.note {
  border-left: 3px solid var(--stop);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* Prose (the policy) ------------------------------------------------------ */

.prose {
  /* Same element as `.wrap`, and later in this file — a `padding` shorthand
   * here overrides that rule's side gutter and runs the text off the edge of a
   * phone. Block direction only. */
  padding-block: 2.5rem 1rem;
}

.prose h1 {
  max-width: none;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.prose p,
.prose li {
  max-width: var(--measure);
}

.prose ul {
  padding-left: 1.1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.stamp {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  margin: 1rem 0 1.5rem;
}

.scroller {
  overflow-x: auto;
}

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

th {
  font-weight: 600;
  white-space: nowrap;
}

/* Footer ------------------------------------------------------------------ */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

/* A three-column table on a 375pt phone is three columns of one word each, and
 * App Review reads this page on a phone. Below 40rem each row becomes a stacked
 * block with its column name in front of the value, which is the same
 * information without the horizontal scroll. */
@media (max-width: 40rem) {
  table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  table tbody tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  table tbody td {
    display: block;
    border: 0;
    padding: 0 0 0.5rem;
  }

  table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  table tbody td:last-child {
    padding-bottom: 0;
  }
}
