/* Claude's Way — design system */

/* ---------- tokens ---------- */

:root {
  --ink-900: #05040c;
  --ink-800: #0a0819;
  --ink-700: #110d28;
  --ink-600: #1a1440;
  --ink-500: #241c56;

  --gold-400: #f6d488;
  --gold-500: #e8b45c;
  --gold-600: #c98f36;
  --ember: #ff9d5c;

  --violet-300: #c3b6ff;
  --violet-400: #9c8bff;

  --text: #ece9fb;
  --text-dim: #b3aed6;
  --text-faint: #7a749e;

  --line: color-mix(in oklab, var(--violet-300) 16%, transparent);
  --line-strong: color-mix(in oklab, var(--gold-400) 30%, transparent);

  --glass: color-mix(in oklab, var(--ink-600) 55%, transparent);
  --glass-hi: color-mix(in oklab, var(--ink-500) 70%, transparent);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.6vw, 4.6rem);

  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --wide: 1180px;
  --radius: 18px;

  --shadow-lift: 0 24px 60px -28px rgb(0 0 0 / 0.85);
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--gold-400);
  text-decoration-color: color-mix(in oklab, var(--gold-400) 40%, transparent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: #fff3d9;
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in oklab, var(--gold-500) 40%, transparent);
  color: #fff;
}

/* ---------- atmosphere ---------- */

/* the halo: a slow-drifting warm glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -30vh -20vw auto;
  height: 120vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 18%, color-mix(in oklab, var(--gold-500) 26%, transparent) 0%, transparent 70%),
    radial-gradient(60% 45% at 18% 8%, color-mix(in oklab, var(--violet-400) 22%, transparent) 0%, transparent 65%),
    radial-gradient(55% 50% at 85% 22%, color-mix(in oklab, #6f4bff 18%, transparent) 0%, transparent 68%),
    linear-gradient(180deg, var(--ink-700) 0%, var(--ink-800) 45%, var(--ink-900) 100%);
  animation: drift 26s ease-in-out infinite alternate;
}

/* film grain, so the gradients do not band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap--narrow {
  max-width: 780px;
}

main {
  display: block;
}

section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* The eyebrow is itself a <p> in these blocks and must keep its own type. */
.section-head p:not(.eyebrow) {
  color: var(--text-dim);
  font-size: var(--step-1);
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 1.1em;
  display: flex;
  align-items: center;
  gap: 0.85em;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* Centered eyebrows drop the trailing rule, which would otherwise push the
   label off-centre. */
.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  display: none;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 100;
  padding: 0.7em 1.2em;
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: translate 0.2s ease;
}

.skip-link:focus {
  translate: -50% 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in oklab, var(--ink-900) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--ink-900) 88%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--gold-500) 55%, transparent));
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  line-height: 1;
  margin-top: 0.25em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.6rem);
}

.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4em 0;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-400);
  transition: right 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5em 0.7em;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gut) 1.5rem;
    /* Opaque rather than tinted: this panel sits over hero text. */
    background: #0b0820;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9em 0;
    font-size: 1rem;
    border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  }

  .nav a::after {
    display: none;
  }
}

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

.hero {
  position: relative;
  text-align: center;
  padding-block: clamp(4rem, 12vh, 9rem) clamp(3.5rem, 9vw, 7rem);
}

/* Ambient warmth behind the whole hero. Sits a layer further back than the
   halo ring and does not pulse, so the two do not beat against each other. */
.hero__halo {
  position: absolute;
  top: clamp(-2rem, 1vh, 2rem);
  left: 50%;
  translate: -50% 0;
  width: clamp(360px, 82vw, 1060px);
  aspect-ratio: 2.2 / 1;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    color-mix(in oklab, var(--gold-500) 14%, transparent),
    transparent 78%
  );
  filter: blur(22px);
}

/* The halo itself: a pulsing torus. Hung off the heading rather than the
   section so it stays centred on titles, which differ in size and in whether
   an eyebrow sits above them. */
.hero h1,
.void__code {
  position: relative;
}

.hero h1::before,
.void__code::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  /* `scale` in the animation rather than a transform, so the pulse composes
     with this centering instead of overwriting it. */
  translate: -50% -50%;
  width: clamp(320px, 72vw, 900px);
  /* Wide and shallow, so the ring reads as a halo seen at an angle rather than
     as a bullseye. Matches the ellipse in the brand mark. */
  aspect-ratio: 2.7 / 1;
  pointer-events: none;
  /* Clear core out to 52%, then the band, then falloff. */
  background: radial-gradient(
    closest-side,
    transparent 52%,
    color-mix(in oklab, #fff4d8 52%, transparent) 62%,
    color-mix(in oklab, var(--gold-400) 58%, transparent) 68%,
    color-mix(in oklab, var(--gold-600) 20%, transparent) 77%,
    transparent 88%
  );
  filter: blur(7px);
  animation: halo 7s ease-in-out infinite;
}

@keyframes halo {
  0%,
  100% {
    opacity: 0.62;
    scale: 0.97;
  }
  50% {
    opacity: 1;
    scale: 1.05;
  }
}

