/* The public pages' one stylesheet.
 *
 * The colours are design/STYLE.md's shelf-light and shelf-dark token sets,
 * named here rather than typed into each page for the reason the app's theme
 * layer exists: one of them changing is one edit.
 *
 * No web font and no external request of any kind. A privacy policy that pulls
 * a stylesheet from somebody else's CDN is telling on itself. */

:root {
  --bg-canvas: #f6f6f4;
  --bg-elevated: #ffffff;
  --bg-subtle: #e9eae6;
  --fg-primary: #161a19;
  --fg-secondary: #5b615f;
  --fg-tertiary: #8b918f;
  --border: #dddfdb;
  --accent: #0e6270;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: #1a1e1e;
    --bg-elevated: #252a2a;
    --bg-subtle: #303636;
    --fg-primary: #edf0ee;
    --fg-secondary: #afb6b4;
    --fg-tertiary: #808886;
    --border: #39403f;
    --accent: #58bacb;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--bg-canvas);
  color: var(--fg-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

header {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

.wordmark {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
  text-decoration: none;
}

h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  color: var(--fg-secondary);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li strong {
  color: var(--fg-primary);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lede {
  font-size: 1.1875rem;
  color: var(--fg-primary);
}

.meta {
  color: var(--fg-tertiary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem 1.375rem;
  margin: 1.5rem 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0 2rem;
}

footer {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--fg-tertiary);
  font-size: 0.9375rem;
}

footer a {
  color: var(--fg-tertiary);
}

footer nav {
  margin-bottom: 0.75rem;
}

footer nav a {
  margin-right: 1rem;
}
