/*
  FAITH IN THE STORM — site.css
  All site-wide styles live here.
  Typography (h1, h2, h3, p) is defined once globally in this file.
  Layout containers (section, .page-header, etc.) provide padding only — they do not redefine type.
  Page <style> blocks contain layout-only rules unique to that page and not reusable elsewhere.
  DO NOT redefine typography in a page's own <style> block or inside a contextual selector.
*/

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

/* ─── PAGE TRANSITIONS ─── */
body {
  animation: pageFadeIn 0.25s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── COLOR PALETTE ─── */
:root {
  --black:          #0d0608;
  --maroon-deep:    #1a0810;
  --maroon-mid:     #2e1018;
  --maroon-card:    #3a1522;
  --maroon-warm:    #5c1e30;
  --maroon-border:  rgba(180, 80, 100, 0.18);
  --gold:           #d9b44a;
  --gold-dim:       rgba(217, 180, 74, 0.45);
  --cream:          #f4f1de;
  --cream-dim:      #c8c4aa;
  --cream-mid:      #a09c8a;
  --cream-faint:    #7a7669;
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(
    to bottom,
    var(--maroon-deep) 0%,
    var(--maroon-deep) 44%,
    #180c12 60%,
    #110809 78%,
    var(--black) 100%
  );
  min-height: 100vh;
  color: #ffffff;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── GLOBAL TYPOGRAPHY ─── */

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 28px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}
h1 em {
  color: var(--gold);
  font-style: italic;
}

h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 8px;
}
h2 em {
  color: var(--gold);
  font-style: italic;
}

p {
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ─── GLOBAL TYPE SCALE ───
   Every font-size on the site lives here. Pages control layout only.
   Scale:
     Page title (h1):      clamp(2.2rem, 4.5vw, 3.5rem)   Playfair Display
     Section heading (h2): clamp(1.6rem, 2.5vw, 2.2rem)   Playfair Display
     Large label / nav:    16–18px   Lora uppercase
     Standard label:       14px      Lora uppercase (.section-label / .slabel)
     Body / card text:     1.1rem    EB Garamond
     Supporting text:      1rem      EB Garamond or Lora
     Prayer / italic:      1rem      EB Garamond italic
── */

/* ─── CRISIS BANNER ─── */
.crisis-banner {
  background: #150608;
  border-bottom: 1px solid rgba(180, 70, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 24px;
  font-family: "Lora", serif;
  font-size: 17px;
  color: rgba(200, 165, 165, 0.85);
  letter-spacing: 0.03em;
}
.crisis-banner a {
  color: rgba(220, 185, 185, 0.85);
  text-decoration: underline;
}
.crisis-text {
  flex: 1;
  text-align: center;
}
.crisis-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  border: 1px solid rgba(220, 100, 100, 0.9);
  color: rgba(240, 180, 180, 1);
  background: rgba(220, 100, 100, 0.1);
  font-family: "Lora", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.crisis-btn:hover {
  background: rgba(220, 100, 100, 0.22);
  border-color: rgba(220, 100, 100, 1);
  color: #ffffff;
  text-decoration: none;
}

/* ─── NAVIGATION ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 64px;
  border-bottom: 1px solid var(--maroon-border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d0608;
  backdrop-filter: none;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  line-height: 1.25;
}
.nav-logo span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #ffffff;
  font-family: "Lora", serif;
  font-style: italic;
  text-transform: none;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: "Lora", serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
  text-decoration: none;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}
.nav-links a:hover {
  color: var(--gold);
  opacity: 1;
}
.nav-links a.active {
  color: var(--gold);
  opacity: 1;
}

/* ─── PAGE HEADER — layout only ─── */
.page-header {
  padding: 52px 64px 36px;
}
.page-eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 26px;
  display: block;
}
.page-rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin-bottom: 30px;
}

/* ─── SECTION — layout only ─── */
section {
  padding: 32px 64px;
}
section p {
  max-width: 680px;
}

