/* CFADD Pentateuch Panorama — base.css
   Navy and gold print system carried to the web. */

@font-face { font-family: "DM Serif Display"; src: url("/fonts/DMSerifDisplay-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* CFADD palette */
  --navy: #102147;
  --navy-2: #1a2e5c;
  --navy-deep: #0a1530;
  --gold: #B88A2A;
  --gold-2: #d6a847;
  --gold-soft: #f4efe0;
  --gold-faint: #faf6ea;
  --cream: #FBF8F0;
  --paper: #FFFFFF;
  --rule: #D9D2BF;
  --ink: #1A1A1A;
  --ink-soft: #2b2b2b;
  --sub: #4A4A4A;
  --mute: #7a7468;

  /* Type scale */
  --t-hero: clamp(2.6rem, 6vw, 5rem);
  --t-h1:   clamp(2rem, 4vw, 3rem);
  --t-h2:   clamp(1.4rem, 2.4vw, 2rem);
  --t-h3:   1.18rem;
  --t-body: 1.0625rem;
  --t-sm:   0.9375rem;
  --t-xs:   0.8125rem;
  --t-eyebrow: 0.78rem;

  /* Spacing */
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(3rem, 7vw, 6rem);
  --maxw: 1180px;
  --maxw-text: 720px;

  --shadow-sm: 0 1px 2px rgba(16,33,71,0.06), 0 2px 8px rgba(16,33,71,0.05);
  --shadow-md: 0 4px 12px rgba(16,33,71,0.08), 0 12px 32px rgba(16,33,71,0.08);
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display headings */
h1, h2, h3, .display {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* Utility */
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.on-navy { color: var(--gold-2); }
.kicker { color: var(--sub); font-size: var(--t-sm); }
.rule-gold { height: 2px; background: var(--gold); width: 64px; border: 0; margin: 0 0 1.4rem; }
.rule-thin { height: 1px; background: var(--rule); border: 0; margin: 2rem 0; }
.muted { color: var(--sub); }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container-text { max-width: var(--maxw-text); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

section { padding: var(--section) 0; }
section.tight { padding: calc(var(--section) * 0.6) 0; }

/* Top bar */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 2px solid var(--gold);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 34px !important; height: 34px !important; flex: 0 0 34px; max-width: 34px; max-height: 34px; display: inline-block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: "DM Serif Display", serif; font-size: 1.05rem; color: #fff; }
.brand__sub { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: #f5efe0; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.nav a.is-active { color: #fff; border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 0.4rem 0.65rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0; border-bottom: 2px solid var(--gold); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem var(--pad); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 0; border-radius: var(--radius);
  cursor: pointer; transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--gold); color: var(--navy);
}
.btn--primary:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--gold); }
.btn--outline {
  background: transparent; color: var(--navy); border: 1px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
.btn .arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero {
  background: var(--navy);
  color: #f4efe0;
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.hero::before {
  /* subtle topographic-style line */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(184,138,42,0.08), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(184,138,42,0.06), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 {
  color: #fff;
  font-size: var(--t-hero);
  line-height: 1.04;
  margin: 0.4rem 0 1rem;
}
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: #e5dec9; max-width: 38ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 1.4rem; margin-top: 1.8rem; font-size: var(--t-sm); color: #c8c0a8; }
.hero__meta strong { color: #fff; font-weight: 600; }
.hero__art { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1); background: var(--paper); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Section header */
.sec-head { text-align: left; max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards / grids */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card a.card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card__media { aspect-ratio: 5/4; background: var(--gold-soft); overflow: hidden; border-bottom: 1px solid var(--rule); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.3s; }
.card:hover .card__media img { transform: scale(1.025); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__eyebrow { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.35rem; }
.card__title { font-family: "DM Serif Display", serif; color: var(--navy); font-size: 1.25rem; line-height: 1.18; margin: 0 0 0.35rem; }
.card__meta { font-size: var(--t-sm); color: var(--sub); }

/* Chip / pill */
.chip {
  display: inline-block;
  font-size: var(--t-xs); font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft); color: var(--navy);
  letter-spacing: 0.04em;
}
.chip--navy { background: var(--navy); color: #fff; }
.chip--outline { background: transparent; border: 1px solid var(--rule); color: var(--sub); }

/* Color-coded book chip backgrounds */
.chip[data-book="Genesis"]      { background: #102147; color: #fff; }
.chip[data-book="Exodus"]       { background: #B88A2A; color: var(--navy); }
.chip[data-book="Leviticus"]    { background: #8a1f3b; color: #fff; }
.chip[data-book="Numbers"]      { background: #2e5d35; color: #fff; }
.chip[data-book="Deuteronomy"]  { background: #5a3c80; color: #fff; }

/* Eight-zone explainer */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.zone {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.4rem 1.2rem;
  background: var(--paper);
  position: relative;
}
.zone__n { font-family: "DM Serif Display", serif; color: var(--gold); font-size: 1.6rem; line-height: 1; }
.zone__name { font-weight: 700; color: var(--navy); margin: 0.4rem 0 0.4rem; font-size: 0.98rem; letter-spacing: 0.01em; }
.zone__desc { font-size: var(--t-sm); color: var(--sub); line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .zones { grid-template-columns: repeat(2,1fr); } }

/* Quote */
blockquote.pull {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  color: var(--navy);
  border: 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  max-width: 30ch;
}
blockquote.pull cite { display: block; font-family: "Inter", sans-serif; font-style: normal; font-size: 0.9rem; color: var(--sub); margin-top: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Banded section */
.band-navy { background: var(--navy); color: #f4efe0; }
.band-navy h2, .band-navy h1 { color: #fff; }
.band-navy .kicker { color: #c9c2aa; }
.band-cream { background: var(--cream); }
.band-paper { background: var(--paper); }
.band-gold { background: var(--gold-soft); }

/* Episode list */
.episode {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.episode__n {
  font-family: "DM Serif Display", serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.episode__title { font-family: "DM Serif Display", serif; color: var(--navy); font-size: 1.4rem; margin: 0 0 0.3rem; line-height: 1.2; }
.episode__sub { font-size: var(--t-sm); color: var(--sub); margin-bottom: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.episode__body p { margin: 0 0 0.6rem; }
.episode__cta .btn { white-space: nowrap; }
.episode__downloads { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.episode__downloads .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .episode { grid-template-columns: 1fr; gap: 0.6rem; }
  .episode__n { font-size: 1.5rem; }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c8c0a8;
  padding: 3rem 0 2rem;
  border-top: 2px solid var(--gold);
  margin-top: 4rem;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: "Inter", sans-serif; color: #fff; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer a { color: #e5dec9; text-decoration: none; display: block; padding: 0.2rem 0; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.site-footer__brand .brand__title { color: #fff; }
.site-footer__sub { font-size: 0.82rem; color: #9a937e; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Panorama detail */
.panorama-hero {
  background: var(--navy);
  color: #f4efe0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 2px solid var(--gold);
}
.panorama-hero__top { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 0.8rem; flex-wrap: wrap; }
.panorama-hero__n { font-size: var(--t-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.panorama-hero h1 { color: #fff; margin-bottom: 0.4rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.panorama-hero .range { font-size: 1.05rem; color: #c8c0a8; font-weight: 500; letter-spacing: 0.04em; }
.panorama-hero .blurb { font-size: 1.05rem; max-width: 56ch; margin-top: 1rem; line-height: 1.55; color: #e5dec9; }
.panorama-hero__ctas { margin-top: 1.6rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.panorama-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .panorama-detail { grid-template-columns: 1fr; } }
.panorama-preview {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  display: block;
}
.panorama-preview img { width: 100%; display: block; }
.panorama-side h3 { font-family: "DM Serif Display", serif; font-size: 1.35rem; color: var(--navy); font-weight: 400; letter-spacing: 0; margin: 1.2rem 0 0.5rem; }
.panorama-side h3:first-child { margin-top: 0; }
.panorama-side .christward {
  background: var(--navy);
  color: #f4efe0;
  padding: 1.4rem 1.4rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.panorama-side .christward h3 { color: #fff; margin-top: 0; }
.panorama-side .christward p { color: #e5dec9; margin: 0; }

.pn-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--rule); margin-top: 2rem; }
.pn-nav a { text-decoration: none; color: var(--navy); font-weight: 600; display: flex; flex-direction: column; }
.pn-nav small { color: var(--sub); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.2rem; }
.pn-nav a:hover { color: var(--gold); }
.pn-nav a + a { text-align: right; align-items: flex-end; }

/* Order page form */
.order-form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: "Inter", sans-serif; font-size: 1rem;
  border: 1px solid var(--rule); padding: 0.7rem 0.85rem;
  border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,138,42,0.18); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

/* Tier cards */
.tier { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.tier__name { font-family: "DM Serif Display", serif; font-size: 1.6rem; color: var(--navy); margin: 0 0 0.4rem; }
.tier__price { font-family: "DM Serif Display", serif; color: var(--gold); font-size: 1.8rem; margin: 0.4rem 0 1rem; }
.tier ul { padding-left: 1.1rem; margin: 0 0 1.4rem; color: var(--sub); font-size: var(--t-sm); }
.tier ul li { margin-bottom: 0.4rem; }
.tier.featured { background: var(--navy); color: #f4efe0; border-color: var(--navy); }
.tier.featured .tier__name { color: #fff; }
.tier.featured .tier__price { color: var(--gold-2); }
.tier.featured ul { color: #c8c0a8; }
.tier .btn { margin-top: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Filter bar */
.filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 1rem 0 2rem; }
.filter-btn {
  font-family: "Inter", sans-serif; font-weight: 600;
  background: transparent; border: 1px solid var(--rule);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.88rem; color: var(--navy); cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Reveal animation — cards always visible. The animation is a subtle entrance only. */
.reveal { transition: transform 0.5s ease, opacity 0.5s ease; opacity: 1; transform: translateY(0); }
.reveal.reveal--armed { opacity: 0; transform: translateY(10px); }
.reveal.reveal--in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 0; top: 0; background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; z-index: 100; }
