/* Baskets of Healing — site styles. Mobile-first, no framework. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/site_files/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/site_files/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/site_files/fonts/nunito-sans-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #faf6f0;
  --paper: #fffdf9;
  --sand: #f1e9df;
  --ink: #2d2a2e;
  --muted: #645d63;
  --line: #e4dbd0;
  --lilac: #cdbfd9;
  --lilac-soft: #efe8f3;
  --lilac-deep: #6f5c87;
  --lilac-ink: #4e3f63;
  --gold: #c9a063;
  --gold-deep: #6f5124;
  --gold-soft: #f7efe1;
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(77, 60, 90, 0.10);
  --max: 72rem;
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--lilac-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--lilac-ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--lilac);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--lilac-ink);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.rounded { border-radius: var(--radius); }
.rounded img { border-radius: var(--radius); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 0.6em;
}
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { margin: 1.5rem 0; }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--lilac-ink); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  margin: 0.25rem 0.35rem 0.25rem 0;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--lilac-deep); color: #fff; }
.btn-primary:hover { background: var(--lilac-ink); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1e0b; }
.btn-gold:hover { background: #b88d4f; color: #2a1e0b; }
.btn-ghost { background: transparent; border-color: var(--lilac-deep); color: var(--lilac-deep); }
.btn-ghost:hover { background: var(--lilac-soft); }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.05rem; }

/* Header */
.site-header {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; flex-wrap: wrap; }
.brand img { width: 150px; height: auto; }
/* The menu collapses only when JS is available. `has-js` is set on <html> by an
   inline script in <head> (before first paint) so the header never reflows. */
.nav-toggle {
  appearance: none; background: none; border: 2px solid var(--lilac-deep); border-radius: 10px;
  width: 44px; height: 44px; display: none; place-items: center; cursor: pointer; margin-left: auto;
}
.has-js .nav-toggle { display: grid; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: var(--lilac-deep); position: relative; transition: transform 0.2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 0.75rem; display: flex; flex-direction: column; gap: 0.1rem; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { display: block; padding: 0.55rem 0.4rem; text-decoration: none; font-weight: 600; color: var(--ink); border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--lilac-soft); color: var(--lilac-ink); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--lilac-deep); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-cta { margin-top: 0.5rem; }
.has-js .site-nav { display: none; }
.has-js .site-nav.is-open { display: block; }
@media (min-width: 60em) {
  .brand img { width: 200px; }
  .nav-toggle { display: none !important; }
  .site-nav, .has-js .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.15rem; padding: 0; }
  .nav-cta { margin: 0 0 0 0.6rem; }
}

/* Hero (home) */
.hero { padding: 2.5rem 0 1rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); margin-bottom: 0.4em; }
.hero-text p { font-size: 1.15rem; max-width: 34rem; }
.hero-actions { margin-top: 1.4rem; }
.hero-media { position: relative; }
.hero-media video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #1b1719; box-shadow: var(--shadow); object-fit: cover; }
.hero-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
@media (min-width: 54em) {
  .hero { padding: 3.5rem 0 1.5rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
}

/* Generic sections */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lilac { background: var(--lilac-soft); }
.section-gold { background: var(--gold-soft); }
.section-head { max-width: var(--measure); margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .grid-2-wide { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(77, 60, 90, 0.05);
}
.card h3, .card .h3 { margin-top: 0; }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.card .btn { margin-top: 0.5rem; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card-link h3, .card-link .h3 { color: var(--lilac-deep); }
.card-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 0.75rem; }

/* Stats */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 0.5rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 600; color: var(--lilac-deep); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; }

/* Testimonials */
.quote-card { background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem; }
.quote-card blockquote { border: 0; margin: 0; padding: 0; font-size: 1.2rem; }
.quote-card figcaption { margin-top: 0.75rem; font-weight: 700; color: var(--gold-deep); }

/* Basket contents */
.contents-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.contents-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1rem; margin: 0; }
.contents-list strong { display: block; color: var(--lilac-ink); }
.contents-list span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 40em) { .contents-list { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3.4rem; margin: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--lilac-deep); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
}
.steps strong { display: block; color: var(--lilac-ink); font-size: 1.1rem; }

