/* =========================================================
   COME & SEE — landing page styles
   Palette and type are set once here; adjust to match the
   final cover once the artwork is in hand.
   ========================================================= */
:root {
  /* Sampled from the COME & SEE cover */
  --cream: #FDF4E4;        /* page background */
  --ivory: #FFFAF1;
  --peach: #FCEDD3;        /* cover paper */
  --sage-100: #F1F0DA;     /* pale leaf green (back-cover theme band) */
  --sage-300: #E0DDB8;     /* soft borders */
  --sage-500: #7D8732;     /* olive leaf, decorative */
  --green-700: #1F4D25;    /* links, buttons */
  --green-900: #052F0C;    /* title + spine forest green */
  --sunrise: #E94E06;      /* brush-stroke orange, decorative / large text */
  --sunrise-ink: #B33800;  /* text-safe orange */
  --gold: #F2A93B;         /* sunrise gold, decorative */
  --ink: #2B2418;
  --ink-soft: #57493A;

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-ui: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(60, 35, 5, .4);
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: .2em; }
a:hover { color: var(--sunrise-ink); }
:focus-visible { outline: 3px solid var(--sunrise-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--green-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-900); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(var(--measure), 100% - 2.5rem); }

.eyebrow {
  font-family: var(--font-ui); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sunrise-ink); margin-bottom: .75rem;
}

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.25rem; }
.wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; color: var(--green-900); text-decoration: none; font-size: 1.05rem; }
.wordmark span { color: var(--sunrise-ink); }
.site-header__link { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .8rem 1.7rem; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: .92rem; letter-spacing: .04em;
  text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--green-700); color: var(--ivory); }
