/* Monarch Community Outreach — warm "monarch" design system
   Amber / charcoal / cream, Fraunces display + Inter body.
   Content is VISIBLE BY DEFAULT — no scroll-reveal, nothing gated on JS. */

:root {
  --ink: #1f2933;
  --ink-soft: #3a4550;
  --paper: #fbf7f0;
  --sand: #f3ece0;
  --sand-2: #e9dfcd;
  --amber: #b45309;
  --amber-2: #ea7317;
  --gold: #f59e0b;
  --sky: #2c7a9e;
  --sky-dark: #1e5a76;
  --muted: #6b5e4e;
  --line: #e3d8c6;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(31, 41, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 41, 51, 0.12);
  --shadow-lg: 0 24px 60px rgba(31, 41, 51, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --measure: 72ch;
  --maxw: 1160px;
}

/* Safeguard: never let content sit hidden waiting on JS (AOS-style bug guard). */
[data-aos] { opacity: 1 !important; transform: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-2); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.7em; }
h3 { font-size: 1.28rem; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { flex: 0 0 auto; }
.brand .brand-sub { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.96rem;
  padding: 8px 12px; border-radius: 9px; transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sand); color: var(--amber); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-amber:hover { background: var(--amber-2); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(180deg, rgba(31,41,51,0.15), rgba(31,41,51,0.72)), var(--ink);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,41,51,0.55), rgba(31,41,51,0.05)); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: clamp(64px, 12vw, 148px) 0; }
.hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero .lead { color: rgba(255,255,255,0.94); font-size: 1.25rem; text-shadow: 0 1px 12px rgba(0,0,0,0.35); max-width: 620px; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.85); }
.hero .btn-outline:hover { background: var(--white); color: var(--ink); }

/* ---------- Page banner (interior) ---------- */
.page-banner { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-banner-inner { max-width: var(--measure); padding: clamp(40px, 7vw, 74px) 0 clamp(28px, 4vw, 40px); }
.page-banner .lead { color: var(--muted); font-size: 1.22rem; margin-bottom: 0; }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }

.lead { font-size: 1.24rem; color: var(--ink-soft); }

/* ---------- Main content ---------- */
main { display: block; }
.content { max-width: var(--measure); padding: clamp(34px, 6vw, 60px) 0 20px; }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.content li { margin-bottom: 0.5em; }
.content li::marker { color: var(--amber); }
.content a { text-decoration: underline; text-decoration-color: rgba(180, 83, 9, 0.35); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: var(--amber-2); }
.content h2 { position: relative; padding-top: 6px; }
.disclaimer { background: var(--sand); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 0.98rem; }

/* Figures / inline images */
.page-figure { margin: 6px 0 34px; }
.page-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 16px; max-width: 560px; margin: 8px 0 12px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--white); color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.contact-form button { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7dde3; margin-top: 60px; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 14px; }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer p { color: #aab4bd; font-size: 0.94rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #c3ccd4; font-size: 0.94rem; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid #333f4a; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #8b96a0; font-size: 0.86rem; }
.footer-bottom .indep { max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
