:root {
  --bg: #f4efe9;
  --panel: #fffdf9;
  --panel-strong: #efe7d8;
  --ink: #1a1b1f;
  --muted: #58616b;
  --primary: #8d6e4f;
  --primary-dark: #5f4835;
  --secondary: #d9b98c;
  --line: rgba(26, 27, 31, 0.1);
  --shadow: 0 18px 40px rgba(26, 27, 31, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #f8f1e8 0%, #fffdf9 30%, #f4efe9 100%);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.button,
.button-secondary,
.button-ghost {
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 16px 30px rgba(93, 72, 53, 0.18);
}

.button-secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
}

main {
  padding-bottom: 4rem;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(141, 110, 79, 0.08);
  color: var(--primary-dark);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 110, 79, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  background: linear-gradient(160deg, #f2e7d8 0%, rgba(217, 185, 140, 0.38) 100%);
  border: 1px solid rgba(93, 72, 53, 0.08);
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  position: absolute;
  inset: 2.2rem 2rem auto 2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 27, 31, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-card.small {
  inset: auto 2rem 2rem auto;
  width: 72%;
}

.card-tag {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.hero-card h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.7rem;
}

.metric-grid,
.feature-grid,
.content-grid,
.resource-grid,
.blog-grid,
.calendar-grid,
.book-grid,
.donation-box,
.page-grid {
  display: grid;
  gap: 1.4rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.metric {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

.metric strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 60ch;
  color: var(--muted);
}

.feature-grid,
.resource-grid,
.book-grid,
.blog-grid,
.calendar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 10px 20px rgba(26, 27, 31, 0.02);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(141, 110, 79, 0.1);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.card h3 {
  margin-top: 0.3rem;
  font-size: 1.2rem;
}

.card p,
.card li,
.page-copy p,
.page-copy li {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(141, 110, 79, 0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.book-cover {
  min-height: 200px;
  border-radius: 18px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9b98c 0%, #7a5a42 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.quote {
  background: linear-gradient(135deg, rgba(141, 110, 79, 0.06), rgba(217, 185, 140, 0.12));
  border: 1px solid rgba(141, 110, 79, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.page-hero {
  padding: 4rem 0 1rem;
}

.page-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.page-copy {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}

.page-aside {
  display: grid;
  gap: 1rem;
}

.side-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.book-stack {
  position: relative;
  min-height: 420px;
  margin-top: 1.5rem;
}

.book-page {
  position: absolute;
  inset: 0;
  background: #fffdf9;
  border: 1px solid rgba(26, 27, 31, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(30px) rotate(2deg);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.book-page.is-active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.book-page.is-hidden {
  opacity: 0;
  transform: translateX(-30px) rotate(-2deg);
}

.book-page h4 {
  margin-top: 0;
  font-size: 1.2rem;
}

.book-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.calendar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.event-date {
  min-width: 70px;
  background: rgba(141, 110, 79, 0.1);
  border-radius: 16px;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.donation-box {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.paypal-box {
  background: linear-gradient(145deg, #f6efe7, #fffdf9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 27, 31, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  min-height: 130px;
}

@media (max-width: 860px) {
  .hero-shell,
  .page-grid,
  .donation-box,
  .feature-grid,
  .resource-grid,
  .content-grid,
  .book-grid,
  .blog-grid,
  .calendar-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    top: 78px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 253, 249, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }
}
