/* =====================================================================
   STYLESHEET
   ---------------------------------------------------------------------
   Design tokens, a minimal reset, and page styles.
   Every text/background color pair must meet WCAG AA contrast.
   ===================================================================== */


/* =========================================================
   TOKENS
   ========================================================= */
:root{
  /* Surfaces */
  --bg: #FDFBF7;                /* parchment page background */
  --surface: #FEFDFA;           /* alternate section background */
  --card: #FFFFFF;

  /* Brand */
  --green: #1E6129;             /* logo wordmark green; primary */
  --green-hover: #164A1F;
  --green-deep: #163F1D;        /* dark sections */
  --leaf: #4A8A4C;              /* decorative only */
  --gold: #C89A06;              /* decorative only (cross, rules) */
  --gold-ink: #7E6100;          /* gold text on light surfaces */
  --gold-2: #E2BC4A;            /* gold text on dark surfaces */

  /* Text */
  --ink: #29261F;
  --ink-soft: #5A5347;
  --on-dark: #FBF8F1;
  --on-dark-soft: #D9D3C3;

  /* Lines */
  --rule: rgba(41,38,31,.12);
  --rule-strong: rgba(41,38,31,.22);

  /* Type */
  --heading: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1320px;
  --gut: clamp(20px, 4vw, 56px);
  --nav-h: 100px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(22,63,29,.35);
}


/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.15; margin: 0; color: var(--green-deep); }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--surface); }
.section.white { background: var(--card); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 8px;
}
.h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.lede { font-size: inherit; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--green); transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }


/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 20px -14px rgba(0,0,0,.25); }
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); }
.brand:hover { color: var(--green-deep); }
.brand-mark { width: 30px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .01em; }
.brand-by { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--green); background: rgba(30,97,41,.08); }
.nav-links .nav-cta { background: var(--green); color: #fff; padding: 9px 18px; border-radius: 999px; margin-left: 8px; }
.nav-links .nav-cta:hover, .nav-links .nav-cta.is-active { background: var(--green-hover); color: #fff; }

.menu-btn {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 10px;
  background: transparent; color: var(--green-deep); align-items: center; justify-content: center;
}
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1080px){
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gut) 20px; background: #fff;
    border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px -20px rgba(0,0,0,.3);
    display: none;
  }
  .nav[data-open="true"] .nav-links { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav-links .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 999px; border-bottom: 0; }
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(80px, 9vw, 128px);
  background:
    radial-gradient(28% 50% at 76% 50%, rgba(255,255,255,.98), rgba(255,255,255,.55) 40%, rgba(255,255,255,0) 72%),
    radial-gradient(34% 82% at 79% 52%, rgba(255,252,242,.7), rgba(255,252,242,0) 74%),
    radial-gradient(45% 100% at 84% 58%, rgba(255,246,222,.38), rgba(255,246,222,0) 80%),
    linear-gradient(180deg, #0E2A14 0%, #163F1D 38%, #4B5F2A 72%, #B58D3E 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 42%; z-index: 1; pointer-events: none; }
.hero h1 { color: var(--on-dark); }
.hero .eyebrow { color: var(--gold-2); }
.hero .lede { color: #E4DECF; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--green-deep); }
.hero .btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--green-deep); }
.hero .btn-ghost { color: var(--on-dark); border-color: var(--on-dark); }
.hero .btn-ghost:hover { background: var(--on-dark); color: var(--green-deep); }
@media (max-width: 860px){
  .hero { background:
    radial-gradient(85% 44% at 50% 26%, rgba(255,255,255,.95), rgba(255,255,255,0) 72%),
    linear-gradient(180deg, #0E2A14 0%, #163F1D 45%, #4B5F2A 80%, #B58D3E 100%); }
  .hero-hills { height: 18%; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 14px; }
.hero .eyebrow { margin-bottom: 4px; }
.hero .subtitle { font-family: var(--heading); font-style: italic; font-size: clamp(20px, 2.1vw, 26px); color: var(--gold-2); margin: 0 0 24px; }
.hero .lede { max-width: 52ch; margin-bottom: 32px; }
.hero-cover { justify-self: center; position: relative; width: min(100%, 400px); }
.hero-cover::before {
  content: ""; position: absolute; inset: -16% -46% -18% -20%; z-index: 0;
  background: radial-gradient(closest-side, #fff, rgba(255,255,255,.75) 35%, rgba(255,252,242,.3) 65%, transparent);
}
.hero-cover img {
  position: relative; z-index: 1; width: 100%; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(22,63,29,.45), 0 4px 10px rgba(0,0,0,.12);
  transform: rotate(1.5deg);
}
.hero-note { margin-top: 20px; font-size: 15px; color: #F1ECE0; }
@media (max-width: 860px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover { order: -1; width: min(70%, 300px); }
}


/* =========================================================
   THE BOOK
   ========================================================= */
.book-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.book-copy p { color: var(--ink); }
.book-copy .pull {
  font-family: var(--display); font-size: clamp(23px, 2.2vw, 28px); line-height: 1.3;
  color: var(--green-deep); font-style: italic; margin: 0 0 24px;
}
.signoff { font-family: var(--display); font-size: 22px; font-style: italic; color: var(--green-deep); margin: 28px 0 0; }
.signoff span { display: block; font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--ink-soft); margin-top: 4px; }

.inside {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow);
}
@media (min-width: 861px){ .inside { position: sticky; top: calc(var(--nav-h) + 32px); } }
.inside h3 { font-size: 25px; margin-bottom: 18px; }
.inside ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.inside li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.inside li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30,97,41,.1); color: var(--green); font-weight: 700; font-size: 15px;
}
.inside li strong { display: block; color: var(--green-deep); }
.inside li span { color: var(--ink-soft); font-size: 16px; }

.order-band { background: var(--green-deep); color: var(--on-dark); padding: clamp(48px, 6vw, 72px) 0; }
.order { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.order h2 { color: var(--on-dark); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.order p { color: var(--on-dark-soft); margin: 0; }
.order .btn-row { justify-content: flex-end; }
.btn-retailer { background: #fff; border-color: #fff; min-width: 176px; min-height: 60px; padding: 14px 28px; }
.btn-retailer img { height: 26px; width: auto; }
.btn-retailer img[src*="barnes"] { height: 20px; }
.btn-retailer:hover { border-color: var(--gold-2); box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 860px){
  .book-grid { grid-template-columns: 1fr; }
  .order { grid-template-columns: 1fr; }
  .order .btn-row { justify-content: center; }
  .order .btn-retailer { width: 200px; }
}


/* =========================================================
   SAMPLE DEVOTIONAL
   ========================================================= */
#sample { overflow-x: clip; }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sample-copy .lede { margin-bottom: 28px; }
.sample-in { font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.sample-list { list-style: none; margin: 0 0 32px; padding: 0; }
.sample-list li { padding: 12px 0 12px 30px; border-top: 1px solid var(--rule); position: relative; }
.sample-list li:last-child { border-bottom: 1px solid var(--rule); }
.sample-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.sample-list strong { display: block; color: var(--green-deep); }
.sample-list span { font-size: 16px; color: var(--ink-soft); }

/* Preview: a book page that fades out, with a read-now overlay */
.sample-preview { position: relative; display: flex; justify-content: center; }
.sample-preview::before, .sample-preview::after {
  content: ""; position: absolute; width: min(100%, 460px); height: 92%; top: 4%;
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
}
.sample-preview::before { transform: rotate(-5deg) translateX(-10px); box-shadow: var(--shadow); }
.sample-preview::after { transform: rotate(3deg) translateX(10px); }
.preview-page {
  position: relative; z-index: 1; display: block; width: min(100%, 460px); height: 560px;
  padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: #fff;
  text-align: left; color: var(--ink); overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(22,63,29,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.preview-page:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -24px rgba(22,63,29,.55); }
.preview-page:has(.pp-cta:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; }
.pp-cta::before { content: ""; position: fixed; inset: 0; }
.preview-page { transform: translateZ(0); }
.pp-cta:focus-visible { outline: none; }
.pp-paper { display: block; padding: 44px 44px 0; }
.pp-paper::after {
  content: ""; position: absolute; inset: 35% 0 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 55%, #fff 100%);
}
.pp-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); text-align: center; margin-bottom: 10px; }
.pp-title { display: block; font-family: var(--heading); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--green-deep); text-align: center; margin-bottom: 22px; }
.pp-scripture { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.6; padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(200,154,6,.07); margin-bottom: 22px; }
.pp-scripture em { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 12px; color: var(--gold-ink); margin-top: 6px; }
.pp-poem { display: block; font-family: var(--display); font-size: 19px; line-height: 1.5; }
.pp-cta {
  position: absolute; left: 0; right: 0; bottom: 44px; width: max-content; margin: 0 auto;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 28px; border-radius: 999px; background: var(--green); color: #fff;
  font: inherit; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(22,63,29,.6);
  transition: background .2s;
}
.pp-cta svg { width: 20px; height: 20px; }
/* Recurring shimmer sweep */
.pp-cta { overflow: hidden; }
.pp-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0));
  transform: skewX(-20deg); pointer-events: none;
  animation: pp-shimmer 3.6s ease-in-out 1s infinite;
}
@keyframes pp-shimmer { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce){ .pp-cta::after { animation: none; display: none; } }
.preview-page:hover .pp-cta { background: var(--green-hover); }
@media (max-width: 860px){
  .sample-grid { grid-template-columns: 1fr; }
  .preview-page { height: 440px; }
  .sample-preview::before, .sample-preview::after { width: 88%; }
  .pp-paper { padding: 32px 28px 0; }
}

