/* ============================================================================
   readable.css — site-wide readability layer (2026-11-08)
   Loaded LAST in every page's <head>, so it overrides each page's own styles.
   - Base text ~20% larger (root 18px instead of 16px). Every font-size in the
     pages is in rem, with a 0.8rem floor, so this scales everything together.
   - Inter for body text (Space Grotesk is a display face, hard to read small).
   - Content uses the full window width instead of a narrow centred column.
   The light colour palette itself lives in each page's :root block.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html { font-size: 112.5% !important; }   /* 18px root */

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: max(1em, 0.9rem); }

/* Headings keep the brand face. */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }

/* Monospace uppercase labels are hard to read — use the body face, less tracking. */
th, label, .eyebrow, .section-label, .field label {
  font-family: 'Inter', system-ui, sans-serif !important;
  letter-spacing: 0.02em !important;
}

/* Table cells: a little more room. */
td, th { line-height: 1.5; }

/* ---- Width: use the screen, keep a comfortable side gutter -------------- */
:root { --maxw: 100%; }
main, .content, .container, .win, .bar, .section, .hero, .cta, .footer-in {
  max-width: 100% !important;
}
main, .content, .container { padding-left: clamp(16px, 2.5vw, 40px); padding-right: clamp(16px, 2.5vw, 40px); }

/* Long prose stays at a readable line length even in wide layouts. */
p { max-width: 80ch; }
td p, th p, li p, .card p, .tile p { max-width: none; }

/* Accounts app (Tailwind): "zinc-900" is the brand-pink fill — keep all text on it white. */
.bg-zinc-900, .bg-zinc-900 * { color: #fff !important; }
