/* Warm Horizon — SPIENCE of Jesus / RUA
   Sky over warm alabaster, frosted glass, gold only as light. */

:root {
  --sky-high: #cfe4f3;
  --sky-mid: #dcecf7;
  --sky-low: #eaf3f9;
  --horizon: #fbf3e2;
  --cream: #f6eedd;
  --cream-deep: #f1e7d2;

  --ink: #26323d;
  --ink-soft: #4d5b68;
  --ink-quiet: #71808d;

  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --silver: rgba(176, 186, 196, 0.6);
  --silver-bright: rgba(255, 255, 255, 0.85);

  --gold: #c2a058;
  --gold-light: #e3cd95;
  --gold-ink: #86692a;

  --shadow: 0 1px 2px rgba(38, 50, 61, 0.04), 0 12px 32px -12px rgba(38, 50, 61, 0.16);
  --radius: 18px;
  --measure: 40rem;

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The fixed horizon: about two thirds sky, one third warm alabaster.
   A fixed pseudo-element keeps the horizon steady on mobile browsers,
   where background-attachment: fixed is unreliable. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--sky-high) 0%,
    var(--sky-mid) 38%,
    var(--sky-low) 60%,
    var(--horizon) 66.5%,
    var(--cream) 71%,
    var(--cream-deep) 100%
  );
}

/* ---------- Layout ---------- */

.page {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.site-header {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.section {
  margin-top: 3.25rem;
}

.stack > * + * {
  margin-top: 1.25rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 6vw, 2.1rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 4.5rem);
  letter-spacing: 0.14em;
  margin-right: -0.14em; /* optically recentre the tracked wordmark */
  line-height: 1;
}

.tagline {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.quiet {
  font-size: 0.9rem;
  color: var(--ink-quiet);
}

.center {
  text-align: center;
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-head p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* Gold as light: a thin rule that fades at both ends. */
.rule-gold {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 1.1rem auto;
  border: 0;
  background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
}

.rule-gold.left {
  margin-left: 0;
  margin-right: 0;
  background: linear-gradient(to right, var(--gold), var(--gold-light) 60%, transparent);
}

/* ---------- Frosted glass ---------- */

.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--silver);
  border-top-color: var(--silver-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.35rem;
}

.card > h2,
.card > h3 {
  margin-bottom: 0.75rem;
}

.card + .card {
  margin-top: 1.25rem;
}

.grid-3 > .card + .card {
  margin-top: 0;
}

.verse-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration-thickness: 1px;
}

.verse-link + .quiet {
  margin-top: 0.6rem;
}

.pillar h3 {
  margin-bottom: 0.35rem;
}

.pillar p {
  color: var(--ink-soft);
}

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

.btn-primary,
.btn-quiet {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Primary: a glass button lit by a thin gold rim — never a gold block. */
.btn-primary {
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 3px rgba(227, 205, 149, 0.22), var(--shadow);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(227, 205, 149, 0.34), var(--shadow);
}

.btn-quiet {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--silver);
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
}

.btn-quiet:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.btn-primary:active,
.btn-quiet:active {
  transform: translateY(1px);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: default;
}

.btn-block {
  display: block;
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

/* ---------- Door strip ---------- */

.door-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.door-strip a {
  display: block;
  text-align: center;
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--silver);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 205, 149, 0.3);
}

.form-error {
  color: #8a3b2e;
  font-size: 0.95rem;
}

.form-thanks {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  margin-top: 1.25rem;
}

/* ---------- Offers ---------- */

.offer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
}

.offer-row + .offer-row {
  border-top: 1px solid var(--silver);
}

.offer-row .offer-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Lists ---------- */

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-plain li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.4rem;
}

.list-plain li + li {
  border-top: 1px solid rgba(176, 186, 196, 0.35);
}

.list-plain li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
}

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

.faq-item + .faq-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(176, 186, 196, 0.4);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--ink-soft);
}

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

.site-footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-quiet);
}

.site-footer p + p {
  margin-top: 0.3rem;
}

[hidden] {
  display: none !important;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40em) {
  .page {
    padding: 4rem 1.5rem 4rem;
  }

  .card {
    padding: 2.1rem 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .door-strip {
    grid-template-columns: 1fr 1fr;
  }

  .offer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .btn-block {
    display: inline-block;
    width: auto;
  }
}

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

  .btn-primary,
  .btn-quiet {
    transition: none;
  }
}

/* Where backdrop blur is unavailable, keep panels legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card {
    background: rgba(255, 255, 255, 0.86);
  }
}