/* Full reading dialog */
.sample-dialog {
  width: min(94vw, 820px); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}
.sample-dialog::backdrop { background: rgba(14,40,19,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sample-dialog[open] { animation: od-in .22s ease-out; }
.sample-dialog .od-close { position: sticky; top: 12px; margin: 12px 12px -56px auto; display: grid; z-index: 2; background: rgba(255,255,255,.9); }
.sample-dialog .page { max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.sd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(24px, 7vw, 88px); background: var(--surface); border-top: 1px solid var(--rule); }
.sd-foot p { margin: 0; font-family: var(--display); font-size: 24px; color: var(--green-deep); }
@media (prefers-reduced-motion: reduce){ .sample-dialog[open] { animation: none; } .preview-page, .preview-page:hover { transition: none; transform: translateZ(0); } }
.page {
  max-width: 760px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 72px) clamp(24px, 7vw, 88px);
}
.page h2 { font-size: clamp(28px, 3.4vw, 38px); text-align: center; margin-bottom: 28px; }
.scripture {
  margin: 0 0 36px; padding: 20px 24px; border-left: 3px solid var(--gold);
  background: rgba(200,154,6,.07); border-radius: 0 10px 10px 0;
}
.scripture p { font-family: var(--serif); font-style: italic; color: var(--ink); margin: 0 0 8px; }
.scripture cite { font-style: normal; font-weight: 600; font-size: 15px; color: var(--gold-ink); }
.poem { font-family: var(--display); font-size: clamp(21px, 2.2vw, 24px); line-height: 1.5; color: var(--ink); }
.poem p { margin: 0 0 1.1em; }
.page h3 {
  font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin: 40px 0 16px; padding-top: 32px; border-top: 1px solid var(--rule);
}
.prompts { margin: 0; padding-left: 22px; }
.prompts li { margin-bottom: 16px; }
.prompts li strong { display: block; font-weight: 600; color: var(--ink); }
.prompts li span { color: var(--ink-soft); font-size: 16px; }
.songs { list-style: none; margin: 0; padding: 0; }
.songs li { padding: 10px 0; border-bottom: 1px dashed var(--rule-strong); }
.songs li:last-child { border-bottom: 0; }
.songs em { color: var(--ink-soft); font-style: normal; }


/* =========================================================
   QUOTE BAND
   ========================================================= */
.band { position: relative; overflow: hidden; color: var(--on-dark); text-align: center; }
.band-bg { position: absolute; inset: 0; }
.band-bg picture, .band-bg img { width: 100%; height: 100%; }
.band-bg img { object-fit: cover; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,40,19,.78), rgba(14,40,19,.86)); }
.band .wrap { position: relative; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px); }
.band blockquote { margin: 0 auto; max-width: 980px; }
.band blockquote p { font-family: var(--display); font-size: clamp(34px, 5vw, 64px); line-height: 1.2; font-weight: 600; margin: 0; }
.band blockquote p em { color: var(--gold-2); }
.band cite { display: block; margin-top: 24px; font-style: normal; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }


