/* site/styles.css — the landing page.

   Dressed as the app, like the account page and the admin site — TODO.md
   item 205. Its colours are mobile-app/lib/palette.ts's, under the same
   names and values in both schemes, held there by scripts/check-invariants.js
   rule 23, which also refuses a colour written anywhere else in this file.
   Until 2026-10-09 it carried the account page's old neutrals around
   Canela, so it matched neither the app nor, once item 205 restyled it,
   the account page. */

/* The app's typefaces, copied in from web/vendor/fonts by
   infra/stage-site.sh rather than kept twice; web/styles.css says why
   they are served from the site and why `swap`. Only the weights this
   page sets: Nunito ExtraBold for the name, Roboto for the text. */
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-display: swap;
  src: url("vendor/fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-display: swap;
  src: url("vendor/fonts/nunito-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-weight: 400;
  font-display: swap;
  src: url("vendor/fonts/roboto-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-weight: 400;
  font-display: swap;
  src: url("vendor/fonts/roboto-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-weight: 500;
  font-display: swap;
  src: url("vendor/fonts/roboto-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-weight: 500;
  font-display: swap;
  src: url("vendor/fonts/roboto-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Pairs drawn: ink, muted and brand on surface — each in the app's
   contrastPairs, light and dark. */
:root {
  color-scheme: light dark;
  --surface: #FDFDFD;
  --ink: #1D1916;
  --muted: #746A63;
  --borderSoft: #ECEAE9;
  --brand: #7E4A26;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #151311;
    --ink: #EDEBE9;
    --muted: #AFA7A1;
    --borderSoft: #2F2B28;
    --brand: #E0A57C;
  }
}

* { box-sizing: border-box; }

/* The footer follows the text rather than being pinned to the foot of
   the screen: pinned, it sat a phone's height below two short
   paragraphs, which read as not being there — TODO.md item 207. */
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.6 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 1.5rem;
}

header { margin-bottom: 2rem; }

/* The disc the splash and the sign-in screen show — option A on the
   design canvas — so no rounding of its own. */
.icon {
  display: block;
  margin-bottom: 1.25rem;
}

h1 {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
}

.tagline {
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0.35rem 0 0;
}

p { margin: 0 0 1rem; }
.lede { font-size: 1.12rem; }

footer {
  max-width: 34rem;
  width: 100%;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  border-top: 1px solid var(--borderSoft);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

a { color: var(--brand); }
footer a { color: var(--muted); }

/* The privacy policy — TODO.md item 34. A document rather than a landing
   page: section headings in the text face, a smaller mark that links
   home, and lists that read as the policy's own sentences. */
.policy { padding-top: 2.5rem; }
.policy h1 { font-size: 2rem; }
.policy h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
}
.policy ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.policy li { margin-bottom: 0.4rem; }
.effective { color: var(--muted); margin: 0.35rem 0 0; }
