/* FamilyShine — static site.
 *
 * Tokens mirror app/src/lib/styles/familyshine-tokens.css (night scope only —
 * the site is dark-by-default like the app, and a two-page site has no theme
 * toggle to honour). Values are COPIED rather than imported: this site has no
 * build step and must stay a folder of static files. If the DS palette moves,
 * update here too — there is no drift test for this one.
 *
 * Fonts are self-hosted. Deliberate: a privacy policy that phones Google Fonts
 * on load leaks the reader's IP to a third party, which is both a bad look and
 * a well-litigated GDPR problem. This site makes ZERO third-party requests.
 */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night-0: #0b0d14;
  --night-1: #11131c;
  --night-2: #181b26;
  --night-3: #222634;
  --sun-300: #f6c063;
  --sun-400: #f2a63c;

  --text-strong: #f4f1ea;
  --text-body: #cfc9bd;
  --text-muted: #9a917f;

  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--night-0);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---- header ---- */
.site-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 40px 0 32px;
}
.site-head img { width: 44px; height: 44px; border-radius: 10px; }
.site-head a { text-decoration: none; }
.brand {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

/* ---- type ---- */
h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 24px 0 12px;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.25;
  color: var(--text-strong);
  margin: 48px 0 12px;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-strong);
  margin: 30px 0 8px;
}
p, li { max-width: var(--measure); }
strong { color: var(--text-strong); font-weight: 600; }

a { color: var(--sun-400); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun-300); }

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.updated {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

/* ---- blocks ---- */
.card {
  background: var(--night-1);
  border: 1px solid var(--night-3);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.card p:last-child { margin-bottom: 0; }
.card p:first-child { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--night-3);
  vertical-align: top;
}
th { color: var(--text-strong); font-weight: 600; }

ul { padding-left: 22px; }
li { margin: 6px 0; }
li::marker { color: var(--sun-400); }

/* ---- footer ---- */
.site-foot {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--night-3);
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-foot a { color: var(--text-muted); }
.site-foot a:hover { color: var(--sun-400); }

/* ---- index only ---- */
.hero { padding: 26px 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.links a {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--night-3);
  border-radius: 999px;
  background: var(--night-1);
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.links a:hover { border-color: var(--sun-400); color: var(--sun-300); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease, border-color 120ms ease; }
}
