/* nookbudget.app: Nook's colours (nook/src/theme/tokens.ts) and font, served from this site (no Google Fonts, no trackers). */
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/Nunito_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/Nunito_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/fonts/Nunito_900Black.ttf') format('truetype'); }

:root {
  --bg: #FBF9F6; --surface: #FFFFFF; --text: #1C1915; --muted: #5C544A; --line: #ECE7E0;
  --primary: #6E3BFF; --primary-soft: #E6DEFF;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15120F; --surface: #211D19; --text: #F5F2ED; --muted: #B8AFA3; --line: #3A332C; --primary: #AE93FF; --primary-soft: #381594; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 600;
  font-size: 17px; line-height: 1.6;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin: 0 auto; padding: 20px 20px 0; }
.wordmark { font-weight: 900; font-size: 32px; letter-spacing: -1px; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-weight: 800; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--primary); }
h1 { font-weight: 900; font-size: 34px; line-height: 1.2; letter-spacing: -0.5px; margin: 8px 0 4px; }
h2 { font-weight: 900; font-size: 22px; margin: 36px 0 8px; }
h3 { font-weight: 800; font-size: 18px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
a { color: var(--primary); }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 20px 24px; margin: 20px 0; }
.hero { text-align: center; padding: 48px 0 16px; }
.hero .wordmark { font-size: 64px; letter-spacing: -2px; }
.tagline { font-size: 20px; color: var(--muted); margin: 8px 0 32px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-block; background: var(--primary-soft); color: var(--text); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; min-height: 44px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--line); font-size: 15px; }
th { font-weight: 900; }
footer { max-width: 720px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { nav a { margin-left: 10px; font-size: 14px; } h1 { font-size: 28px; } }
