/* fourballer.com — one stylesheet, no build step, no external requests.
 *
 * Colours are copied from the app's design tokens (app/src/theme.js) so the
 * site and the app are recognisably the same product. Kept deliberately
 * plain: these are legal and support pages, and the job is legibility on a
 * phone, not decoration. No web fonts — a privacy policy must render even
 * when a font host is blocked, which is exactly the kind of place people read
 * one from. */

:root {
  --green: #1E6F3E;
  --green-dark: #14522C;
  --green-light: #E8F3EC;
  --ink: #1B1B1B;
  --grey: #6B7280;
  --line: #E5E7EB;
  --bg: #F4F5F4;
  --card: #FFFFFF;
  --amber-bg: #FEF3C7;
  --amber-fg: #92400E;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* The brand bar, same green as the app's top bars. */
header.bar {
  background: var(--green);
  padding: 18px 20px;
}
header.bar a.wordmark {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
}
header.bar .tag {
  color: #CFE4D6;
  font-size: 13px;
  margin-top: 2px;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 26px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 4px;
}
h2 {
  font-size: 1.1rem;
  margin: 1.9em 0 0.4em;
  padding-top: 0.5em;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 1rem; margin: 1.4em 0 0.3em; }

.updated {
  color: var(--grey);
  font-size: 0.85rem;
  margin: 0 0 1.4em;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

ul, ol { padding-left: 1.3em; }
li { margin: 0.3em 0; }

/* Wide content must scroll inside itself rather than pushing the page. */
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-light); }
.scroll { overflow-x: auto; }

/* The placeholder notice. Deliberately loud: a page that is not the real
 * document must never be mistakable for one. */
.notice {
  background: var(--amber-bg);
  color: var(--amber-fg);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  margin: 0 0 1.4em;
}
.notice strong { display: block; margin-bottom: 2px; }

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
nav.links a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px 44px;
  color: var(--grey);
  font-size: 0.85rem;
}
footer a { color: var(--grey); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEDEC;
    --grey: #9CA3AF;
    --line: #2C312E;
    --bg: #121513;
    --card: #1A1E1B;
    --green-light: #1E2A22;
    --amber-bg: #3A2F12;
    --amber-fg: #F4D694;
  }
  a { color: #6FBF86; }
  a:hover { color: #8FD3A2; }
  header.bar { background: var(--green-dark); }
}

/* Legal pages (#218). Bruce's documents are built from <section> blocks with
 * an in-page contents list; these give those the same card look the rest of
 * the site uses, rather than shipping his stylesheet alongside mine and
 * having two sources for one look. */
main > section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 16px;
  scroll-margin-top: 16px;
}
main > section h2 { border-top: 0; padding-top: 0; margin-top: 0; }
main > section h2:not(:first-child) { margin-top: 1.5em; }

nav.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
nav.toc a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
nav.toc a:hover { background: var(--green-light); }

blockquote {
  border-left: 4px solid #D4A017;
  background: var(--amber-bg);
  color: var(--amber-fg);
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
}
blockquote p:last-child { margin-bottom: 0; }
