/*
 * The public site: a landing page and the two privacy policies. Colours are the app's own
 * palette (app/theme/tokens.ts) so the page a member opens from the profile screen does not
 * look like it belongs to someone else. The app's fonts are not: Geist and Instrument Serif
 * are bundled into the binary, and a web font here would be a third-party request on a page
 * whose whole subject is that CourtSpot does not make third-party requests.
 */

:root {
  --bg: #F4EFE7;
  --surface: #FBF8F2;
  --ink: #1B1612;
  --ink-soft: #5C5247;
  --ink-mute: #9A8E7E;
  --line: rgba(27, 22, 18, 0.10);
  --primary: #B5532C;
  --primary-wash: rgba(181, 83, 44, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100E;
    --surface: #1D1815;
    --ink: #F2EBE1;
    --ink-soft: #BCB0A2;
    --ink-mute: #8A7F72;
    --line: rgba(242, 235, 225, 0.12);
    --primary: #E08355;
    --primary-wash: rgba(224, 131, 85, 0.14);
  }
}

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

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

header img { width: 40px; height: 40px; border-radius: 10px; }
header .name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 16px; margin: 24px 0 4px; color: var(--ink); }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { text-decoration: none; }

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

.langs { font-size: 15px; margin: 0 0 32px; }
.langs a { margin-right: 14px; }
.langs .current { color: var(--ink-mute); margin-right: 14px; }

/* The one thing on the page a reader should be able to find without reading: how to reach a human. */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }

.lede { font-size: 19px; color: var(--ink-soft); }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 15px;
}
footer a { color: var(--ink-soft); }

@media (max-width: 480px) {
  body { font-size: 16px; padding-bottom: 64px; }
  h1 { font-size: 25px; }
}
