/* Free Financial Coaching — shared site styles.
   Layout: slim top nav, one centered reading column (760px), quiet footer. */
:root {
  --bg: #f3f5f2; --surface: #ffffff; --fg: #1d2420; --muted: #5f6b64; --line: #d9dfda;
  --accent: #1f6f5c; --accent-ink: #ffffff; --tint: #e3eee9;
  --income: #2f9e5b; --pre: #23919a; --save: #2f74c0; --bills: #d9822b; --left: #7b5cc4; --neg: #c8463d;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121614; --surface: #1b211e; --fg: #e8ede9; --muted: #9aa6a0; --line: #2e3833;
  --accent: #4fb397; --accent-ink: #0d1411; --tint: #1f2c27;
  --income: #4cc27a; --pre: #45bcc5; --save: #5b9be0; --bills: #eba158; --left: #a68bea; --neg: #ef7a70; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #121614; --surface: #1b211e; --fg: #e8ede9; --muted: #9aa6a0; --line: #2e3833;
  --accent: #4fb397; --accent-ink: #0d1411; --tint: #1f2c27;
  --income: #4cc27a; --pre: #45bcc5; --save: #5b9be0; --bills: #eba158; --left: #a68bea; --neg: #ef7a70; color-scheme: dark }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.column { max-width: 760px; margin: 0 auto; }

/* Header + navigation */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .column { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--fg); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--tint); }

/* Reading content */
main { padding-block: 36px 56px; }
.prose { display: grid; gap: 14px; }
.prose h1 { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.prose h2 { font-family: var(--display); font-size: 1.35rem; line-height: 1.25; margin: 24px 0 0; text-wrap: balance; }
.prose h3 { font-size: 1.05rem; margin: 12px 0 0; }
.prose p, .prose ul, .prose ol { margin: 0; max-width: 65ch; }
.prose li + li { margin-top: 4px; }
.lede { font-size: 1.12rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; max-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.note { background: var(--tint); border-radius: 10px; padding: 14px 16px; }
.placeholder { border: 2px dashed var(--bills); border-radius: 10px; padding: 14px 16px; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.88rem; }
.site-footer .column { display: grid; gap: 8px; padding-block: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer p { margin: 0; max-width: 65ch; }
