/* ============================================
   ATTACHMENT RECOVERY — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Brand palette (from book cover + brand sheet) */
  --presence:    #1F3D4D;   /* deep blue */
  --presence-2:  #2F4A5C;   /* slightly lighter for hover */
  --connection:  #6A7F73;   /* sage */
  --hill:        #8DA6B3;   /* soft blue */
  --warm:        #D8C6A3;   /* warm sand */
  --paper:       #F5F4EF;   /* off-white background */
  --paper-2:     #ECE9DF;   /* slightly darker paper for sections */
  --ink:         #1F3D4D;   /* primary text */
  --ink-soft:    #4A5560;   /* secondary text */
  --rule:        rgba(31, 61, 77, 0.15);

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--presence); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--connection); }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--presence);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--connection);
  display: inline-block;
  margin-bottom: 1.2em;
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--presence);
  font-weight: 400;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--warm);
  border: 0;
  margin: 1.5rem 0;
}

.divider-center {
  width: 50px;
  height: 1px;
  background: var(--warm);
  border: 0;
  margin: 2rem auto;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--presence);
  font-weight: 500;
}

.nav-brand svg { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 400;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--presence);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--warm);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--presence);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 24px 32px;
    gap: 18px;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--presence);
  color: var(--paper);
  border-color: var(--presence);
}
.btn-primary:hover {
  background: var(--presence-2);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 61, 77, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--presence);
  border-color: var(--presence);
}
.btn-outline:hover {
  background: var(--presence);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--presence);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--presence);
  color: var(--presence);
}

.btn-small { padding: 10px 20px; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 80px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 0.3em;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--connection);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

.hero-tm { font-size: 0.5em; vertical-align: super; }

/* Hero waves — echoing the book cover */
.hero-waves {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}
.hero-waves svg { width: 100%; height: auto; display: block; }

/* ============================================
   COLUMNS / GRIDS
   ============================================ */

.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

@media (max-width: 820px) {
  .three-cols { grid-template-columns: 1fr; gap: 40px; }
  .two-cols { grid-template-columns: 1fr; gap: 40px; }
}

.col-card {
  text-align: left;
}
.col-card .col-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--connection);
}
.col-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}
.col-card p {
  font-size: 0.98rem;
}
.col-card a.col-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--presence);
  letter-spacing: 0.02em;
}
.col-card a.col-link::after {
  content: ' →';
  transition: margin-left 0.2s ease;
}
.col-card a.col-link:hover::after {
  margin-left: 4px;
}

/* ============================================
   SECTION VARIANTS
   ============================================ */

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

.section-presence {
  background: var(--presence);
  color: var(--paper);
}
.section-presence h1,
.section-presence h2,
.section-presence h3 { color: var(--paper); }
.section-presence p { color: rgba(245, 244, 239, 0.82); }
.section-presence .eyebrow { color: var(--warm); }
.section-presence .divider-center,
.section-presence .divider { background: var(--warm); }

.section-centered { text-align: center; }
.section-centered .lead { max-width: 620px; margin: 0 auto; }

/* Big quote / statement */
.statement {
  text-align: center;
  padding: 120px 0;
  background: var(--paper-2);
  position: relative;
}
.statement-text {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.4;
  color: var(--presence);
  max-width: 760px;
  margin: 0 auto;
  font-weight: 400;
}
.statement-text em {
  font-style: italic;
  color: var(--connection);
}

/* ============================================
   PAGE HEADER (non-home pages)
   ============================================ */

.page-header {
  text-align: center;
  padding: 120px 0 60px;
}
.page-header h1 { margin-bottom: 0.4em; }
.page-header .lead { max-width: 600px; margin: 0 auto; }

/* ============================================
   DONATION STRIP
   ============================================ */

.donate-strip {
  background: var(--presence);
  color: var(--paper);
  text-align: center;
  padding: 80px 32px;
}
.donate-strip h2 { color: var(--paper); margin-bottom: 0.4em; }
.donate-strip p { color: rgba(245, 244, 239, 0.82); margin-bottom: 1.8em; }
.donate-amounts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.donate-amounts .btn {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(245, 244, 239, 0.4);
  min-width: 90px;
}
.donate-amounts .btn:hover {
  background: var(--warm);
  color: var(--presence);
  border-color: var(--warm);
}