.btn--primary:hover { background: var(--green-900); color: var(--ivory); transform: translateY(-1px); }
.btn--light { background: var(--ivory); color: var(--green-900); }
.btn--light:hover { background: var(--cream); color: var(--green-900); }
.btn--placeholder {
  background: transparent; color: var(--ink-soft); border: 2px dashed var(--sage-500);
  cursor: not-allowed; flex-wrap: wrap; text-align: center;
}
.btn--placeholder small { font-weight: 400; font-size: .85em; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Placeholders (missing assets) ---------- */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  text-align: center; padding: 1.25rem; color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, var(--sage-100) 0 14px, var(--ivory) 14px 28px);
  border: 2px dashed var(--sage-500); border-radius: var(--radius);
}
.placeholder__label { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--green-700); }
.placeholder__note { font-family: var(--font-ui); font-size: .8rem; max-width: 16rem; }
.placeholder--cover { aspect-ratio: 2 / 3; width: 100%; box-shadow: var(--shadow); }
.placeholder--page { aspect-ratio: 8.5 / 11; width: 100%; }
.placeholder--portrait { aspect-ratio: 1; width: 100%; border-radius: 50%; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 6.5rem 0 7rem; isolation: isolate; }
.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(46rem 22rem at 72% 92%, rgba(252, 189, 87, .55), transparent 65%),
    radial-gradient(28rem 14rem at 72% 95%, rgba(253, 168, 73, .45), transparent 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--peach) 100%);
}
.hero__mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; z-index: -1; }
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__title { font-size: clamp(3.8rem, 15vw, 6.4rem); font-weight: 800; letter-spacing: .01em; line-height: .92; margin-bottom: 0; }
.hero__line { display: block; }
.hero__title .amp { color: var(--sunrise); font-style: italic; font-weight: 700; margin-right: .06em; }
.swash { display: block; width: min(15rem, 70%); height: 14px; color: var(--sunrise); margin: .7rem 0 1.1rem; }
.hero__subtitle { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 1.85rem); line-height: 1.25; color: var(--green-900); margin-bottom: 1.5rem; }
.hero__lede { font-family: var(--font-body); font-size: clamp(1.2rem, 2.6vw, 1.4rem); font-weight: 600; color: var(--ink); line-height: 1.35; max-width: 30rem; }
.hero__body { color: var(--ink-soft); max-width: 34rem; }
.hero__byline { font-family: var(--font-ui); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .2em; color: var(--green-700); margin-bottom: 1.4rem; }
.hero__text .btn { display: flex; width: fit-content; }
.hero__offer { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .7rem; margin: 0 0 1rem; }
.hero__price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--green-900); line-height: 1; }
.hero__shipping { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--green-700); }
.hero__bonus { margin: 1rem 0 0; max-width: 30rem; font-size: .98rem; color: var(--ink-soft); padding-left: .85rem; border-left: 3px solid var(--gold); }
.hero__bonus strong { color: var(--sunrise-ink); font-family: var(--font-ui); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.hero__cover { width: min(300px, 72%); margin-inline: auto; }
.hero__subtitle { margin-bottom: 0 !important; }
.hero__cover img { width: 100%; border-radius: 4px; box-shadow: 0 30px 50px -24px rgba(60, 35, 5, .55), 0 2px 6px rgba(60, 35, 5, .15); }

@media (min-width: 860px) {
  .hero { padding: 8.5rem 0 9rem; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; grid-template-areas: "heading cover" "text cover"; column-gap: 4rem; row-gap: 1.5rem; }
  .hero__heading { grid-area: heading; align-self: end; }
  .hero__text { grid-area: text; align-self: start; }
  .hero__cover { grid-area: cover; }
  .hero__cover { width: min(380px, 100%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--ivory { background: var(--ivory); }
.section--sage { background: var(--sage-100); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head__intro { color: var(--ink-soft); }
.prose p { color: var(--ink-soft); }
.prose .pull {
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.5rem; line-height: 1.35;
  color: var(--green-700); border-left: 3px solid var(--gold); padding-left: 1.1rem; margin-block: 1.6rem;
}
.signature { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.35rem; color: var(--green-700) !important; }

/* ---------- 3. Themes ---------- */
.themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.theme {
  background: var(--ivory); border: 1px solid var(--sage-300); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; position: relative;
}
.theme::before { content: ""; position: absolute; left: 1.5rem; top: 0; width: 2.5rem; height: 3px; background: var(--sunrise); border-radius: 0 0 3px 3px; }
.theme__num { display: block; font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--sage-500); margin-bottom: .2rem; }
.theme h3 { margin-bottom: .3rem; }
.theme p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* ---------- 4. Gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.page { margin: 0; scroll-snap-align: start; }
.page img, .page .placeholder { border-radius: 6px; box-shadow: var(--shadow); background-color: var(--ivory); }
.page img { width: 100%; aspect-ratio: 480 / 627; object-fit: cover; }
.page__link { display: block; border-radius: 6px; cursor: zoom-in; transition: transform .2s; }
.page__link:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .page__link { transition: none; } .page__link:hover { transform: none; } }
.page figcaption { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; text-align: center; }
.gallery__hint { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); text-align: center; margin: 0; }
@media (min-width: 980px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .gallery__hint { display: none; }
}

/* ---------- 5. Fit list ---------- */
.fit-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.fit-list li {
  position: relative; padding: 1rem 1.2rem 1rem 3.2rem; background: var(--cream);
  border-radius: var(--radius); color: var(--ink);
}
.fit-list li::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.45rem; width: 1rem; height: 1rem;
  border-radius: 50% 0 50% 0; background: var(--sage-500); transform: rotate(-10deg);
}

/* ---------- 6. Editions ---------- */
.editions { display: grid; gap: 1.25rem; max-width: 52rem; }
@media (min-width: 720px) { .editions { grid-template-columns: 1fr 1fr; } }
.edition {
  background: var(--ivory); border: 1px solid var(--sage-300); border-radius: var(--radius);
  padding: 2rem 1.75rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.edition__where { color: var(--ink-soft); }
.edition__price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--green-900); margin: .25rem 0 1.5rem; }
.edition__note { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--green-700); margin: -1.2rem 0 1.5rem; }
.edition--featured { border: 2px solid var(--green-700); }
.editions--single { grid-template-columns: 1fr !important; }
@media (min-width: 720px) {
  .editions--single .edition {
    display: grid; grid-template-columns: 1fr minmax(15rem, auto); column-gap: 2.5rem; align-items: start;
  }
  .editions--single .edition > h3,
  .editions--single .edition__where,
  .editions--single .edition__bonus { grid-column: 1; }
  .editions--single .edition > h3 { grid-row: 1; }
  .editions--single .edition__where { grid-row: 2; }
  .editions--single .edition__bonus { grid-row: 3; }
  .editions--single .edition__price { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; text-align: center; }
  .editions--single .edition__note { grid-column: 2; grid-row: 3; margin: .2rem 0 .9rem; text-align: center; }
  .editions--single .edition .btn { grid-column: 2; grid-row: 4; margin-top: 0; }
  .editions--single .edition > h3 { margin-bottom: .3rem; }
}
.edition__price--tbc { font-size: 1.5rem; font-style: italic; color: var(--ink-soft); }
.edition .btn { margin-top: auto; }
.edition__bonus { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--sunrise-ink); margin: .1rem 0 0; }

/* Free bonus: Digital Devotional Companion */
.bonus {
  max-width: 52rem; margin-top: 1.5rem; padding: 2rem 1.75rem;
  background: var(--sage-100); border: 1px solid var(--sage-300); border-left: 6px solid var(--gold);
  border-radius: var(--radius);
}
.bonus h3 { margin-bottom: .6rem; }
.bonus__ways { display: grid; gap: 1rem; margin: 1.4rem 0 1.2rem; }
@media (min-width: 720px) { .bonus__ways { grid-template-columns: 1fr 1fr; } }
.bonus__way { background: var(--ivory); border-radius: 12px; padding: 1.1rem 1.2rem; }
.bonus__way h4 { font-family: var(--font-ui); font-size: .9rem; font-weight: 700; letter-spacing: .02em; color: var(--green-900); margin: 0 0 .35rem; }
.bonus__way p { margin: 0; font-size: 1rem; }
.bonus__way a { overflow-wrap: anywhere; }
.bonus__open { font-family: var(--font-ui); font-size: .9rem; font-weight: 600; margin: 0; }

/* ---------- 7. Author ---------- */
.author { display: grid; gap: 2.5rem; align-items: start; }
.author__photo { width: min(260px, 70%); margin-inline: auto; }
.author__photo img { width: 100%; border-radius: 50%; border: 6px solid var(--ivory); box-shadow: 0 0 0 2px var(--sage-300), var(--shadow); }
@media (min-width: 860px) {
  .author { grid-template-columns: 300px 1fr; gap: 4rem; }
  .author__photo { width: 100%; position: sticky; top: 2rem; }
}
.author__text { max-width: var(--measure); }
.connect { margin-top: 2rem; padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--sage-100); }
.connect h3 { font-size: 1.35rem; }
.connect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.connect li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.connect li span { min-width: 5.5rem; font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: .25rem; }
.connect a { word-break: break-word; }

/* ---------- 8. Closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--green-900); color: var(--cream); text-align: center; padding: clamp(4.5rem, 10vw, 7rem) 0; isolation: isolate; }
.closing__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 20rem at 50% 110%, rgba(253, 168, 73, .38), transparent 70%); }
.closing h2 { color: var(--ivory); }
.closing p { color: #E7E4D8; }
.closing__final { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.6rem; color: #FCBD57 !important; margin: 1.25rem 0 2rem; }
.swash--closing { margin: -.2rem auto 1.4rem; width: 12rem; }
.sprig { width: 120px; color: #B9B45A; margin: 0 auto 1.25rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); border-top: 1px solid rgba(255,255,255,.1); color: #CFCBBE; padding: 2rem 0 2.5rem; font-size: .95rem; }
.site-footer__inner { display: grid; gap: .75rem; text-align: center; justify-items: center; }
.site-footer__title { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ivory); margin: 0; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: #FCBD57; }
.site-footer a:hover { color: var(--ivory); }
.site-footer__copy { margin: 0; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 30, 10, .82); }
.lightbox__img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lightbox__caption { font-family: var(--font-ui); font-size: .85rem; color: var(--ivory); text-align: center; margin: .8rem 0 0; }
.lightbox__close {
  position: absolute; top: -.6rem; right: -.6rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ivory); color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
@media (max-width: 600px) { .lightbox__close { top: .4rem; right: .4rem; } }
