/* ============================================================
   The Raspberry Collective
   Brand tokens (from the brand guide)
   Primary  #A91458  · raspberry magenta — headings, links, icons
   Accent   #C07090  · dusty rose — subheads, italics, the mark
   Bg       #F6F5F3  · warm cream — page background
   Display: Fraunces  ·  Body: Lora (Athelas substitute)
   ============================================================ */

:root {
  --raspberry: #A91458;
  --raspberry-deep: #8E0F49;
  --rose: #C07090;
  --rose-soft: #E7D6DF;
  --cream: #F6F5F3;
  --ink: #3A2730;          /* warm deep plum for body reading */
  --ink-soft: #6A5560;
  --hairline: rgba(192, 112, 144, 0.30);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Lora", Georgia, serif;

  --measure: 64ch;
  --shell: 1140px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--raspberry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--raspberry-deep); }

:focus-visible {
  outline: 2px solid var(--raspberry);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--raspberry);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; color: var(--ink); font-weight: 600; }

p { margin: 0 0 1.15em; }

.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* Eyebrow + the seen·written·honored mark */
.eyebrow {
  font-family: var(--display);
  font-style: italic;
  color: var(--rose);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}
.mark {
  font-family: var(--body);
  font-style: italic;
  color: var(--rose);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

/* ----- Skip link ----- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--raspberry); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0; z-index: 200;
}
.skip:focus { left: 0; color: var(--cream); }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 245, 243, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0; min-height: 64px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 40px; width: auto; }

.nav__links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: var(--raspberry); }
.nav__links a[aria-current="page"] {
  color: var(--raspberry);
  border-bottom-color: var(--raspberry);
}
.nav__links .nav__donate {
  background: var(--raspberry); color: var(--cream);
  padding: 0.45rem 1.05rem; border-radius: 999px;
  border-bottom: none;
}
.nav__links .nav__donate:hover { background: var(--raspberry-deep); color: var(--cream); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--raspberry); padding: 0.4rem;
}
.nav__toggle svg { display: block; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 18px 30px -22px rgba(58,39,48,0.5);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block; padding: 0.85rem 1.5rem; border-bottom: 0;
    width: min(100% - 3rem, var(--shell)); margin-inline: auto;
  }
  .nav__links a[aria-current="page"] { border-bottom: 0; }
  .nav__links .nav__donate {
    display: inline-block; margin: 0.6rem auto 0;
    width: auto;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero__logo { width: min(320px, 70vw); margin: 0 auto 1.6rem; }
.hero__promise {
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--raspberry);
  line-height: 1.22;
  max-width: 22ch;
  margin: 0.4rem auto 1.4rem;
  letter-spacing: -0.01em;
}
.hero__note {
  font-style: italic;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 2rem;
}
.hero .mark { display: block; margin-top: 0.4rem; }

/* ----- Page header (interior pages) ----- */
.page-head {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}
.page-head p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

/* ============================================================
   Sections & rhythm
   ============================================================ */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--tight { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.section.center { text-align: center; }
.section.center .prose { margin-inline: auto; }

.lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Divider with the berry rule */
.rule {
  border: 0; height: 1px; background: var(--hairline);
  width: 80px; margin: 2.2rem auto;
}

/* ----- Three pillars (Seen / Written / Honored) ----- */
.pillars {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { text-align: center; padding: 1.4rem 1rem; }
.pillar .icon { color: var(--raspberry); margin: 0 auto 0.9rem; }
.pillar h3 {
  font-family: var(--display); color: var(--raspberry);
  font-size: 1.35rem; margin-bottom: 0.3rem;
}
.pillar p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ----- Feature row (text + emblem) ----- */
.feature {
  display: grid; grid-template-columns: 1fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.feature__art {
  display: flex; justify-content: center; align-items: center;
}
.feature__art img { width: min(280px, 70%); }

/* ----- Cards (ways to help / our work steps) ----- */
.cards {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card .icon { color: var(--raspberry); margin-bottom: 0.8rem; }
.card h3 { color: var(--raspberry); font-family: var(--display); margin-bottom: 0.35rem; }
.card p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0; }

/* Quote / testimony pull */
.pullquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-style: italic;
  color: var(--raspberry);
  line-height: 1.32;
  max-width: 24ch;
  margin: 2rem auto;
  text-align: center;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.02rem;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--raspberry); color: var(--cream); border: 1.5px solid var(--raspberry); }
.btn--primary:hover { background: var(--raspberry-deep); border-color: var(--raspberry-deep); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--raspberry); border: 1.5px solid var(--raspberry); }
.btn--ghost:hover { background: var(--raspberry); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.6rem; }

/* ============================================================
   Pattern CTA band (Pattern 02 — reversed on primary)
   ============================================================ */
.cta-band {
  background-color: var(--raspberry);
  /* Pattern kept as faint texture under a magenta scrim so short text stays legible
     (brand guide: patterns are texture, never a bed for copy). */
  background-image:
    linear-gradient(rgba(142, 15, 73, 0.82), rgba(142, 15, 73, 0.82)),
    url("../imgs/PatternDark_FullColor.png");
  background-size: auto, 340px;
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream); opacity: 0.92; max-width: 46ch; margin-inline: auto; }
.cta-band .btn--primary { background: var(--cream); color: var(--raspberry); border-color: var(--cream); }
.cta-band .btn--primary:hover { background: #fff; color: var(--raspberry-deep); }
.cta-band .btn--ghost { color: var(--cream); border-color: var(--cream); }
.cta-band .btn--ghost:hover { background: var(--cream); color: var(--raspberry); }

/* ============================================================
   Writing / Substack feed
   ============================================================ */
.posts {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 1rem;
}
.post {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
  box-shadow: 0 16px 30px -20px rgba(58,39,48,0.45);
  color: var(--ink);
}
.post__date { font-style: italic; color: var(--rose); font-size: 0.9rem; margin-bottom: 0.5rem; }
.post__title { font-family: var(--display); color: var(--raspberry); font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.6rem; }
.post__excerpt { font-size: 1rem; color: var(--ink-soft); margin: 0 0 1rem; }
.post__more { margin-top: auto; font-family: var(--display); color: var(--raspberry); font-size: 0.95rem; }

.feed-status { text-align: center; color: var(--ink-soft); padding: 2rem 0; }
.feed-status.is-error { padding-bottom: 0.5rem; }
.spinner {
  width: 30px; height: 30px; margin: 0 auto 1rem;
  border: 3px solid var(--rose-soft); border-top-color: var(--raspberry);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
  text-align: center;
}
.site-footer img { height: 46px; width: auto; margin: 0 auto 1rem; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  justify-content: center; list-style: none; padding: 0; margin: 1rem 0 1.4rem;
}
.footer-nav a { font-family: var(--display); color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--raspberry); }
.site-footer .fineprint { color: var(--ink-soft); font-size: 0.88rem; margin: 0.6rem 0 0; }

/* utility */
.center-block { margin-inline: auto; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
