/*
 * One stylesheet for all three documents.
 *
 * No web fonts, no analytics, no cookies, no third-party anything. These pages exist to be
 * read by a person deciding whether to trust the app and by a reviewer checking the link
 * works; both are better served by a page that loads instantly from one origin than by
 * anything else this could have been.
 */

:root {
  color-scheme: light dark;
  --ink: #111b1a;
  --muted: #56615e;
  --teal: #0f8178;
  --paper: #fffefa;
  --rule: #dde3df;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f0;
    --muted: #a3afab;
    --teal: #4fb3a8;
    --paper: #12100e;
    --rule: #2c3330;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 64px;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 32px 0 8px;
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  text-decoration: none;
}

h1 {
  margin: 20px 0 4px;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 36px 0 8px;
  font-size: clamp(19px, 4.5vw, 22px);
  line-height: 1.25;
}

h3 {
  margin: 24px 0 4px;
  font-size: 17px;
}

.dates {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

p, li { color: var(--ink); }
li { margin-bottom: 6px; }

a { color: var(--teal); }

.note {
  margin: 24px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, transparent);
  border-radius: 0 8px 8px 0;
}

.warn {
  border-left-color: #b4453b;
  background: color-mix(in srgb, #b4453b 8%, transparent);
}

/* The landing page's lead sentence: one size up, and no heavier. */
.lede {
  margin: 12px 0 0;
  font-size: 19px;
  color: var(--muted);
}

/*
 * The three documents, as cards rather than a bullet list.
 *
 * A grid that collapses to one column on its own - no media query and no breakpoint to get
 * wrong, because `auto-fit` with a minimum already says what is meant.
 */
.hub {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 32px 0 8px;
}

.hub a {
  display: block;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}

.hub a:hover,
.hub a:focus-visible {
  border-color: var(--teal);
}

.hub strong {
  display: block;
  color: var(--teal);
  font-size: 17px;
}

.hub span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th { font-weight: 600; }

/* Tables of retention periods are the one thing here that cannot always fit a phone. */
.scroll { overflow-x: auto; }

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

footer a { margin-right: 16px; }
