/* =========================================================
   Al-Anon Srbija — stylesheet
   "Prva zraka" (First light) design system
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* ---------------------------------------------------------
   1. Custom properties
   --------------------------------------------------------- */
:root {
  /* paper / surfaces — cool whites */
  --paper: #f4f8fb;
  --paper-deep: #e7f0f6;
  --paper-deeper: #d8e6ef;
  --surface: #ffffff;

  /* ink / text — cool slate */
  --ink: #20303c;
  --ink-soft: #4f6473;
  --ink-faint: #8499a6;
  --paper-text: #eef5fa;

  /* accents — calm Al-Anon blue, supportive teal, gold from the mark */
  --clay: #2f6f9f;        /* primary blue (kept var name for reuse) */
  --clay-deep: #1f4f72;
  --clay-soft: #cfe3f0;
  --sage: #3f7e8e;        /* supportive teal */
  --sage-deep: #285863;
  --sage-soft: #d6e8ec;
  --gold: #e2a33e;        /* warm gold accent (from the logo) */
  --gold-soft: #f8e7c4;
  --gold-deep: #b9802a;   /* darker gold for caution callouts */

  /* lines & shadows */
  --line: #d7e3ec;
  --line-soft: #e7eef4;
  --shadow-sm: 0 2px 10px rgba(32, 48, 60, 0.07);
  --shadow-md: 0 10px 30px rgba(32, 48, 60, 0.1);
  --shadow-lg: 0 20px 60px rgba(32, 48, 60, 0.16);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  /* spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3.5rem;
  --space-8: 5rem;
  --space-9: 7.5rem;

  /* shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* fixed paper-grain overlay for warmth & texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--clay-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--clay);
}

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

/* ---------------------------------------------------------
   3. Typography
   --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.6rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
}

p {
  margin: 0 0 1.2em;
  max-width: 62ch;
}

p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 1.2em;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
}

strong {
  font-weight: 700;
}

/* ---------------------------------------------------------
   4. Layout helpers
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: var(--space-8);
}

.section--tight {
  padding-block: var(--space-7);
}

.section--deep {
  background: var(--paper-deep);
}

.section--ink {
  background: var(--ink);
  color: var(--paper-text);
}

.section--ink h2,
.section--ink h3 {
  color: var(--paper-text);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p.lead {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8em 1.4em;
  border-radius: var(--radius-sm);
  z-index: 1100;
}

.skip-link:focus {
  left: var(--space-5);
  top: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   5. Site header & navigation
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--clay);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-text-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 0.25em;
}

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-weight: 600;
  font-size: 0.97rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-block: 0.3em;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--clay);
  transition: right 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:not(.btn):hover::after {
  right: 0;
}

.site-nav a.is-active {
  color: var(--clay-deep);
}

.site-nav a.is-active:not(.btn)::after {
  right: 0;
  background: var(--gold);
}

.site-nav .btn {
  margin-left: var(--space-2);
}

/* keep button label colors (nav link color would otherwise win on specificity) */
.site-nav a.btn-primary {
  color: var(--paper);
}

.site-nav a.btn-primary:hover {
  color: var(--paper);
}

/* mobile nav toggle (checkbox hack) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

@media (max-width: 880px) {
  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  .site-nav a {
    width: 100%;
    padding: 1rem var(--space-5);
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .site-nav .btn {
    margin: var(--space-3) var(--space-5);
    width: calc(100% - 2 * var(--space-5));
    justify-content: center;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 28rem;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------------------------------------------------------
   6. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--clay);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--clay-deep);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  color: var(--clay-deep);
  box-shadow: var(--shadow-md);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* ---------------------------------------------------------
   7. Hero & decorative "dawn" backgrounds
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-9) var(--space-8);
  background-color: var(--paper);
  background-image: repeating-radial-gradient(
    circle at 82% -10%,
    transparent 0 26px,
    rgba(47, 111, 159, 0.08) 26px 28px
  );
}

.hero--page {
  padding-block: var(--space-8) var(--space-7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero .lead {
  margin-bottom: var(--space-6);
}

.hero-copy {
  max-width: 36rem;
}

/* sunrise illustration used in hero art panel */
.sunrise-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sunrise-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sunrise-art .ring {
  fill: none;
  stroke: var(--clay-soft);
  stroke-width: 1;
}

.sunrise-art .ring--accent {
  stroke: var(--gold);
  stroke-dasharray: 4 10;
  animation: spin 80s linear infinite;
  transform-origin: center;
}

.sunrise-art .sun {
  fill: var(--gold);
}

.sunrise-art .sun-halo {
  fill: var(--gold);
  opacity: 0.22;
}

.sunrise-art .ray {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}

.sunrise-art .horizon {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw-line 2.2s var(--ease) 0.3s forwards;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* generic reveal-on-load animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.8s var(--ease) forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.38s; }
.delay-5 { animation-delay: 0.48s; }

/* ---------------------------------------------------------
   8. Cards
   --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clay-soft);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--clay-deep);
  margin-bottom: var(--space-4);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--sage .card-icon {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--space-4);
  font-weight: 700;
  text-decoration: none;
}

.card-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* checklist */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 1.05rem;
}

.check-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 0.2em;
  color: var(--sage);
}

/* ---------------------------------------------------------
   9. Prayer / pull-quote panel
   --------------------------------------------------------- */
