:root {
  --paper: #faf6ef;
  --paper-2: #f2eadb;
  --card: #ffffff;
  --ink: #1f1b16;
  --ink-2: #4a433a;
  --muted: #776d61;
  --line: #e4d9c6;
  --accent: #b8432b;
  --accent-ink: #8e2f1c;
  --leaf: #3d5a40;
  --leaf-2: #5d8a61;
  --sun: #e8b04a;
  --karani: #de4039;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .05), 0 10px 30px rgba(31, 27, 22, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
/* Karani's embedded give/event pages cap their card at 640px, so these
   sections match it — at any wider width the card is left-aligned and
   leaves a band of the framed page's own grey down the right. */
.narrow--embed { width: min(640px, 100% - 40px); }
.center { text-align: center; }
.center .actions { justify-content: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font: 700 .78rem/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: #2e4531; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .6em 1.1em; font-size: .95rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.1rem; }
.btn.is-unconfigured { outline: 2px dashed rgba(222, 64, 57, .55); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--paper);
  font: 600 1rem/1 var(--serif);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 600 1.15rem/1.15 var(--serif); }
.brand-text small { color: var(--muted); font-size: .8rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current] { background: var(--paper-2); color: var(--accent-ink); }
.site-nav .btn[aria-current] { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--accent); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 .95rem/1 var(--sans);
  cursor: pointer;
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lede, .section-dark .muted { color: #d6ccbb; }
.section-dark .eyebrow { color: var(--sun); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }

.page-hero { padding-block: clamp(48px, 7vw, 92px) clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 60ch; }

/* Home hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px 28px 28px 140px;
  box-shadow: var(--shadow);
}
.stamp {
  position: absolute;
  left: -16px;
  bottom: 32px;
  max-width: 230px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .9rem;
  line-height: 1.35;
  transform: rotate(-3deg);
}
.stamp strong { display: block; color: var(--leaf); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 440px; }
  .stamp { left: 12px; }
}

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-2.top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 24px; }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .grid-sidebar { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 96px; }
@media (max-width: 900px) { .sticky { position: static; } }

.card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card.featured { border: 2px solid var(--accent); position: relative; }
.card .tag {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 700 .72rem/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--leaf);
}
.icon svg { width: 26px; height: 26px; }
.price { font: 600 2rem/1 var(--serif); color: var(--ink); margin: 6px 0 12px; }
.price small { font: 400 1rem var(--sans); color: var(--muted); }

.pullquote {
  margin: 0;
  padding-left: 24px;
  border-left: 4px solid var(--accent);
  font: italic 400 clamp(1.4rem, 2.6vw, 1.95rem)/1.35 var(--serif);
}
.pullquote cite { display: block; margin-top: 14px; font: 600 .95rem var(--sans); font-style: normal; color: var(--muted); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; }
.stat strong { display: block; margin-bottom: 6px; font: 600 clamp(2.4rem, 4.2vw, 3.3rem)/1 var(--serif); color: var(--sun); }
.stat span { color: #d6ccbb; }

/* Support goal */
.goal-bar { height: 14px; margin: 16px 0 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.goal-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--leaf-2)); }
.goal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .95rem; }
.goal-meta strong { color: var(--ink); }

/* Budget */
.budget { list-style: none; padding: 0; margin: 0; }
.budget li { margin-bottom: 18px; }
.budget .row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.budget .row span:last-child { color: var(--muted); font-weight: 400; }
.budget .bar { height: 10px; margin-top: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.budget .bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font-weight: 700; color: var(--accent-ink); font-size: .92rem; }

/* Posts */
.post { margin-bottom: 28px; }
.post-meta { margin-bottom: 8px; color: var(--muted); font-size: .92rem; }
.post h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.post figure { margin: 22px 0; }
.post-teaser h3 { font-size: 1.6rem; }

/* Events */
.event { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: start; }
@media (max-width: 560px) { .event { grid-template-columns: 1fr; } }
.date-block {
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: var(--serif);
  line-height: 1;
}
.date-block span { display: block; font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.date-block strong { display: block; margin: 6px 0; font-size: 2.6rem; font-weight: 600; }
.event-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--ink-2); font-weight: 600; }

/* FAQ */
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 600 1.18rem/1.3 var(--serif);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Figures */
.figure-card { margin: 0; }
.figure-card img { border-radius: var(--radius); box-shadow: var(--shadow); }
.figure-card figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; font-style: italic; }

/* Karani slots */
.karani-slot { min-height: 80px; }
.karani-slot iframe { margin-inline: auto; }
.karani-setup {
  padding: 18px 20px;
  border: 2px dashed #e7b4af;
  border-radius: 12px;
  background: #fdf2f1;
  color: #5b2320;
  font-size: .95rem;
  line-height: 1.5;
}
.karani-setup code { padding: 1px 6px; border-radius: 4px; background: #fff; font-size: .88em; }
.karani-frame { display: block; width: 100%; min-height: 400px; border: 0; border-radius: 12px; background: #fff; }
.powered { margin-top: 14px; color: var(--muted); font-size: .85rem; text-align: center; }

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--leaf);
  color: #fff;
}
.callout h2, .callout h3 { margin-bottom: .25em; }
.callout p { margin: 0; color: #dfe8dc; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-2); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.status-on { background: #e3efe2; color: #2f5a33; }
.status-off { background: #fbe6e4; color: #8c2a22; }

pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #f2eadb;
  font-size: .9rem;
  line-height: 1.55;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { padding-top: 64px; background: var(--ink); color: #cfc5b5; }
.site-footer a:not(.btn) { color: #f3e9d8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { font: 600 1.6rem/1.2 var(--serif); color: #fff; margin-bottom: .4em; }
.site-footer h4 { margin-bottom: 14px; font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9e9483; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.sample-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 52px;
  padding-block: 26px;
  border-top: 1px solid #3a342c;
}
.sample-bar p { flex: 1 1 320px; margin: 0; }
.sample-logo { flex: none; display: inline-block; padding: 8px 14px; border-radius: 10px; background: #fff; }
.sample-logo img { height: 28px; width: auto; }
.copyright { margin: 0; padding-bottom: 28px; color: #8e8474; font-size: .88rem; }