/* Callouts */
.callout { background: var(--lilac-soft); border-radius: var(--radius); padding: 1.75rem; }
.callout h2, .callout h3 { margin-top: 0; }
.callout-gold { background: var(--gold-soft); }
.callout .btn { margin-top: 0.5rem; }
.verse { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--lilac-ink); text-align: center; max-width: 38rem; margin: 0 auto; }
.verse cite { display: block; font-style: normal; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-top: 0.75rem; }

/* Page hero (inner pages) */
.page-hero { padding: 2.75rem 0 1.5rem; }
.page-hero-inner { display: grid; gap: 1.5rem; align-items: center; }
.page-hero h1 { margin-bottom: 0.35em; }
@media (min-width: 60em) { .page-hero--image .page-hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.prose-page { padding-bottom: 3rem; }
.prose-page > p, .prose-page > ul, .prose-page > ol, .prose-page > h2, .prose-page > h3, .prose-page > blockquote, .prose-page > figure { max-width: var(--measure); }
.prose-page > h2 { margin-top: 2.25rem; }
.prose-page > h3 { margin-top: 1.5rem; }
.prose-page figure { margin: 1.5rem 0; }
.prose-page figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.two-col { display: grid; gap: 2rem; align-items: start; margin: 2rem 0; }
@media (min-width: 56em) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h2, .two-col h3 { margin-top: 0; }

/* Donate */
.donate-options { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 48em) { .donate-options { grid-template-columns: repeat(3, 1fr); } }
.donate-option { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.donate-option h3 { margin-top: 0; }
.donate-option p { flex: 1; }
.budget { list-style: none; padding: 0; margin: 1rem 0; max-width: var(--measure); }
.budget li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.budget li span:last-child { font-weight: 700; color: var(--lilac-ink); white-space: nowrap; }

/* Hospitals */
.hospital-list { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .hospital-list { grid-template-columns: repeat(2, 1fr); } }
.hospital-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; margin: 0; }
.hospital-list strong { display: block; color: var(--lilac-ink); }
.hospital-list span { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 0.5rem 0; max-width: var(--measure); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--lilac-ink); padding: 0.5rem 0; font-size: 1.05rem; }
.faq summary:hover { color: var(--lilac-deep); }
.faq details p { color: var(--muted); }

/* Resources */
.resource-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.resource-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0; }
.resource-list h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.resource-list p { margin: 0; color: var(--muted); }

/* Blog */
.post-list { display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card h3, .post-card .h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.post-card h3 a, .post-card .h3 a { text-decoration: none; }
.post-card .post-meta { margin-bottom: 0.75rem; }
.post-card p:last-child { margin-top: auto; }
.post-meta { color: var(--muted); font-size: 0.92rem; }
.post-header { padding: 2.5rem 0 1rem; max-width: var(--measure); }
.post-cover { max-width: 48rem; margin-bottom: 2rem; }
.post-body { padding-bottom: 2rem; }
.post-body p { font-size: 1.1rem; }
.post-footer { padding-bottom: 3rem; max-width: var(--measure); }

/* Footer */
.site-footer { background: var(--lilac-ink); color: #e9e2ef; margin-top: 2rem; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr; } }
.footer-about img { width: 180px; background: #fff; border-radius: 12px; padding: 0.5rem; margin-bottom: 1rem; }
.footer-verse { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }
.footer-verse span { display: block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); margin-top: 0.3rem; }
.footer-heading { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-org { font-style: normal; line-height: 1.6; margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.9rem; color: var(--lilac); }
.footer-bottom p { margin: 0; }
