/* =========================================================
   Pink Magnolias — site styles
   Colors and fonts are set here. Change a value once and it
   updates everywhere on the site.
   ========================================================= */

:root {
  --pink: #F4C9D5;
  --pink-pale: #FFF5F8;
  --pink-deep: #E7A9BB;      /* decorative only, never body text */
  --black: #111111;
  --ink-soft: #3A3A3A;
  --white: #FFFFFF;
  --silver: #C0C0C0;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5.75rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --max: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-sm); max-width: 62ch; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--pink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--black); color: var(--white);
  padding: 0.75rem 1rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
  cursor: pointer;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #2b2b2b; }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-pink { background: var(--pink); color: var(--black); border-color: var(--pink); }
.btn-pink:hover { background: var(--white); border-color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--black);
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
}
/* When a logo image is added, it uses this class */
.brand-logo { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-md); }
.nav-list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 0.6rem 0.8rem;
  font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--black);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--pink-deep); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--black); }
.nav .btn { min-height: 46px; padding: 0.6rem 1.25rem; font-size: var(--text-sm); }

.menu-toggle {
  display: none;
  background: none; border: 2px solid var(--black); border-radius: var(--radius);
  width: 48px; height: 48px; padding: 0; cursor: pointer; color: var(--black);
}
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    padding: var(--space-sm) 1.25rem var(--space-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 0.9rem 0.25rem; font-size: 1rem; border-bottom: 1px solid rgba(17,17,17,0.08); }
  .nav-list a[aria-current="page"] { border-bottom-color: rgba(17,17,17,0.08); font-weight: 700; }
  .nav .btn { margin-top: var(--space-sm); min-height: 52px; font-size: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-xl); }
.bg-white { background: var(--white); }
.bg-pale { background: var(--pink-pale); }
.bg-pink { background: var(--pink); }
.bg-black { background: var(--black); color: var(--white); }
.bg-black .eyebrow { color: var(--pink); }
.bg-black p { color: rgba(255,255,255,0.88); }
.bg-black a:not(.btn) { color: var(--pink); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
}
.hero::after {
  /* restrained shimmer texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(192,192,192,0.18) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-lg); align-items: center; }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--pink); font-weight: 500; }
.hero-lead { font-size: var(--text-lg); color: rgba(255,255,255,0.9); max-width: 46ch; }
.hero-art { justify-self: end; width: min(100%, 380px); color: var(--pink); opacity: 0.95; }
.hero-art .stroke-silver { stroke: var(--silver); }
.hero-rule { width: 64px; height: 2px; background: var(--silver); margin: var(--space-md) 0; border: 0; }

.page-hero { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.5rem); max-width: 18ch; }
.page-hero .hero-grid { grid-template-columns: 1.6fr 1fr; }
.page-hero .hero-art { width: min(100%, 280px); }

@media (max-width: 820px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* Split / intro */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-xl); align-items: start; }
.split h2 { max-width: 12ch; }
.lead { font-size: var(--text-lg); line-height: 1.6; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--space-md); } }

/* Feature blocks */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.feature {
  background: var(--white); padding: var(--space-lg) var(--space-md);
  border-top: 3px solid var(--black);
}
.feature-num {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: 0.1em; display: block; margin-bottom: var(--space-sm);
}
.feature h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); }
.feature p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Preview cards */
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.preview {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg); border: 1px solid rgba(17,17,17,0.14); background: var(--white);
}
.preview h3 { margin-bottom: 0.5rem; }
.preview p { color: var(--ink-soft); margin: 0; }
.text-link {
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; display: inline-flex; gap: 0.4rem; align-items: center;
}
.text-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 820px) { .previews { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; font-size: var(--text-lg); }
.cta-band .btn-row { justify-content: center; }

/* Sponsors */
.sponsor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md);
  list-style: none; padding: 0; margin: var(--space-lg) 0 0;
}
.sponsor-card {
  background: var(--white); border: 1px solid rgba(17,17,17,0.12);
  display: flex; flex-direction: column;
}
.sponsor-logo {
  height: 240px; display: flex; align-items: center; justify-content: center;
  padding: var(--space-md); background: var(--white);
}
.sponsor-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  padding: var(--space-sm) var(--space-md); border-top: 1px solid rgba(17,17,17,0.1); margin: 0; margin-top: auto;
}
.sponsor-name a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .sponsor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sponsor-grid { grid-template-columns: 1fr; } }

.email-line { font-weight: 600; font-size: var(--text-lg); margin-top: var(--space-sm); }
.email-line a { text-decoration: underline; text-underline-offset: 5px; word-break: break-word; }

/* Join */
.callout {
  background: var(--white); border-left: 4px solid var(--black);
  padding: var(--space-lg); max-width: 760px;
}
.fine { font-size: var(--text-sm); color: var(--ink-soft); }

/* Philanthropy */
.org-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-xl); align-items: center; }
.org-logo { background: var(--white); padding: var(--space-lg); border: 1px solid rgba(17,17,17,0.12); }
@media (max-width: 820px) { .org-feature { grid-template-columns: 1fr; gap: var(--space-lg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-block: var(--space-xl) var(--space-lg); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid rgba(192,192,192,0.35); }
.footer-name { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0; line-height: 1.1; }
.footer-tag { color: var(--pink); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; margin: 0.25rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-links a { color: var(--white); text-decoration: none; padding: 0.2rem 0; display: inline-block; }
.footer-links a:hover { color: var(--pink); text-decoration: underline; }
.footer-email a { color: var(--pink); font-weight: 600; text-underline-offset: 4px; }
.footer-bottom { padding-top: var(--space-md); font-size: var(--text-sm); color: rgba(255,255,255,0.75); }
.footer-bottom p { margin: 0; max-width: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.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; }