.prayer {
  position: relative;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  padding: var(--space-7) var(--space-6);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.prayer::before {
  content: "\201E";
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 0.15em;
  left: 0.35em;
  opacity: 0.5;
}

.prayer blockquote {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.prayer cite {
  display: block;
  margin-top: var(--space-5);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

/* ---------------------------------------------------------
   10. Numbered lists — 12 Steps / 12 Traditions
   --------------------------------------------------------- */
.steps-list,
.traditions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.steps-list {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 760px) {
  .steps-list {
    grid-template-columns: 1fr;
  }
}

.step-item,
.tradition-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step-item:hover,
.tradition-item:hover {
  border-color: var(--clay-soft);
  transform: translateY(-3px);
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clay-deep);
}

.step-item p,
.tradition-item p {
  margin: 0;
  max-width: none;
}

.tradition-item {
  align-items: flex-start;
}

.tradition-item .step-num {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
  border-color: var(--sage);
  color: var(--sage-deep);
}

.note-card {
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.note-card svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--sage-deep);
}

.note-card p {
  margin: 0;
  color: var(--ink);
  max-width: none;
}

.note-card p strong {
  color: var(--sage-deep);
}

/* timeline — "how meetings work" */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}

.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
}

.timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--clay-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.timeline-item h3 {
  margin-bottom: 0.3em;
}

.timeline-item p {
  margin: 0;
}

/* ---------------------------------------------------------
   11. Meetings — city groups & cards
   --------------------------------------------------------- */
.city-section {
  margin-bottom: var(--space-7);
}

.city-section:last-child {
  margin-bottom: 0;
}

.city-heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.city-heading h2 {
  margin: 0;
  white-space: nowrap;
}

.city-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-5);
}

.meeting-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.meeting-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.meeting-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.meeting-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink); /* stay dark even inside the dark "section--ink" band */
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tag--closed {
  background: var(--clay-soft);
  color: var(--clay-deep);
}

.tag--open {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.tag--online {
  background: var(--gold-soft);
  color: var(--clay-deep);
}

.meeting-meta {
  display: grid;
  gap: 0.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.meeting-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.meeting-meta svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  color: var(--clay);
}

.meeting-meta .day {
  font-weight: 700;
  color: var(--ink);
}

/* legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.legend span.tag {
  margin-right: 0.5em;
}

/* ---------------------------------------------------------
   12. Literature cards
   --------------------------------------------------------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.book-spine {
  height: 0.6rem;
}

.book-spine--clay { background: var(--clay); }
.book-spine--sage { background: var(--sage); }
.book-spine--gold { background: var(--gold); }

.book-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  flex: 1;
}

.book-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}

.book-kind {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.book-card-body p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------------------------------------------------------
   13. FAQ — native details/summary
   --------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--clay-soft);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-soft);
  animation: fade-up 0.4s var(--ease);
}

.faq-answer p {
  max-width: none;
  margin: 0;
}

.faq-answer p + p {
  margin-top: 0.8em;
}

/* ---------------------------------------------------------
   14. Contact section & form
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.contact-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-list .card-icon {
  margin-bottom: 0;
}

.contact-list h3 {
  margin: 0 0 0.2em;
  font-size: 1.05rem;
}

.contact-list p {
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}

.contact-list a {
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.form-row label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form-row .hint {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 400;
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--clay);
  background: var(--surface);
  outline: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 9rem;
}

/* honeypot — visually & functionally removed for humans, present for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: var(--space-4);
}

.form-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
}

/* ---------------------------------------------------------
   15. Final CTA band
   --------------------------------------------------------- */
.cta-band {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: var(--paper-text);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 20%,
    rgba(226, 163, 62, 0.35),
    transparent 55%
  );
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band .eyebrow {
  color: var(--gold);
  justify-content: center;
}

.cta-band .eyebrow::before {
  background: var(--gold);
}

.cta-band h2 {
  color: var(--paper-text);
}

.cta-band p {
  color: rgba(246, 236, 224, 0.85);
  margin-inline: auto;
  margin-bottom: var(--space-6);
  max-width: 44ch;
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--paper);
}

.cta-band .btn-ghost {
  border-color: rgba(246, 236, 224, 0.4);
  color: var(--paper-text);
}

.cta-band .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------------------------------------------------------
   16. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-block: var(--space-8) var(--space-6);
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand .brand {
  color: var(--paper-text);
}

.footer-brand .brand-mark {
  color: var(--paper-text);
}

.footer-brand .brand-text-sub {
  color: var(--paper-text);
}

.footer-brand p {
  color: rgba(246, 236, 224, 0.65);
  font-size: 0.95rem;
  max-width: 32ch;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-text);
  margin-bottom: var(--space-4);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.footer-col a {
  color: rgba(246, 236, 224, 0.85);
  text-decoration: none;
  font-size: 0.97rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col p {
  color: rgba(246, 236, 224, 0.65);
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 236, 224, 0.12);
  padding-block: var(--space-5);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(246, 236, 224, 0.5);
  max-width: none;
}

/* ---------------------------------------------------------
   17. Misc responsive tweaks
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .section {
    padding-block: var(--space-7);
  }

  .hero {
    padding-block: var(--space-7) var(--space-6);
  }

  .prayer {
    padding: var(--space-6) var(--space-5);
  }

  .prayer::before {
    font-size: 4rem;
  }
}
