/* RIPPLES - show bible site
   Palette: tungsten on dusk. Type: Fraunces / Newsreader / IBM Plex Mono. */

:root {
  --ink: #0d1217;
  --surface: #141a21;
  --line: #232c35;
  --text: #e9e4da;
  --dim: #9aa3a8;
  --tungsten: #c9924f;
  --water: #7fa0a6;
  --maxw: 68rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripple-rings circle { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--tungsten); color: var(--ink); }

a { color: var(--tungsten); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tungsten);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem var(--pad);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 600; font-size: 1.35rem; letter-spacing: 0.14em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; color: var(--tungsten); }
.tabs { display: flex; gap: clamp(0.9rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.tabs a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--tungsten); }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 6rem; }
section { padding-top: clamp(3rem, 8vw, 5.5rem); }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--water); display: block; margin-bottom: 1rem;
}

h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--text); }
h1 em, h2 em { font-style: italic; color: var(--tungsten); }

p { max-width: 44rem; }
p + p { margin-top: 1rem; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--text); }
.dim { color: var(--dim); }

.rule { border: 0; border-top: 1px solid var(--line); margin: clamp(3rem, 8vw, 5rem) 0 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(4rem, 10vw, 7rem);
}
.hero .signoff { margin-top: 1.6rem; }
.ripple-rings {
  position: absolute; inset: 0; margin: auto;
  width: min(140vw, 1200px); height: min(140vw, 1200px);
  opacity: 0.5; pointer-events: none; z-index: -1;
}
.ripple-rings circle {
  fill: none; stroke: var(--water); stroke-width: 1;
  transform-origin: center;
  animation: ring 14s linear infinite;
  opacity: 0;
}
.ripple-rings circle:nth-child(2) { animation-delay: 3.5s; }
.ripple-rings circle:nth-child(3) { animation-delay: 7s; }
.ripple-rings circle:nth-child(4) { animation-delay: 10.5s; }
@keyframes ring {
  0% { transform: scale(0.12); opacity: 0; }
  12% { opacity: 0.5; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- Viewfinder slate (image placeholder) ---------- */
.slate {
  position: relative;
  aspect-ratio: 2.39 / 1;
  background:
    radial-gradient(120% 90% at 30% 20%, #1a222b 0%, var(--surface) 55%, #10161c 100%);
  border: 1px solid var(--line);
  margin: 2.2rem 0;
  display: flex; align-items: flex-end;
}
.slate::before, .slate::after,
.slate .corner::before, .slate .corner::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border-color: var(--dim); border-style: solid;
}
.slate::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.slate::after { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.slate .corner::before { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.slate .corner::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.slate .mark {
  position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  color: var(--dim); opacity: 0.7;
}
.slate figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
  padding: 0.8rem 1rem;
  width: 100%;
  display: flex; justify-content: space-between; gap: 1rem;
  background: linear-gradient(transparent, rgba(13, 18, 23, 0.85));
}
.slate figcaption .tc { color: var(--tungsten); }
.slate.tall { aspect-ratio: 16 / 9; }

/* ---------- Beat list (mini doc anatomy) ---------- */
.beats { list-style: none; margin-top: 1.5rem; }
.beats li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem;
  padding: 1.15rem 0; border-top: 1px solid var(--line);
}
.beats li:last-child { border-bottom: 1px solid var(--line); }
.beats .tc {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--tungsten);
  padding-top: 0.3rem;
}
.beats h3 { margin-bottom: 0.35rem; }
.beats p { color: var(--dim); font-size: 0.98rem; }
@media (max-width: 34rem) {
  .beats li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- Two-up / cards ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
@media (max-width: 44rem) { .two-up { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); background: var(--surface);
  padding: 1.6rem;
}
.card h3 { color: var(--tungsten); }
.card p { font-size: 0.98rem; color: var(--dim); }

/* ---------- Reference rows ---------- */
.refs { list-style: none; margin-top: 0.5rem; }
.refs li { padding: 1.4rem 0; border-top: 1px solid var(--line); max-width: 44rem; }
.refs li:last-child { border-bottom: 1px solid var(--line); }
.refs h3 { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.refs h3 a {
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.refs p { color: var(--dim); font-size: 0.98rem; margin-top: 0.3rem; }

/* ---------- Status / empty state ---------- */
.status {
  border: 1px dashed var(--line); background: transparent;
  padding: 1.6rem; max-width: 44rem; margin-top: 1.5rem;
}
.status .eyebrow { color: var(--tungsten); margin-bottom: 0.5rem; }
.status p { color: var(--dim); font-size: 0.98rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad) 3rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Next link ---------- */
.next {
  display: inline-block; margin-top: 3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
}