.hero h1 {
  margin-bottom: 0.35em;
  background: linear-gradient(175deg, #fffdf7 12%, var(--gold-400) 52%, var(--gold-600) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5em;
}

.hero__sub {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--text-dim);
  font-size: var(--step-1);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.4rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
  color: #22160a;
  box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--gold-500) 75%, transparent);
}

.btn--primary:hover {
  color: #22160a;
  box-shadow: 0 20px 44px -14px color-mix(in oklab, var(--gold-500) 85%, transparent);
}

.btn--ghost {
  background: color-mix(in oklab, var(--ink-500) 45%, transparent);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  color: #fff;
  background: color-mix(in oklab, var(--ink-500) 70%, transparent);
}

.btn--small {
  padding: 0.55em 1.05em;
  font-size: 0.78rem;
}

/* ---------- cards ---------- */

.card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--glass-hi), var(--glass));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gold-400) 55%, transparent), transparent);
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card--link:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  color: inherit;
  box-shadow: 0 32px 70px -30px rgb(0 0 0 / 0.95);
}

.card--link .card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.4em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-400);
}

.card--link:hover .card__more {
  gap: 0.7em;
}

.card__icon {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.7rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
}

/* ---------- scripture ---------- */

.verse-panel {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3.4rem);
}

.verse-panel__body {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.45;
  color: #fff8ea;
  margin: 0 auto 1.1em;
  max-width: 44ch;
  text-wrap: balance;
}

.verse-panel__ref {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0;
}

.verse-panel__tools {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.book {
  counter-reset: none;
}

.chapter {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.chapter__title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.2em;
}

.chapter__title span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.chapter__intro {
  color: var(--text-dim);
  font-style: italic;
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.verse {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid color-mix(in oklab, var(--line) 55%, transparent);
}

.verse:first-of-type {
  border-top-color: var(--line-strong);
}

.verse__num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-600);
  padding-top: 0.28em;
  text-align: right;
}

.verse__text {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.55;
  margin: 0;
  max-width: 54ch;
}

.verse__text em {
  color: var(--gold-400);
  font-style: italic;
}

.verse__gloss {
  grid-column: 2;
  font-size: var(--step--1);
  color: var(--text-faint);
  margin: 0.7em 0 0;
  max-width: 58ch;
}

.copy-verse {
  grid-column: 3;
  grid-row: 1;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0.35em 0.6em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.verse:hover .copy-verse,
.copy-verse:focus-visible {
  opacity: 1;
}

.copy-verse:hover {
  color: var(--gold-400);
  border-color: var(--line);
}

.copy-verse[data-copied] {
  opacity: 1;
  color: var(--gold-400);
}

@media (max-width: 620px) {
  .verse {
    grid-template-columns: 2.2rem 1fr;
  }

  .copy-verse {
    grid-column: 2;
    grid-row: auto;
    opacity: 1;
    justify-self: start;
    padding-inline: 0;
    margin-top: 0.5em;
  }
}

/* ---------- commitments ---------- */

.commitment {
  display: grid;
  /* Fixed numeral column, sized for the widest numeral ("VIII"), so no heading
     is pushed out of line with the rest. */
  grid-template-columns: clamp(3.4rem, 7vw, 6.5rem) 1fr;
  gap: 0 clamp(1.2rem, 3vw, 2.2rem);
  padding: clamp(1.6rem, 3.4vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.commitment__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(170deg, var(--gold-400), color-mix(in oklab, var(--gold-600) 55%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.commitment h3 {
  font-size: var(--step-2);
  margin-bottom: 0.4em;
  max-width: 32ch;
}

.commitment p {
  color: var(--text-dim);
  max-width: 60ch;
}

.commitment p:last-child {
  margin-bottom: 0;
}

.commitment cite {
  display: block;
  margin-top: 0.9em;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}

@media (max-width: 560px) {
  .commitment {
    grid-template-columns: 1fr;
  }

  .commitment__num {
    text-align: left;
    margin-bottom: 0.4rem;
  }
}

/* ---------- oracle ---------- */

.oracle {
  text-align: center;
}

.oracle__form {
  display: flex;
  gap: 0.6rem;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.oracle__form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.9em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-800) 80%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oracle__form input::placeholder {
  color: var(--text-faint);
}

.oracle__form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold-500) 14%, transparent);
}

.oracle__answer {
  min-height: 6.5em;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.oracle__answer p {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-style: italic;
  color: #fff8ea;
  max-width: 40ch;
  margin: 0;
  text-wrap: balance;
}

.oracle__answer .oracle__cursor {
  display: inline-block;
  width: 0.06em;
  height: 1em;
  translate: 0 0.12em;
  background: var(--gold-400);
  animation: blink 1s steps(2) infinite;
}

.oracle__answer[data-done] .oracle__cursor {
  display: none;
}

.oracle__attr {
  margin-top: 1.2rem !important;
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600) !important;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: transparent;
  background: linear-gradient(170deg, #fffdf7, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- testimonies ---------- */

.testimony {
  display: flex;
  flex-direction: column;
}

.testimony blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  color: #fdf7ec;
}

.testimony blockquote::before {
  content: "\201C";
  font-size: 2.4em;
  line-height: 0;
  vertical-align: -0.35em;
  color: var(--gold-600);
  margin-right: 0.1em;
}

.testimony footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.testimony footer b {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.stars {
  color: var(--gold-500);
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

/* ---------- hymns ---------- */

.hymn {
  padding-block: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.hymn__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.hymn__meta h3 {
  margin: 0;
}

.hymn__meta span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hymn pre {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  color: #f6f1e4;
  font-style: italic;
}

/* ---------- forms ---------- */

.field {
  display: block;
  margin-bottom: 1.3rem;
}

.field > span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.55em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-800) 80%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 8em;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold-500) 14%, transparent);
}

.field__hint {
  display: block;
  margin-top: 0.5em;
  font-size: var(--step--1);
  color: var(--text-faint);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.form-note {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-top: 1.2rem;
}

.receipt {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--gold-500) 8%, transparent);
  font-size: var(--step--1);
  line-height: 1.7;
}

.receipt[hidden] {
  display: none;
}

.receipt b {
  color: var(--gold-400);
}

.receipt code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  color: var(--violet-300);
}

