/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg:       #FDF6EC;
  --surface:  #FFF8F0;
  --border:   #E8D5B5;
  --accent:   #C8860A;
  --accent-light: #F5E4C0;
  --text:     #2C2C2C;
  --text-muted: #6B5E4A;
  --radius:   8px;
  --max-w:    720px;
}

/* ─── Reset / Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 0.75rem 1rem;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { text-decoration: none; font-size: 0.95rem; color: var(--text-muted); }
.site-header nav a:hover { color: var(--accent); }

/* ─── Main layout ────────────────────────────────────── */
main { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1rem 4rem; }

section { margin-bottom: 3rem; }

h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

p + p { margin-top: 0.85rem; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.hero__tagline {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Carousel ───────────────────────────────────────── */
.carousel-section { padding: 0; }

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel__slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__slide img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: var(--surface);
}

.carousel__placeholder {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 2rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  width: 80%;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 246, 236, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel__btn:hover { background: var(--accent-light); }
.carousel__btn--prev { left: 0.75rem; }
.carousel__btn--next { right: 0.75rem; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel__dot--active { background: var(--accent); }

/* ─── Story ──────────────────────────────────────────── */
.story { line-height: 1.8; }

/* ─── Donate ─────────────────────────────────────────── */
.donate__actions {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.donate__btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.donate__btn:hover { background: #a06d05; text-decoration: none; }

.donate__btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.donate__btn--secondary:hover { background: var(--accent-light); text-decoration: none; }

.donate__handle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.donate__qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0 1.25rem;
}

.donate__qr-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.donate__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Flyer ──────────────────────────────────────────── */
.flyer {
  max-width: 680px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}

.flyer__header { margin-bottom: 1.75rem; }

.flyer__photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.flyer__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.flyer__sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.flyer__qr-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.flyer__qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.flyer__qr-code {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  background: #fff;
}

.flyer__qr-label {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.flyer__qr-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.flyer__divider {
  font-size: 1.4rem;
  color: var(--border);
  letter-spacing: 0.3em;
  align-self: center;
}

.flyer__message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.flyer__message p + p { margin-top: 0.4rem; }

.flyer__print-btn {
  text-align: center;
  margin: 1.5rem auto;
  max-width: 680px;
}

.flyer__print-btn button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.flyer__print-btn button:hover { background: #a06d05; }

/* ─── Print styles ───────────────────────────────────── */
@media print {
  @page {
    size: letter portrait;
    margin: 0.5in;
  }

  .no-print,
  .site-header,
  .site-footer,
  .flyer__print-btn { display: none !important; }

  body { background: #fff; color: #000; }

  main { padding: 0; max-width: 100%; }

  .flyer {
    border: 3px solid #000;
    margin: 0;
    padding: 1.25rem 1.5rem;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: calc(11in - 1in); /* fill the page */
    justify-content: space-between;
  }

  .flyer__photo {
    max-height: 340px;
  }

  .flyer__title {
    font-size: 3rem;
    color: #000;
  }

  .flyer__sub {
    font-size: 1.2rem;
    color: #333;
  }

  .flyer__qr-label { font-size: 1.3rem; color: #000; }
  .flyer__qr-sub   { font-size: 0.95rem; }

  .flyer__message {
    font-size: 1.1rem;
    color: #333;
  }
}
