/* Exorcise the Gay Away — Ministry of Spiritual Realignment
   Parody site. Visual language: denominational institution.
   Navy + antique gold + liturgical oxblood. */

:root {
  --ink:        #16233A;
  --ink-deep:   #0E1728;
  --ink-soft:   #26303F;
  --gold:       #B08D3F;
  --gold-lit:   #D4B45F;
  --oxblood:    #7B2D26;
  --paper:      #FFFFFF;
  --sand:       #F2EDE3;
  --sand-deep:  #E6DECD;
  --rule:       #DDD5C4;
  --muted:      #6B7382;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --band-y: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

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

h1 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
a { color: var(--ink); text-underline-offset: 3px; }

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

.shell { width: min(100% - (var(--gutter) * 2), 1120px); margin-inline: auto; }
.shell--narrow { width: min(100% - (var(--gutter) * 2), 780px); }

.band { padding-block: var(--band-y); }
.band--sand { background: var(--sand); }
.band--ink  { background: var(--ink); color: #C9CFDA; }
.band--ink h2, .band--ink h3 { color: var(--paper); }
.band--rule { border-top: 1px solid var(--rule); }

.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; color: var(--gold-lit); }
.brand__name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--paper); line-height: 1.1; display: block;
}
.brand__tag {
  display: block; font-family: var(--sans); font-size: 0.7rem;
  font-weight: 400; color: var(--gold-lit); letter-spacing: 0.02em;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a {
  color: #C9CFDA; text-decoration: none; font-size: 0.9375rem;
  padding-block: 0.25rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--gold); }