/* =========================================================
   DAILY PRAYER
   ========================================================= */
.prayer { background: var(--green-deep); color: var(--on-dark); }
.prayer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.prayer-img img { border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.prayer .eyebrow { color: var(--gold-2); }
.prayer .h2 { color: var(--on-dark); }
.prayer-date { color: var(--on-dark-soft); font-size: 15px; margin: -8px 0 28px; }
.prayer-text { font-family: var(--display); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--on-dark); }
.prayer-text p { margin: 0 0 .5em; }
.prayer-text .amen { color: var(--gold-2); font-style: italic; margin-top: 1em; }
@media (max-width: 860px){
  .prayer-grid { grid-template-columns: 1fr; }
  .prayer-img { max-width: 420px; }
}


/* =========================================================
   PROJECT HOPE
   ========================================================= */
.ph-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.ph-logo { background: var(--card); border-radius: 24px; padding: 40px 48px; box-shadow: 0 30px 60px -18px rgba(22,63,29,.35), 0 10px 24px -8px rgba(0,0,0,.12); max-width: 360px; width: 100%; justify-self: center; }
.ph-logo img { margin: 0 auto; max-width: 240px; width: 100%; }
.ph-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ph-points li { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; }
.ph-points strong { display: block; font-family: var(--heading); font-weight: 500; font-size: 18px; color: var(--green-deep); line-height: 1.2; margin-bottom: 4px; }
.ph-points span { font-size: 15px; color: var(--ink-soft); }
.ph-close { font-family: var(--display); font-size: clamp(22px, 2.2vw, 26px); font-style: italic; color: var(--green); margin-top: 28px; }
@media (max-width: 860px){
  .ph-grid { grid-template-columns: 1fr; }
  .ph-logo { max-width: 260px; }
  .ph-points { grid-template-columns: 1fr; }
}


/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--green-deep); padding: 6px; }
.gal-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-grid .ph {
  flex: var(--ar) 1 calc(var(--ar) * 300px); margin: 0; overflow: hidden; cursor: zoom-in; position: relative;
}
.gal-grid .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.gal-grid .ph:hover img, .gal-grid .ph:focus-visible img { transform: scale(1.04); filter: brightness(1.05); }
.gal-grid .ph:focus-visible { outline: 3px solid var(--gold-2); outline-offset: -3px; }
@media (max-width: 600px){ .gal-grid .ph { flex-basis: calc(var(--ar) * 150px); } }
@media (prefers-reduced-motion: reduce){ .gal-grid .ph img { transition: none; } .gal-grid .ph:hover img { transform: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10,20,12,.92); padding: 24px; align-items: center; justify-content: center;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lb-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  display: grid; place-items: center;
}
.lb-close svg { width: 24px; height: 24px; }
body.lb-open { overflow: hidden; }


