/* Scripture & Stone — clintjohnson.cloud
   Palette lifted from the app: gold #b8892f accent, terracotta #c06030 pin,
   warm dark stone ground. Serif display face to match the app's location titles. */

:root {
  --gold:        #c9a14a;
  --gold-deep:   #b8892f;
  --terracotta:  #c06030;
  --ink:         #0f0e0c;
  --stone:       #17150f;
  --stone-2:     #201d16;
  --line:        rgba(201, 161, 74, 0.18);
  --text:        #ece7dc;
  --text-dim:    #a49c8c;
  --maxw:        1080px;
  --radius:      16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Warm vignette so the page doesn't read as flat black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(184, 137, 47, 0.16), transparent 70%),
    radial-gradient(700px 400px at 88% 12%, rgba(192, 96, 48, 0.09), transparent 70%);
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
  /* Backstop: if the brand and nav ever can't share a row, wrap instead of
     pushing the nav past the viewport edge and making the page scroll sideways. */
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 9px; display: block; flex-shrink: 0; }
.brand-name {
  font-family: Cinzel, Georgia, serif; font-size: 19px; font-weight: 600;
  color: var(--text); letter-spacing: 0.02em; white-space: nowrap;
}
.nav { display: flex; gap: 22px; font-size: 16px; }
.nav a { color: var(--text-dim); }
.nav a:hover { color: var(--gold); text-decoration: none; }

/* ---------------------------------------------------------------- hero */

.hero { text-align: center; padding: 76px 0 56px; }
.hero-icon {
  width: 118px; height: 118px; border-radius: 26px; display: block; margin: 0 auto 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 161, 74, 0.22);
}
.hero h1 { font-size: clamp(38px, 6.4vw, 62px); margin-bottom: 12px; }
.tagline {
  font-style: italic; font-size: clamp(19px, 2.6vw, 24px);
  color: var(--gold); margin: 0 0 22px;
}
.hero-lede {
  max-width: 640px; margin: 0 auto 34px;
  color: var(--text-dim); font-size: 20px;
}

/* App Store call to action.
   NOTE: this is intentionally NOT an imitation of Apple's official badge —
   Apple's guidelines require their own unmodified artwork. See README.md. */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a1509; font-family: Cinzel, Georgia, serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.03em;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(184, 137, 47, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 32px rgba(184, 137, 47, 0.38); }
.cta[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.cta-note { display: block; margin-top: 14px; font-size: 15px; color: var(--text-dim); }

.price-line { margin-top: 18px; font-size: 16px; color: var(--text-dim); }
.price-line strong { color: var(--text); font-weight: 600; }

.hero-banner {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0 0 8px;
}

/* ---------------------------------------------------------------- sections */

/* scroll-margin keeps the heading clear of the sticky header when an
   anchor link (#screens, #journeys) jumps to it. */
section { padding: 62px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
section > .wrap > h2 { font-size: clamp(27px, 3.6vw, 36px); text-align: center; margin-bottom: 10px; }
.section-lede {
  text-align: center; color: var(--text-dim); max-width: 620px;
  margin: 0 auto 44px; font-size: 18px;
}

/* screenshots */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 22px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 161, 74, 0.35) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb {
  background: rgba(201, 161, 74, 0.3); border-radius: 999px;
}
.shots::-webkit-scrollbar-thumb:hover { background: rgba(201, 161, 74, 0.5); }
.shot { margin: 0; flex: 0 0 auto; width: 250px; scroll-snap-align: center; }
.shot img {
  height: auto;
  width: 100%; border-radius: 22px; display: block;
  /* Reserve the slot before the image loads. These are lazy-loaded and the
     off-screen ones were rendering 210x2 — a sliver — until scrolled into
     view, which shifted the carousel as you swiped. */
  aspect-ratio: 1320 / 2868;
  background: var(--stone);
  border: 1px solid rgba(201, 161, 74, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.shot figcaption {
  margin-top: 12px; text-align: center; font-size: 15px; color: var(--text-dim);
}

/* feature blocks */
.features { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature {
  background: var(--stone); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.feature h3 { font-size: 21px; color: var(--gold); margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 17px; }

/* journeys */
.journeys { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.journey {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--stone); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px;
}
.journey-name { font-weight: 600; color: var(--text); }
.journey-ref { margin-left: auto; font-size: 14px; color: var(--text-dim); white-space: nowrap; }
.badge-free {
  font-family: Cinzel, Georgia, serif; font-size: 11px; letter-spacing: 0.08em;
  color: #1a1509; background: var(--gold); padding: 2px 8px; border-radius: 999px;
}

/* ---------------------------------------------------------------- prose pages */

/* Prose column capped for readability — 1080px of running text is far too
   wide a measure. The header and footer still use the full width. */
.page { padding: 56px 0 20px; max-width: 46rem; }
.page h1 { font-size: clamp(32px, 5vw, 44px); }
.page .updated { color: var(--text-dim); font-size: 16px; margin: -6px 0 34px; }
.page h2 { font-size: 24px; margin-top: 42px; color: var(--gold); }
.page p, .page li { color: #ded8cb; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.callout {
  background: var(--stone-2); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 18px 22px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line); padding: 40px 0 56px;
  color: var(--text-dim); font-size: 16px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding: 52px 0 40px; }
  .nav { gap: 16px; font-size: 15px; }
  .shot { width: 210px; }

  /* The 1600x400 banner squashes to an 83px-tall sliver on a phone — three
     devices at ~50px each, illegible. The .shots carousel below already shows
     the screens properly at this width, so drop the banner rather than ship
     an unreadable strip. */
  .hero-banner { display: none; }
}

/* On a phone the wordmark and three nav links cannot both fit. `nowrap` on
   .brand-name (added to stop the wordmark breaking onto two lines) pushed the
   nav off-screen instead, giving the whole page a horizontal scroll. Drop the
   wordmark at phone widths — the icon still links home, and the <h1> directly
   below already says "Scripture & Stone". */
@media (max-width: 560px) {
  .brand-name { display: none; }
  .nav { gap: 18px; }
}

/* v1.1: authentic iPad capture beside the device-specific introduction. */
.release-note { max-width: 640px; margin: 24px auto 0; color: var(--text-dim); font-size: 16px; }
.release-note strong { color: var(--text); }
.ipad-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.ipad-layout h2 { font-size: clamp(27px, 3.6vw, 36px); }
.ipad-layout p { color: var(--text-dim); }
.ipad-layout img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.page { padding-left: 24px; padding-right: 24px; }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.journeys { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.journey { flex-wrap: wrap; }
.badge-free { font-size: 12px; }
a:focus-visible, .shots:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
@media (max-width: 700px) { .ipad-layout { grid-template-columns: 1fr; gap: 24px; } .ipad-layout img { max-width: 520px; margin: auto; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }
