/*
 * five-a-day.app — the whole stylesheet.
 *
 * Built from the app's own tokens (packages/shared/src/tokens.ts) so the site reads as the same
 * product: warm paper, near-black ink, one cobalt for everything tappable. The system font on every
 * platform, as in the app (D-030) — SF on Apple, Roboto on Android. No web fonts, no scripts, no
 * cookies, no analytics.
 */

:root {
  --paper: #FBFAF7;
  --ink: #151515;
  --ink-muted: #5C5953;
  --ink-faint: #706D67;
  --rule: #E3E0D9;
  --accent: #3F5BD8;       /* links and anything tappable */
  --accent-fill: #3F5BD8;  /* the one filled button */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111111;
    --ink: #F5F3EC;
    --ink-muted: #B5B1A8;
    --ink-faint: #96928A;
    --rule: #2A2A2A;
    --accent: #7B93FF;       /* lifted for text on a dark ground, as in the app */
    --accent-fill: #3157FF;  /* the identity cobalt stays full-strength on buttons (tokens.ts) */
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.folio {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- landing */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 24px;
  max-width: 34rem;
  margin: 0 auto;
}

.marks { display: flex; gap: 8px; margin: 28px 0 32px; }
.marks span {
  width: 14px; height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.marks span.filled { background: var(--ink); }

.lede {
  font-size: 28px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
}
/* One line of thought per line; each balances on its own, so a narrow phone breaks
   "The same five / for everyone." rather than stranding a single word. */
.lede span { display: block; text-wrap: balance; }

.sub { color: var(--ink-muted); margin: 0 0 40px; }

.actions { display: flex; flex-direction: column; gap: 14px; margin: 0 0 56px; }
.actions .primary {
  display: block;
  text-align: center;
  background: var(--accent-fill);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 20px;
  border-radius: 12px;
}
.actions .later { color: var(--ink-faint); font-size: 15px; text-align: center; }

.foot {
  display: flex; gap: 20px;
  font-size: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

/* ------------------------------------------------------------ text pages */

.page { max-width: 38rem; margin: 0 auto; padding: 40px 24px 80px; }
.page header { margin-bottom: 40px; }
.page h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.3px; margin: 28px 0 6px; }
.page h2 { font-size: 19px; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink); }
.page .meta { color: var(--ink-faint); font-size: 15px; margin: 0; }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }
.page footer { margin-top: 56px; }