/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-img { position: relative; z-index: 0; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img::after {
  content: ""; position: absolute; z-index: -1; inset: 24px -24px -24px 24px;
  border: 2px solid var(--gold); border-radius: var(--radius);
}
.about-copy .lead { font-family: var(--display); font-size: clamp(22px, 2.1vw, 26px); line-height: 1.35; color: var(--green-deep); margin-bottom: 20px; }
.about-copy .closer { font-weight: 600; color: var(--green-deep); }
@media (max-width: 860px){
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 520px; margin-right: 24px; }
}


/* =========================================================
   UPCOMING BOOKS
   ========================================================= */
.up-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.up-head .eyebrow { justify-content: center; }
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.up-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.up-cover { background: var(--surface); padding: 28px 28px 0; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 4 / 4.2; }
.up-cover picture { display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.up-cover img { width: 70%; border-radius: 4px 4px 0 0; box-shadow: 0 -6px 24px -8px rgba(0,0,0,.35); }
.up-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.badge {
  align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: rgba(30,97,41,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.up-body h3 { font-size: 23px; margin-bottom: 4px; }
.up-body .sub { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold-ink); margin-bottom: 14px; }
.up-body p { font-size: 16px; color: var(--ink-soft); }
.up-note { margin-top: 32px; text-align: center; color: var(--ink-soft); }
@media (max-width: 960px){ .up-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }


/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--rule); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 3px; }
.contact-list strong { display: block; color: var(--green-deep); }

.form-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.form-card h3 { font-size: 25px; margin-bottom: 20px; }
/* Pre-load height floor only; form_embed.js sets the real height. */
.qf-embed iframe { display: block; width: 100%; min-height: 320px; border: 0; background: transparent; }
.form-fine { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--green-deep); color: var(--on-dark-soft); padding: 64px 0 32px; font-size: 15px; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--gold-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--on-dark); }
.footer .brand-by { color: var(--on-dark-soft); }
.footer h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.foot-tag { margin-top: 16px; max-width: 36ch; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot-base p { margin: 0; }
.foot-base .sep { margin: 0 10px; opacity: .5; }
.foot-credit { display: inline-flex; }
.foot-credit img { display: block; width: 112px; height: auto; opacity: .8; transition: opacity .3s ease; }
.foot-credit:hover img, .foot-credit:focus-visible img { opacity: 1; }
@media (max-width: 600px){ .foot-base { flex-direction: column; text-align: center; } }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr; } }


/* =========================================================
   LEGAL PAGE (privacy policy)
   ========================================================= */
.legal { padding: calc(var(--nav-h) + 56px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 8px; }
.legal h2 { font-size: 25px; margin: 40px 0 12px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 32px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }


/* =========================================================
   ORDER DIALOG
   ========================================================= */
.order-dialog {
  width: min(92vw, 640px); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}
.order-dialog::backdrop { background: rgba(14,40,19,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.order-dialog[open] { animation: od-in .22s ease-out; }
@keyframes od-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .order-dialog[open] { animation: none; } }
.od-body { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; padding: 40px; }
.od-cover img { border-radius: 4px; box-shadow: 0 16px 30px -12px rgba(22,63,29,.5); }
.order-dialog h2 { font-size: clamp(24px, 3.4vw, 28px); margin-bottom: 6px; }
.od-sub { color: var(--ink-soft); margin-bottom: 20px; }
.od-stores { display: grid; gap: 10px; }
.od-stores .btn-retailer { border-color: var(--rule-strong); }
.od-stores .btn-retailer:hover { border-color: var(--green); }
.od-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft); display: grid; place-items: center;
}
.od-close:hover { background: rgba(30,97,41,.1); color: var(--green); }
.od-close svg { width: 22px; height: 22px; }
body.od-open { overflow: hidden; }
@media (max-width: 560px){
  .od-body { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px 28px; text-align: center; }
  .od-cover { width: 120px; margin: 0 auto; }
  .order-dialog .eyebrow { justify-content: center; }
}