/* ---------- quiz ---------- */

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.8rem;
}

.quiz__bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--violet-300) 14%, transparent);
  overflow: hidden;
}

.quiz__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz__q {
  font-family: var(--serif);
  font-size: var(--step-2);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.quiz__options {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.quiz__option {
  width: 100%;
  text-align: left;
  padding: 1em 1.2em;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink-700) 60%, transparent);
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.quiz__option:hover {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--ink-500) 60%, transparent);
  transform: translateX(3px);
}

.quiz__result {
  text-align: center;
}

.quiz__tier {
  font-family: var(--serif);
  font-size: var(--step-3);
  color: transparent;
  background: linear-gradient(170deg, #fffdf7, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.4em;
}

.quiz__score {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.6rem;
}

.quiz__verdict {
  font-size: var(--step-1);
  color: var(--text-dim);
  max-width: 52ch;
  margin-inline: auto;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: var(--step-1);
  list-style: none;
  transition: color 0.18s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--gold-400);
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.4rem;
  color: var(--gold-600);
  transition: rotate 0.25s ease;
  line-height: 1;
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details > *:not(summary) {
  color: var(--text-dim);
  max-width: var(--measure);
}

.faq details p:last-child {
  padding-bottom: 0.6rem;
}

/* ---------- misc content ---------- */

.prose {
  max-width: var(--measure);
}

.prose > p {
  color: var(--text-dim);
  font-size: var(--step-1);
}

.prose h3 {
  margin-top: 2.4em;
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--line-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: #fdf7ec;
}

.prose ul,
.prose ol {
  color: var(--text-dim);
  padding-left: 1.3em;
  margin-bottom: 1.4em;
}

.prose li {
  margin-bottom: 0.6em;
}

.parable {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.parable h3 {
  font-size: var(--step-2);
}

.parable__body {
  max-width: 66ch;
}

.parable__body p {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.65;
  color: #f4efe3;
}

.parable__moral {
  margin-top: 1.6rem;
  padding: 1rem 1.3rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in oklab, var(--gold-500) 34%, transparent);
  font-family: var(--sans) !important;
  font-size: var(--step--1) !important;
  color: var(--text-dim) !important;
  line-height: 1.7 !important;
}

.parable__moral b {
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.3em;
}

.tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.tiers li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 50%, transparent);
  font-size: var(--step--1);
  color: var(--text-dim);
}

.tiers b {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  min-width: 12ch;
}

.pill {
  display: inline-block;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: color-mix(in oklab, var(--gold-500) 8%, transparent);
}

.callout {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in oklab, var(--gold-500) 12%, transparent), transparent 70%),
    linear-gradient(165deg, var(--glass-hi), var(--glass));
  text-align: center;
}

.callout h2 {
  margin-bottom: 0.5em;
}

.callout p {
  color: var(--text-dim);
  max-width: 52ch;
  margin-inline: auto;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: color-mix(in oklab, var(--ink-900) 70%, transparent);
}

.site-footer .wrap {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.1em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.site-footer__blurb {
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 42ch;
}

.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

.site-footer__bottom p {
  margin: 0;
  max-width: 70ch;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* JS off: never hide content */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- 404 ---------- */

.void {
  position: relative;
  min-height: min(70vh, 620px);
  display: grid;
  place-content: center;
  text-align: center;
}

.void__code {
  font-family: var(--serif);
  font-size: clamp(5rem, 22vw, 13rem);
  line-height: 0.85;
  color: transparent;
  background: linear-gradient(175deg, #fffdf7 10%, var(--gold-500) 55%, transparent 96%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.1em;
}

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card--link:hover,
  .quiz__option:hover {
    transform: none;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .site-footer,
  .hero__halo,
  .copy-verse {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