.nav .btn { border-bottom: none; }
.nav .btn:hover { border-bottom: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 0.8rem 1.6rem; border-radius: 3px; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink-deep); }
.btn--gold:hover { background: var(--gold-lit); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.08); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-deep); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  color: #C3CAD6;
}
.hero::before {
  content: ""; position: absolute; inset: auto 0 -45% 0; height: 90%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(212,180,95,.42), rgba(212,180,95,0) 72%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 { color: var(--paper); margin-bottom: 0.35em; }
.hero__lede {
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300; color: #CBD2DE; max-width: 46ch; margin: 0 auto 2rem;
}
.hero .btn-row { justify-content: center; }

.seal { width: clamp(150px, 22vw, 200px); height: auto; color: var(--gold-lit); margin-bottom: 1.75rem; }
.seal__ring { font-family: var(--sans); font-size: 8.4px; font-weight: 600; letter-spacing: 2.1px; fill: currentColor; }
.seal__motto { font-family: var(--serif); font-size: 9px; font-style: italic; fill: currentColor; }
.seal__year { font-family: var(--sans); font-size: 7px; font-weight: 600; letter-spacing: 1.4px; fill: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .seal { animation: seal-rise 1.1s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes seal-rise {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* ---------- Verse ---------- */

.verse {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.45;
  color: var(--ink); max-width: 34ch; margin: 0 auto 0.9rem;
}
.verse__cite {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 0.8125rem; letter-spacing: .06em; color: var(--gold);
  text-transform: uppercase; margin-top: 1.1rem;
}

/* ---------- Ledger (stats) ---------- */

.ledger {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.ledger__cell {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.6rem 1.25rem; text-align: center;
}
.ledger__num {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; color: var(--ink); line-height: 1; display: block;
}
.ledger__label { font-size: .875rem; color: var(--muted); margin-top: .45rem; display: block; }

/* ---------- Phases (clinical, left-aligned) ---------- */

.phase {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.75rem;
  padding-block: 2.25rem; border-top: 1px solid var(--rule);
}
.phase:last-child { border-bottom: 1px solid var(--rule); }
.phase__num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  color: var(--gold); line-height: 1; padding-top: .15rem;
}
.phase__body h3 { margin-bottom: .4rem; }
.phase__meta {
  font-size: .8125rem; color: var(--muted); margin: 0 0 .9rem;
  padding-bottom: .7rem; border-bottom: 1px dotted var(--rule); max-width: none;
}
.phase__body p:last-child { margin-bottom: 0; }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

.note h3 { margin-bottom: .35rem; }
.note p { font-size: .9688rem; }

/* ---------- Pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.tier {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 2rem 1.75rem; display: flex; flex-direction: column;
}
.tier--featured {
  border: 2px solid var(--gold); background: var(--ink); color: #C9CFDA;
  padding-block: 2.75rem;
}
.tier--featured h3, .tier--featured .tier__price { color: var(--paper); }
.tier--featured .tier__list li { border-bottom-color: rgba(255,255,255,.14); }
.tier__badge {
  display: inline-block; align-self: flex-start; background: var(--gold);
  color: var(--ink-deep); font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; padding: .25rem .6rem; margin-bottom: 1rem;
}
.tier__name { font-size: .8125rem; letter-spacing: .1em; color: var(--gold); margin-bottom: .3rem; }
.tier__price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.tier__unit { font-size: .875rem; color: var(--muted); display: block; margin-top: .35rem; }
.tier__list { list-style: none; margin: 1.5rem 0; padding: 0; font-size: .9375rem; flex: 1; }
.tier__list li { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.tier__list li:last-child { border-bottom: none; }

.addons { width: 100%; max-width: 660px; border-collapse: collapse; font-size: .9375rem; }
.addons th {
  text-align: left; font-size: .75rem; letter-spacing: .09em; color: var(--muted);
  font-weight: 600; padding-bottom: .6rem; border-bottom: 2px solid var(--ink);
}
.addons td { padding: .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.addons td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Equipment table: descriptions in place of prices */
.addons--desc { max-width: 840px; }
.addons--desc td:last-child { text-align: left; white-space: normal; }
.addons--desc td:first-child { width: 34%; font-weight: 600; color: var(--ink); padding-right: 2rem; }

/* ---------- Testimonials ---------- */

.quote {
  border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.5rem;
  margin: 0 0 2.5rem;
}
.quote__text {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 300;
  line-height: 1.4; color: var(--ink); margin-bottom: .8rem;
}
.quote__by { font-size: .875rem; color: var(--muted); margin: 0; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: .9rem; }
.reply {
  margin-top: .9rem; padding: .8rem 1rem; background: var(--sand);
  border-left: 2px solid var(--oxblood); font-size: .875rem; color: var(--ink-soft);
}
.reply strong { color: var(--oxblood); }
.reply p { margin: 0; }

.score { text-align: center; margin-bottom: 3rem; }
.score__num { font-family: var(--serif); font-size: 3.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.score__of { color: var(--muted); font-size: .95rem; }

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

.qa { border-top: 1px solid var(--rule); padding-block: 1.75rem; }
.qa:last-of-type { border-bottom: 1px solid var(--rule); }
.qa h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .5rem; }
.qa p:last-child { margin-bottom: 0; }

/* ---------- Fine print ---------- */

.fineprint { font-size: .75rem; line-height: 1.5; color: var(--muted); max-width: 78ch; }
.fineprint--tight { margin-top: 1.5rem; }
.asterisk { font-size: .8125rem; color: var(--muted); }

/* ---------- Footer ---------- */

.footer { background: var(--ink-deep); color: #98A2B3; font-size: .9375rem; }
.footer__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem; padding-block: 3.5rem 2.5rem;
}
.footer h4 { color: var(--gold-lit); font-size: .75rem; letter-spacing: .1em; margin-bottom: .9rem; }
.footer p { margin-bottom: .5rem; max-width: 34ch; }
.footer a { color: #98A2B3; text-decoration: none; }
.footer a:hover { color: var(--paper); text-decoration: underline; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .45rem; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem;
  font-size: .8125rem; color: #6E7787;
}

/* The disclaimer drops the character. It is not ministry chrome. */
.disclaimer { background: var(--sand); border-top: 4px solid var(--oxblood); }
.disclaimer__inner { padding-block: 2.25rem; }
.disclaimer h4 { font-family: var(--sans); font-size: .9375rem; color: var(--oxblood); margin-bottom: .6rem; letter-spacing: 0; }
.disclaimer p { font-size: .9375rem; color: var(--ink-soft); max-width: 72ch; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer a { color: var(--oxblood); font-weight: 600; }

@media (max-width: 560px) {
  .phase { grid-template-columns: 1fr; gap: .5rem; }
  .phase__num { font-size: 1.6rem; }
  .masthead__inner { padding-block: .6rem; }
  .addons--desc td:first-child { width: 42%; padding-right: 1rem; }
  .nav { gap: .9rem; width: 100%; }
  .nav a { font-size: .875rem; }
}
