/* Same typefaces and colors as the app. Fonts are served from this site (SIL Open Font
   License, see fonts/OFL-*.txt), so the pages make no requests to other servers. */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/literata-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --paper: #fdfdfe;
  --shelf: #f3f4f8;
  --ink: #1b1e2b;
  --ink-2: #535a6d;
  --ink-3: #8f95a7;
  --rule: #e1e4ec;
  --thread: #3949ab;
  --on-thread: #ffffff;
  --font-note: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161d;
    --shelf: #1a1d26;
    --ink: #e1e4ec;
    --ink-2: #a2a8b9;
    --ink-3: #686e81;
    --rule: #282c37;
    --thread: #9daaf6;
    --on-thread: #10131c;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { background: var(--paper); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-inline: 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main, footer { width: 100%; max-width: 34rem; margin-inline: auto; }
main { flex: 1; display: flex; flex-direction: column; gap: 28px; padding-block: 16vh 64px; }
a { color: var(--thread); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 2px; }

/* start page */
.brand { display: flex; flex-direction: column; gap: 10px; }
.wordmark { font-family: var(--font-note); font-weight: 600; font-size: clamp(2.6rem, 10vw, 3.6rem); letter-spacing: -0.02em; line-height: 1; }
.wordmark span { color: var(--thread); font-style: italic; }
.tagline { font-weight: 300; font-size: clamp(1.25rem, 4.2vw, 1.6rem); letter-spacing: 0.015em; line-height: 1.3; color: var(--ink-2); }
.lede { color: var(--ink-2); }
.notice { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid var(--rule); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.notice h2 { font-family: var(--font-note); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.notice p { color: var(--ink-2); }
.name { white-space: nowrap; }
.button {
  align-self: flex-start;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--thread);
  color: var(--on-thread);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* legal notice and privacy policy */
.legal main { display: block; padding-block: 48px 64px; }
.legal .wordmark { display: inline-block; margin-bottom: 48px; font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.legal h1 { font-family: var(--font-note); font-size: 2.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.legal h1 + .lede { margin-top: 8px; }
.legal h2 { margin-top: 36px; margin-bottom: 8px; font-family: var(--font-note); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.legal p + p, .legal p + ul, .legal ul + p, .legal address + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 4px; }
.legal address { font-style: normal; }
.legal .highlight { margin-top: 36px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 8px; background: var(--shelf); }
.legal .highlight h2 { margin-top: 0; }
.updated { margin-top: 40px; font-size: 0.8125rem; color: var(--ink-3); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-block: 24px 32px; font-size: 0.8125rem; color: var(--ink-3); }
footer nav { display: flex; gap: 18px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink-2); text-decoration: underline; }
