/* ==========================================================================
   FAITHSTASH — Design System
   Peaceful + Intelligent + Modern + Spiritual + Premium + Accessible.
   ========================================================================== */

:root {
  /* -- Color system (light) — FaithStash brand palette ------------------ */
  /* Primary: Stash Navy — depth, trust, wisdom, stability */
  --color-primary: #17243A;
  --color-primary-light: #253957;
  --color-primary-dark: #0D1422;    /* Midnight, also the dark-mode base */
  /* Accent: Harvest Gold — treasure, wisdom, value, light. Use sparingly. */
  --color-accent: #C7A45A;
  --color-accent-light: #D8BC7D;
  /* Secondary: Sage — growth, peace, life */
  --color-sage: #718477;
  --color-sage-light: #8FA093;
  /* Background: Scripture Ivory — warm, softer than pure white */
  --color-cream: #F7F4EC;
  --color-cream-deep: #ECE6D6;
  --color-white: #ffffff;
  --color-gray-50: #f8f8f7;
  --color-gray-100: #efeeec;
  --color-gray-200: #e2ded2;
  --color-gray-400: #a5a190;
  --color-gray-600: #6b6858;
  --color-charcoal: #211d17;

  --bg: var(--color-cream);
  --bg-elevated: var(--color-white);
  --bg-subtle: var(--color-cream-deep);
  --text: var(--color-charcoal);
  --text-muted: var(--color-gray-600);
  --text-inverse: var(--color-white);
  --border: var(--color-gray-200);
  --link: var(--color-primary);
  --shadow-color: 220 30% 10%;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --font-serif: 'Cormorant Garamond', Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.06), 0 1px 1px hsl(var(--shadow-color) / 0.04);
  --shadow-md: 0 4px 16px hsl(var(--shadow-color) / 0.08), 0 2px 6px hsl(var(--shadow-color) / 0.05);
  --shadow-lg: 0 12px 32px hsl(var(--shadow-color) / 0.14);

  /* Theme-aware component tokens — set once here and re-pointed in the two
     dark blocks below, so every dark-mode color lives in ONE place instead
     of needing its own `:root[data-theme="dark"] .selector` override (easy
     to add correctly, easy to forget under the system-preference variant —
     see the two dark blocks below for why both matter). */
  --stat-highlight: var(--color-primary);
  --verse-highlight-bg: #f4e3b0;
  --alert-success-bg: #e5f5ea;
  --alert-success-text: #1e6b3c;
  --alert-error-bg: #fbeaea;
  --alert-error-text: #a3312a;
  --nav-active: var(--color-primary);

  color-scheme: light;
}

/* Dark mode: Midnight (#0D1422) with warm off-white typography. Gold stays
   an accent, never the dominant color, in either mode. */
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #0D1422;
    --bg-elevated: #161f30;
    --bg-subtle: #1b2638;
    --text: #F3EFE4;
    --text-muted: #ada895;
    --border: #2a3651;
    --link: #D8BC7D;
    --shadow-color: 220 60% 2%;
    color-scheme: dark;

    --stat-highlight: var(--color-accent-light);
    --verse-highlight-bg: #4a3d18;
    --alert-success-bg: #113322;
    --alert-success-text: #7fd9a0;
    --alert-error-bg: #3a1a18;
    --alert-error-text: #f2a29c;
    --nav-active: var(--color-accent-light);
  }
}

:root[data-theme="dark"] {
  --bg: #0D1422;
  --bg-elevated: #161f30;
  --bg-subtle: #1b2638;
  --text: #F3EFE4;
  --text-muted: #ada895;
  --border: #2a3651;
  --link: #D8BC7D;
  --shadow-color: 220 60% 2%;
  color-scheme: dark;

  --stat-highlight: var(--color-accent-light);
  --verse-highlight-bg: #4a3d18;
  --alert-success-bg: #113322;
  --alert-success-text: #7fd9a0;
  --alert-error-bg: #3a1a18;
  --alert-error-text: #f2a29c;
  --nav-active: var(--color-accent-light);
}