/* ─── SECTION LABELS ─── */
/* Use .section-label on all pages. .slabel is an alias — same thing. */
.section-label,
.slabel {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

/* ─── SECTION HEADINGS ─── */
.section-heading {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
}
.section-heading em {
  color: var(--gold);
  font-style: italic;
}

.section-sub {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 28px;
}

/* ─── LEAD / NOTE (page intros) ─── */
.lead {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1.12rem;
  color: #ffffff;
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 20px;
}
.note {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.65;
  max-width: 620px;
}

/* ─── BODY TEXT ─── */
.body-text {
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 700px;
}

/* ─── CARD TEXT ─── */
.value-card p,
.resource-card p,
.emergency-card p,
.pathway-row p,
.not-list li,
.state-resource .sr-note {
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffff;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ─── CARD LABELS ─── */
.value-name,
.r-label,
.line-label,
.p-label,
.sr-name,
.paradigm-header span {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── CARD TITLES ─── */
.r-name,
.line-name,
.prayer-title,
.pathway-row h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 0.35rem 0;
}

/* ─── PARADIGM TABLE ─── */
.paradigm-row .old,
.paradigm-row .new {
  font-family: "Lora", serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #ffffff;
}
.paradigm-row .new {
  font-style: italic;
  font-weight: 600;
}

/* ─── PRAYER CARD ─── */
.prayer-card .prayer-text {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.7;
}

/* ─── DOCUMENT DATE ─── */
.effective-date {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 36px;
}

/* ─── PAINTING CREDITS ─── */
.prayer-source,
.state-note,
.painting-credit span,
.hero-painting-credit,
.about-painting-credit {
  font-family: "Lora", serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(180, 110, 120, 0.55);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ─── CONTACT LINES ─── */
.r-contact,
.line-number,
.sr-contact {
  font-family: "Lora", serif;
  font-size: 1rem;
  color: var(--gold);
}

/* ─── RESOURCE INTROS ─── */
.resources-intro,
.state-intro {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 20px;
}

/* ─── POLICY BODY ─── */
.policy-body h3 {
  font-family: "Lora", serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.policy-body p {
  line-height: 1.7;
}
.policy-body strong {
  color: #ffffff;
  font-weight: 600;
}
.policy-body ul li {
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.65;
  border-left: 2px solid var(--gold);
}
.policy-body a {
  color: var(--gold);
  text-decoration: underline;
}
.policy-body a:hover {
  color: #ffffff;
}

/* ─── BUTTONS ─── */
.btn-gold {
  display: inline-block;
  padding: 13px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Lora", serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-quiet {
  display: inline-block;
  padding: 13px 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: "Lora", serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-quiet:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* ─── PULLQUOTE ─── */
.pullquote {
  background: transparent;
  padding: 48px 64px;
  text-align: center;
}
.pullquote blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: #ffffff;
  max-width: 720px;
  margin: 0 auto 22px;
  line-height: 1.55;
}
.pullquote cite {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 44px;
}

/* ─── FOOTER ─── */
footer {
  background: transparent;
  padding: 44px 64px;
}
.footer-inner {
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-brand span {
  display: block;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-family: "Lora", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
  text-decoration: none;
  transition: opacity 0.3s;
}
.footer-links a:hover,
.footer-links a.active {
  opacity: 1;
  color: var(--gold);
}
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 15px;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
}
.footer-copyright {
  margin-top: 16px;
  font-family: "Lora", serif;
  font-size: 13px;
  color: rgba(217, 180, 74, 0.5);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ─── HERO ─── */
.hero-eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
/* Hero h1 is slightly smaller than the standard page h1 */
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}
.hero-body {
  font-family: "EB Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #ffffff;
  line-height: 1.65;
}

/* ─── PATHWAYS ─── */
.pathways-heading {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: #ffffff;
  line-height: 1.2;
}
.pathways-heading em {
  color: var(--gold);
  font-style: italic;
}
.pathway-num {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.pathway-row h3 em {
  color: var(--gold);
  font-style: italic;
}
.pathway-cta {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.pathway-img-fallback {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(217, 180, 74, 0.4);
}

/* ─── ABOUT WIDGET (homepage inline section) ─── */
/* h2 inside .about-inner is smaller than the standard h2 */
.about-inner h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

/* ─── MISSION QUOTE ─── */
.mission-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1.45;
}
.not-list li strong {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}

/* ─── STATE ACCORDION ─── */
.state-btn {
  font-family: "Lora", serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}
.state-btn:hover {
  color: #ffffff;
}
.state-btn.open {
  color: var(--gold);
}
.state-panel h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--gold);
}

/* ─── RESOURCE CARD LINKS ─── */
.resource-card a {
  color: var(--gold);
  font-family: "Lora", serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ─── SURRENDER / OFFERING STREAM ─── */
.surrender-subhead {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
#offering-text {
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.65;
}
#offering-text::placeholder {
  font-style: italic;
}
.char-counter {
  font-family: "Lora", serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}
.offering-item {
  font-family: "EB Garamond", serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}
.crisis-response-inline {
  font-family: "Lora", serif;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.65;
}
.crisis-response-inline p {
  font-family: "Lora", serif;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}
.crisis-response-inline strong {
  color: var(--gold);
}
.crisis-response-inline a {
  color: var(--gold);
  text-decoration: underline;
}

/* ─── OFFERING STREAM ANIMATION ─── */
@keyframes offerFloat {
  0%   { opacity: 0; transform: translateY(0); }
  8%   { opacity: 0.85; }
  70%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-100vh); }
}
.offering-item {
  animation: offerFloat 28s ease-in forwards;
  padding: 5px 0;
  max-width: 520px;
  will-change: transform, opacity;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  nav,
  section,
  .page-header,
  .pullquote,
  footer {
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
}
