/* Harmony Prophets — shared styles.
   Palette: seafoam green on a soft mint-white, deep sea-green ink.
   Type: Fraunces (display) + Inter (body). */

:root {
  --bg: #f2faf6;
  --surface: #ffffff;
  --ink: #17302a;
  --muted: #557069;
  --accent: #24806f;        /* text-safe seafoam: eyebrows, brand, rules */
  --accent-bright: #a8e6cf; /* seafoam proper: washes, button start */
  --accent-soft: #7dd3b8;   /* button end, borders */
  --accent-ink: #1c6557;    /* links */
  --rule: #d5eadf;
  --shadow: 0 18px 50px rgba(20, 70, 55, .14);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a17;
    --surface: #16241f;
    --ink: #e6f4ee;
    --muted: #9bb5ab;
    --accent: #7dd3b8;
    --accent-bright: #a8e6cf;
    --accent-soft: #5fbfa2;
    --accent-ink: #a8e6cf;
    --rule: #25382f;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: .2em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 44rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem;
}
.brand {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .25rem 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }

/* Type */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin: 0; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #17302a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-soft));
  box-shadow: 0 8px 22px rgba(60, 160, 135, .28);
}
.btn-ghost { color: var(--ink); border: 1.5px solid var(--rule); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Hero */
.hero {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent-bright) 26%, transparent), transparent 70%),
    radial-gradient(40rem 22rem at 0% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero .lede { margin: 1.5rem 0 0; }

/* Sections */
section { padding: 4.5rem 0; scroll-margin-top: 5.5rem; }
section + section { border-top: 1px solid var(--rule); }

.cards {
  display: grid; gap: 1rem; margin-top: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 1.5rem;
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .icon { font-size: 1.6rem; margin-bottom: .75rem; }

.free {
  background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--accent);
  border-radius: 16px; padding: 1.75rem; margin-top: 2.5rem;
}
.free p { margin: 0; }
.free strong { font-family: var(--display); font-size: 1.35rem; font-weight: 500; display: block; margin-bottom: .25rem; }

.verse { text-align: center; }
.verse blockquote {
  margin: 0 auto; max-width: 40rem;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.4;
}
.verse cite { display: block; margin-top: 1rem; font-family: var(--body); font-style: normal; font-size: .95rem; color: var(--muted); }

/* Testimony feature on the home page */
.feature { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.thumb-link { position: relative; display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #000; }
.thumb-link img { width: 100%; height: 100%; object-fit: cover; }

/* Video: thumbnail button first, YouTube player loads only when pressed */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: #000 center / cover no-repeat; box-shadow: var(--shadow); cursor: pointer;
}
.video::after, .thumb-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%);
}
.play {
  position: absolute; z-index: 1; top: 50%; left: 50%;
  width: 5rem; height: 5rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; transition: transform .2s;
}
.video:hover .play, .video:focus-visible .play, .thumb-link:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.video:focus-visible, .thumb-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.play svg { width: 1.9rem; height: 1.9rem; margin-left: .3rem; fill: #17302a; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.playing { cursor: default; }
.video.playing::after { display: none; }
.watch-link { text-align: center; font-size: .92rem; margin: 1.1rem 0 0; }

/* Verses quoted in the testimony */
.verses { display: grid; gap: 1rem; margin-top: 1.75rem; }
.verses blockquote {
  margin: 0; padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 5px solid var(--accent-soft); border-radius: 16px;
  font-family: var(--display); font-style: italic; font-size: 1.25rem; line-height: 1.5;
}
.verses cite { display: block; margin-top: .75rem; font-family: var(--body); font-style: normal; font-size: .9rem; font-weight: 600; color: var(--accent); }
.verses .at { font-weight: 400; color: var(--muted); }

/* Transcript page */
.transcript p { margin: 0 0 1.4rem; }
.transcript .ts {
  display: inline-block; margin-right: .5rem; padding: .05rem .5rem;
  font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
  text-decoration: none; color: var(--accent);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
}
.transcript .ts:hover { border-color: var(--accent-soft); }
.transcript .speaker { font-weight: 600; }
.transcript .note {
  font-size: .92rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: 2rem;
}

.page-head { text-align: center; padding: 4rem 0 2.5rem; }
.page-head .byline { color: var(--muted); margin: 1rem 0 0; }

/* A single person's testimony page: "Testimony of <Name>" on top, green subhead below */
.page-head--feature h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.page-head--feature .subhead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; line-height: 1.5;
  text-wrap: balance; /* wraps to two even lines on phones */
  color: var(--accent);
}

/* Testimonies index: one large card per testimony */
.testimony-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.testimony-card {
  display: grid; align-items: center; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.testimony-card:hover { transform: translateY(-3px); }
.testimony-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.testimony-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.testimony-thumb img { width: 100%; height: 100%; object-fit: cover; }
.testimony-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4), rgba(0,0,0,0) 55%);
}
.testimony-card:hover .play { transform: translate(-50%, -50%) scale(1.07); }
.testimony-body { display: block; padding: 2rem 2rem 2.25rem; }
.testimony-body .eyebrow { display: block; margin-bottom: .6rem; }
.testimony-name {
  display: block; font-family: var(--display); font-weight: 500; letter-spacing: -.015em;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 1.5rem;
}

/* Invite */
.invite { text-align: center; }
.invite .lede { margin: 0 auto; }
.invite .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.25rem 0 3rem; color: var(--muted); font-size: .92rem; text-align: center; }
.site-footer p { margin: .25rem 0; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
