/* Bible Shorts — parchment & oxblood.
   Cream paper, deep maroon ink, soft rounded cards, serif display over rounded sans.
   No hard black rules: depth comes from warm tone shifts and soft shadows. */

:root {
  /* paper */
  --paper:      #F7F3EA;   /* page */
  --paper-warm: #F1EBDD;   /* alternating bands */
  --card:       #EFE9DB;   /* raised card on paper */
  --card-hi:    #FBF8F1;   /* the lightest surface */
  --line:       #DFD5C3;

  /* ink */
  --maroon:      #6B2A22;  /* primary brand */
  --maroon-deep: #4C1C16;  /* headings, pressed states */
  --maroon-mid:  #8C4034;
  --maroon-soft: #B0695C;  /* the lighter flame tone */
  --maroon-wash: #EADFD5;  /* tinted fill */

  --ink:   #2E211C;        /* body text, warm near-black */
  --muted: #8A7D6E;
  --cream: #FBF8F1;

  --night: #241713;        /* dark band */
  --night-text: #F7F1E6;
  --night-muted: #B9A899;

  --wrap: 1120px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(76, 28, 22, .07);
  --shadow-md: 0 10px 30px rgba(76, 28, 22, .10);
  --shadow-lg: 0 24px 60px rgba(76, 28, 22, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, .serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--maroon-deep);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
}
h1 { font-size: clamp(40px, 6.6vw, 66px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }

.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--maroon-mid);
}

/* the rounded-bold numerals from the app */
.numeral { font-weight: 900; letter-spacing: -0.03em; color: var(--maroon); }

/* ---------- header ---------- */
header {
  background: rgba(247, 243, 234, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px;
  color: var(--maroon-deep); text-decoration: none; letter-spacing: -0.01em;
}
.mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--maroon); }
@media (max-width: 680px) { .nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 800; letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn.btn-primary { background: var(--maroon); color: #FFFDF8; box-shadow: var(--shadow-md); }
.btn.btn-primary:hover { background: var(--maroon-deep); color: #FFFDF8; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn.btn-ghost { background: transparent; color: var(--maroon-deep); border-color: var(--line); }
.btn.btn-ghost:hover { background: var(--card); color: var(--maroon-deep); border-color: var(--maroon-soft); }
.btn.btn-cream { background: var(--cream); color: var(--maroon-deep); box-shadow: var(--shadow-md); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn:active { transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--maroon-wash); color: var(--maroon-deep);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 800;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 32ch; margin-bottom: 30px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* phone
   The rotation lives on .phone; the clipping lives on .screen. A transformed
   ancestor stops `overflow:hidden` from clipping descendants in WebKit, which
   is why the video used to spill square corners over the bezel. */
.phone {
  position: relative;
  width: min(304px, 78vw);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  background: linear-gradient(150deg, #2a2724, #111010 45%, #2a2724);
  border-radius: 48px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.4), inset 0 0 0 1.5px rgba(255,255,255,.09);
  transform: rotate(-2deg);
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #0d0906;
  isolation: isolate;          /* forces its own stacking + paint context */
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);  /* Safari clip fallback */
}
.screen video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 40px;         /* belt and braces if a browser still won't clip */
  display: block;
}
.notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 94px; height: 25px; background: #000; border-radius: 999px; z-index: 3;
}
.phone-ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 20px 26px;
  background: linear-gradient(to top, rgba(18,9,6,.92), rgba(18,9,6,.55) 45%, rgba(18,9,6,0));
  color: #FBF8F1; pointer-events: none;
}
.phone-ui .t { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; color: #FBF8F1; }
.phone-ui .r { font-size: 13px; color: #C9B8A8; margin-top: 3px; font-weight: 600; }

.sound {
  position: absolute; top: 46px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(18,9,6,.55); color: #FBF8F1;
  border: 1px solid rgba(251,248,241,.26); border-radius: 999px;
  font: 800 12px/1 'Nunito', sans-serif; letter-spacing: .02em;
  padding: 8px 13px 8px 11px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .15s ease, border-color .15s ease;
}
.sound:hover { background: rgba(18,9,6,.78); border-color: rgba(251,248,241,.45); }
.sound .ico-on { display: none; }
.sound[aria-pressed="true"] .ico-off { display: none; }
.sound[aria-pressed="true"] .ico-on { display: inline; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 7vw, 92px) 0; }
section.warm { background: var(--paper-warm); }
.sec-head { max-width: 48ch; margin-bottom: 42px; }
.sec-head h2 { margin: 12px 0 14px; }
.sec-head .lede { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
section.warm .card { background: var(--card-hi); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--maroon-wash); color: var(--maroon);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* story chips */
.strip { display: flex; gap: 11px; overflow-x: auto; padding: 4px 4px 16px; scrollbar-width: thin; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.chip {
  flex: none;
  background: var(--card-hi); color: var(--maroon-deep);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 11px 20px; font-weight: 800; font-size: 15px; white-space: nowrap;
}

/* reflect */
.reflect-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 900px) { .reflect-grid { grid-template-columns: 1fr; } }

.reflect-card {
  background: var(--card-hi);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  max-width: 420px; margin: 0 auto;
}
.reflect-input {
  background: var(--paper-warm);
  border-radius: var(--r-md);
  padding: 20px 22px;
  min-height: 132px;
  font-family: 'Caveat', 'Bradley Hand', 'Segoe Script', cursive;
  font-size: 25px; line-height: 1.45; color: var(--ink);
}
.caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px;
  background: var(--maroon); vertical-align: -3px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* faq */
details {
  background: var(--card-hi);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 26px; margin-bottom: 12px;
}
summary {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px;
  color: var(--maroon-deep); cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--maroon-soft); }
details[open] summary::after { content: '–'; }
details p { margin-top: 12px; color: var(--muted); }

/* email capture */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 470px; }
.signup input {
  flex: 1 1 220px; min-width: 0;
  font: 500 16px 'Nunito', sans-serif;
  padding: 15px 20px;
  background: rgba(251,248,241,.1); color: var(--night-text);
  border: 1px solid rgba(251,248,241,.28); border-radius: 999px;
}
.signup input::placeholder { color: var(--night-muted); }
.signup input:focus { outline: 2px solid var(--maroon-soft); outline-offset: 1px; }

/* dark band */
.band { background: var(--night); color: var(--night-text); }
.band h2 { color: var(--night-text); }
.band .lede { color: var(--night-muted); }
.band .label { color: var(--maroon-soft); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; background: var(--paper-warm); }
.foot { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink); }
.foot-links a:hover { color: var(--maroon); }

/* legal pages */
.doc { max-width: 740px; padding: 60px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 16px; color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; font-size: 15px;
  background: var(--card-hi); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.doc th, .doc td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: var(--maroon-wash); color: var(--maroon-deep); font-weight: 800; }
.doc tr:last-child td { border-bottom: none; }