/* -- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-suspenders: no single stray element can force a horizontal scrollbar on mobile — doesn't affect the sticky navbar, which only sticks vertically */
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
button { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff;
  padding: .75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* -- Layout ----------------------------------------------------------------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.grid { display: grid; gap: 1.25rem; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Content + sidebar layouts (dashboard, group page, bible study, support,
   book detail, AI chat…) — was ad-hoc `style="grid-template-columns:2fr 1fr"`
   per page, which never collapsed on mobile and pushed content off-screen.
   One responsive pair, used everywhere that shape appears. */
.grid-sidebar { grid-template-columns: 2fr 1fr; }
.grid-sidebar-left { grid-template-columns: 1fr 2fr; }
@media (max-width: 860px) { .grid-sidebar, .grid-sidebar-left { grid-template-columns: 1fr; } }
.flex { display: flex; align-items: center; min-width: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; min-width: 0; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: .5rem; } .gap-md { gap: 1rem; } .gap-lg { gap: 1.5rem; }
.stack > * + * { margin-top: 1rem; }

/* -- App chrome: top navbar -------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--text); }
/* The FaithStash mark — a stylized "F" whose stem is a bookmark ribbon
   (Harvest Gold) and whose arms are Scripture Ivory pages, on a Stash
   Navy field. Rendered once as CSS so every `.brand-mark` usage across
   the app (navbar, footer, admin, installer) stays in sync automatically. */
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background-color: #17243A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='30,20 47,20 47,74 38.5,82 30,74' fill='%23C7A45A'/%3E%3Crect x='30' y='20' width='45' height='13' rx='2' fill='%23F7F4EC'/%3E%3Crect x='30' y='44' width='33' height='13' rx='2' fill='%23F7F4EC'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}
/* An admin-uploaded logo (Admin → Settings → Branding) replaces the CSS
   brand-mark above in the header and footer — sized to sit comfortably in
   both without knowing the uploaded image's own aspect ratio. */
.brand-logo-img { height: 34px; max-width: 180px; width: auto; object-fit: contain; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .95rem; }
.nav-links a.active, .nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.mobile-nav-toggle { display: none; }
.nav-links-auth { display: none; } /* shown only inside the mobile dropdown panel — see the media query below */
@media (max-width: 860px) {
  .navbar-inner { position: relative; flex-wrap: wrap; }
  /* The toggle is already first in the DOM (for a screen reader tabbing
     through nav-actions), but visually it belongs at the outer right edge
     — the standard spot for a hamburger. order:-1 previously pinned it to
     the *left* of the theme toggle and the guest Log In/Start Growing
     buttons, so on a phone it sat buried in the middle of a crowded row
     instead of the corner people actually tap. A high order pushes it past
     every sibling (theme toggle, and either notifications+account or
     Log In/Start Growing) regardless of how many there are. */
  .mobile-nav-toggle { display: inline-flex; order: 10; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: .5rem 1.25rem calc(.75rem + env(safe-area-inset-bottom));
    max-height: calc(100vh - 100%); overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .75rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links a:last-child { border-bottom: none; }

  /* Guests, logo centered: Log In/Start Growing move into the dropdown
     panel below (.nav-links-auth) on mobile, leaving just the theme
     toggle + hamburger in the top bar — "Log In" + "Start Growing" as
     full text buttons are too wide to fit next to a centered logo on a
     phone screen, so freeing that room is what actually makes centering
     possible rather than just repositioning the logo on top of them.
     A logged-in user's brand mark stays top-left (unchanged): their
     right-side cluster (notifications + avatar) is compact enough that
     it was never the problem. */
  body[data-logged-in="0"] .navbar .guest-cta {
    display: none;
  }
  body[data-logged-in="0"] .navbar .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  /* Taking .brand out of flow above leaves .nav-actions as the only real
     flex child while the nav-links panel is closed — .navbar-inner's
     justify-content:space-between has nothing left to space it *from*,
     so without this it collapses back to the left instead of staying
     pinned to the right edge. */
  body[data-logged-in="0"] .navbar .nav-actions {
    margin-left: auto;
  }

  /* The mobile-only duplicate of Log In/Start Growing inside the dropdown
     panel (see partials/navbar.php) — hidden everywhere else since the
     panel itself only ever renders open on this breakpoint. */
  .nav-links-auth {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding-top: .75rem;
    margin-top: .25rem;
    border-top: 1px solid var(--border);
  }
}

/* -- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .65rem 1.3rem; border-radius: var(--radius-full); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #241c04; }
.btn-accent:hover { background: var(--color-accent-light); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--color-accent); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-subtle); text-decoration: none; }
.btn-sage { background: var(--color-sage); color: #fff; }
.btn-sage:hover { background: var(--color-sage-light); text-decoration: none; }
.pill-sage { background: var(--color-sage); color: #fff; }
.pill-gold { background: var(--color-accent); color: #241c04; }
.text-sage { color: var(--color-sage); }
.text-accent { color: var(--color-accent); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* -- Cards ------------------------------------------------------------------ */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card-hover { transition: box-shadow .18s ease, transform .18s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Insight card — the signature Deepstash-style discovery component */
.insight-card { display: flex; flex-direction: column; gap: .9rem; }
.insight-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); font-weight: 700; }
.insight-text { font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.45; color: var(--text); }
.insight-verse { padding: .85rem 1rem; background: var(--bg-subtle); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.insight-verse-ref { font-weight: 700; font-size: .82rem; color: var(--stat-highlight); }
.insight-verse-text { font-style: italic; color: var(--text-muted); margin-top: .2rem; }
.insight-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: var(--radius-full); background: var(--bg-subtle); font-size: .78rem; color: var(--text-muted); }
.insight-actions { display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; border-top: 1px solid var(--border); }
.icon-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .85rem; font-weight: 600; padding: .3rem .5rem; border-radius: var(--radius-sm); }
.icon-btn:hover { color: var(--text); background: var(--bg-subtle); }
.icon-btn.is-active { color: var(--color-accent); }

/* Generic content cards (book, study, devotional, topic, collection...) */
.content-card { display: flex; flex-direction: column; overflow: hidden; }
.content-card img.cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-md); background: var(--bg-subtle); }
.content-card h3 { font-size: 1.05rem; margin: .75rem 0 .25rem; }
.content-card .muted { color: var(--text-muted); font-size: .85rem; }

/* -- Forms ------------------------------------------------------------------ */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"],
input[type="search"], textarea, select {
  width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: .95rem; font-family: inherit;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus { border-color: var(--color-accent); }
.field { margin-bottom: 1.1rem; }
.field-help { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.field-error { font-size: .8rem; color: #c0392b; margin-top: .3rem; }
.checkbox-row { display: flex; align-items: center; gap: .55rem; }
.checkbox-row input { width: auto; }

/* Choice chips (onboarding) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.choice-chip {
  display: block; padding: 1rem 1.1rem; border-radius: var(--radius-md); border: 2px solid var(--border);
  background: var(--bg-elevated); cursor: pointer; font-weight: 600; transition: border-color .15s;
}
.choice-chip:has(input:checked) { border-color: var(--color-accent); background: var(--bg-subtle); }
.choice-chip input { position: absolute; opacity: 0; }

/* -- Alerts / flash ----------------------------------------------------------- */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: var(--alert-success-bg); color: var(--alert-success-text); }
.alert-error { background: var(--alert-error-bg); color: var(--alert-error-text); }
.alert-info { background: var(--bg-subtle); color: var(--text); }

/* -- Progress ------------------------------------------------------------------ */
.progress-track { height: 8px; border-radius: var(--radius-full); background: var(--bg-subtle); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); border-radius: var(--radius-full); }
.stat-tile { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem; text-align: center; }
.stat-tile .num { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--stat-highlight); }
.stat-tile .label { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }

/* -- Bottom mobile nav ---------------------------------------------------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
}
.bottom-nav-inner { display: flex; justify-content: space-around; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .68rem; color: var(--text-muted); padding: .3rem .5rem; border-radius: var(--radius-sm); }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--nav-active); text-decoration: none; }
.bottom-nav svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 64px; }
}

/* -- Bible reading surface -------------------------------------------------------- */
.bible-reader { font-size: 1.1rem; line-height: 2; }
.bible-reader.font-sm { font-size: .95rem; }
.bible-reader.font-lg { font-size: 1.3rem; }
.bible-reader.font-xl { font-size: 1.55rem; }
.verse { padding: .1rem .2rem; border-radius: 4px; cursor: pointer; }
.verse:hover { background: var(--bg-subtle); }
.verse.highlighted { background: var(--verse-highlight-bg); }
.verse-num { font-size: .68em; color: var(--color-accent); font-weight: 700; vertical-align: super; margin-right: .15rem; }

/* -- Footer ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 3rem 0 6rem; background: var(--bg-subtle); }
.site-footer a { color: var(--text-muted); }

/* Social icon row below the footer logo (Admin -> Settings -> Social
   Links). flex-wrap keeps it from overflowing on narrow phone widths
   without any breakpoint of its own — a handful of 34px circles plus a
   pill or two always fit on one or two soft-wrapped lines. */
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .9rem; }
.footer-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-elevated); color: var(--text-muted);
  border: 1px solid var(--border);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-social-icon:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; text-decoration: none; }
.footer-social-extra {
  font-size: .8rem; font-weight: 500; padding: .4rem .75rem; border-radius: 999px;
  background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.footer-social-extra:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; text-decoration: none; }

/* -- Misc utility ------------------------------------------------------------------ */
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0{margin-top:0} .mt-1{margin-top:.5rem} .mt-2{margin-top:1rem} .mt-3{margin-top:1.5rem} .mt-4{margin-top:2.5rem}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:.5rem} .mb-2{margin-bottom:1rem} .mb-3{margin-bottom:1.5rem} .mb-4{margin-bottom:2.5rem}
.hidden { display: none !important; }
.badge-demo { background: var(--color-accent); color: #241c04; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .04em; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-muted); }
.skeleton { background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Toast */
.toast-stack { position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--color-primary); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: .88rem; animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .toast-stack { bottom: 5rem; left: 1rem; right: 1rem; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,15,25,.55); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }
.modal { background: var(--bg-elevated); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1.5rem; width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; }
@media (min-width: 640px) { .modal { border-radius: var(--radius-lg); } }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; background: radial-gradient(circle at top right, var(--bg-subtle), var(--bg) 60%); }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; }
