/* ==========================================================
   The Kristin Rose Foundation
   Brand colors live here. The logo and rose icon SVGs in
   images/ use #8b6fc4; the pattern uses #9b7fd1.
   ========================================================== */
:root {
  --violet: #7c5cb8;        /* buttons & links (readable with white text) */
  --violet-light: #9b7fd1;  /* decorative accents */
  --violet-dark: #5a3f8e;   /* hover states, quotes */
  --lavender: #f1ecf8;      /* light section background */
  --gold: #b9772a;
  --ink: #2e2a27;
  --muted: #6b635d;
  --cream: #fbf8f4;
  --sand: #f5eee6;
  --white: #ffffff;

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(46, 42, 39, 0.08);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
figure { margin: 0; }

a { color: var(--violet); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border: 2px solid var(--violet);
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font: 700 0.95rem var(--font-body);
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.btn-outline { background: transparent; border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--violet); }
.btn-ghost:hover { background: var(--violet); color: var(--white); }
.btn-small { padding: 0.5em 1.3em; font-size: 0.85rem; }

.donate-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.donate-note::before { content: "🔒 "; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(46, 42, 39, 0.07);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-logo { height: 26px; width: auto; }
.brand-sub, .footer-sub {
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  padding-left: 0.5em; /* balances letter-spacing so the word stays centered */
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}
.site-nav a:not(.btn):hover { color: var(--violet); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 22, 20, 0.78) 0%, rgba(30, 22, 20, 0.5) 50%, rgba(30, 22, 20, 0.1) 100%);
}
.hero-content { position: relative; padding: 96px 0; }
.hero-content h1 { max-width: 14ch; }
.hero .eyebrow { color: #f3c98f; }
.lead { font-size: 1.2rem; max-width: 30em; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .donate-note { color: rgba(255, 255, 255, 0.85); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-lavender { background: var(--lavender); }
.section-cream { background: var(--sand); }
.lead-dark { font-size: 1.15rem; color: var(--muted); }

/* Faint floral pattern from the Kristin Rose artwork */
.has-pattern { overflow: hidden; }
.has-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/pattern.svg") center / 900px auto repeat;
  opacity: 0.07;
  pointer-events: none;
}
.has-pattern > .container { position: relative; }

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.story-reverse { grid-template-columns: 7fr 5fr; }
.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.pull-line {
  margin: 1.4em 0 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--violet-light);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--violet-dark);
}


/* ---------- Mission ---------- */
.mission-icon { width: 56px; margin: 0 auto 20px; }

/* ---------- What we've built ---------- */
.built {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.built-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.built-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.built-card > .well-photo { object-position: center 45%; }
.built-body { padding: 28px 30px 32px; }
.built-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.built-body h3 { margin-top: 4px; }
.built-body p { color: var(--muted); margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.beginning {
  margin: 56px 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--violet-dark);
}

/* ---------- Get involved ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.help-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.help-item-main { border-top: 4px solid var(--violet-light); }
.help-item > p:not(.donate-note) { color: var(--muted); flex: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(46, 42, 39, 0.08);
  color: var(--muted);
  padding: 48px 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-inner > div:first-child { display: flex; flex-direction: column; align-items: center; }
.footer-logo { height: 30px; width: auto; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 0.3em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .story, .story-reverse { grid-template-columns: 1fr; gap: 40px; }
  .story-reverse .story-photo { order: -1; }
  .story-photo { max-width: 440px; }
  .built, .help-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child img { aspect-ratio: 16 / 10; object-position: center 30%; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 24px 16px 32px;
    background: var(--cream);
    border-bottom: 1px solid rgba(46, 42, 39, 0.1);
    display: none;
  }
  .site-nav.open { display: flex; }
  .brand-logo { height: 22px; }
  .hero-overlay { background: rgba(30, 22, 20, 0.6); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}