/* ============================================
   STEPS (Start a Meeting)
   ============================================ */

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  max-width: 720px;
  margin: 2rem auto;
}
.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 24px 0 24px 80px;
  border-bottom: 1px solid var(--rule);
}
.steps-list li:last-child { border-bottom: 0; }
.steps-list li::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--warm);
  font-weight: 500;
}
.steps-list li h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.steps-list li p { font-size: 0.96rem; }

/* ============================================
   RESOURCE / STORE / DOWNLOAD CARDS
   ============================================ */

.resource-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s ease;
}
.resource-card:hover {
  border-color: var(--connection);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31, 61, 77, 0.08);
}
.resource-card h3 { margin-bottom: 0.4em; }
.resource-card .resource-meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--connection);
  margin-bottom: 0.8em;
}
.resource-card .btn-row { margin-top: 1.5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; }
}

/* Store items */
.store-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.store-item:hover {
  border-color: var(--connection);
  transform: translateY(-2px);
}
.store-item-image {
  aspect-ratio: 1;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-item-image svg {
  width: 50%;
  height: 50%;
  color: var(--connection);
  opacity: 0.5;
}
.store-item-body { padding: 24px; }
.store-item-body h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.store-item-body p { font-size: 0.9rem; margin-bottom: 1em; }

/* Coming Soon state for store items */
.store-item.coming-soon { opacity: 0.92; }
.store-item.coming-soon:hover { transform: none; border-color: var(--rule); }
.store-item.coming-soon .store-item-image { position: relative; }
.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--connection);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: default;
}
.coming-soon-badge:hover { color: var(--connection); }

/* ============================================
   MEETINGS PAGE
   ============================================ */

.meeting-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.meeting-card .meeting-time {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--presence);
}
.meeting-card .meeting-detail {
  font-size: 0.9rem;
  color: var(--connection);
  letter-spacing: 0.05em;
  margin-bottom: 1.5em;
}

.schedule-list {
  list-style: none;
  max-width: 540px;
  margin: 2rem auto;
}
.schedule-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list .day {
  font-family: var(--font-serif);
  color: var(--presence);
  font-size: 1.1rem;
}
.schedule-list .time {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ============================================
   DONATE PAGE
   ============================================ */

.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 2rem auto;
}
.donate-options .btn { padding: 18px; font-size: 1rem; }

.donate-alt {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.donate-alt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.donate-alt-row:last-child { border-bottom: 0; }
.donate-alt-row .label {
  font-family: var(--font-serif);
  color: var(--presence);
}
.donate-alt-row .value {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
  word-break: break-all;
  text-align: right;
  margin-left: 16px;
}

/* ============================================
   FORM
   ============================================ */

.form {
  max-width: 540px;
  margin: 2rem auto;
}
.form-row { margin-bottom: 20px; }
.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--presence);
  margin-bottom: 6px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--connection);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--paper-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--connection);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  object-fit: cover;
  filter: saturate(0.95);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--presence);
  color: var(--paper);
  padding: 64px 0 32px;
  text-align: center;
}
.site-footer .footer-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}
.site-footer h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.3em;
}
.site-footer .footer-tagline {
  font-style: italic;
  color: var(--warm);
  font-family: var(--font-serif);
  margin-bottom: 2em;
}
.site-footer .footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 2em;
}
.site-footer .footer-nav a {
  color: rgba(245, 244, 239, 0.78);
  font-size: 0.9rem;
}
.site-footer .footer-nav a:hover { color: var(--warm); }
.site-footer .footer-meta {
  font-size: 0.8rem;
  color: rgba(245, 244, 239, 0.5);
  letter-spacing: 0.06em;
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.9s ease forwards;
}
.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.25s; }
.fade-in.delay-3 { animation-delay: 0.4s; }
.fade-in.delay-4 { animation-delay: 0.55s; }

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
