/* ChristShaped landing: "Illuminated" brand system.
   Self-hosted fonts (no CDN calls), rubrication (oxblood headings / ink body),
   gold accents, generous whitespace, motion only under prefers-reduced-motion. */

/* ---------- Self-hosted fonts (latin subset; variable woff2) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --cream: #f6f1e7;         /* ground */
  --parchment: #eadfc8;     /* secondary surface / tint */
  --oxblood: #5e1f2a;       /* rubrication: headings + mark (never a ground) */
  --gold: #c9a227;          /* accent / CTA / dividers */
  --on-gold: #2a2107;       /* text on gold */
  --gold-epigraph: #8f7420; /* small gold-toned text on cream */
  --ink: #28211d;           /* primary text */
  --body: #4a4038;          /* body / secondary */
  --muted: #6b5f52;         /* muted */
  --hair: #e6dac1;
  --hair-2: #e0d3b8;
  --gold-border: #c9b287;

  --pill-decline: #5e1f2a;
  --pill-allow: #47603e;
  --pill-teach: #755c18;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --readable: 68ch;
  --radius: 12px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Rubrication: headings + epigraphs in the serif; oxblood; body stays ink. */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--oxblood);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.05rem; }
strong { font-weight: 500; color: var(--ink); }

a { color: var(--oxblood); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-readable { max-width: var(--readable); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 640px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--oxblood); color: var(--cream); padding: 0.6rem 1rem; z-index: 20; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- The mark (shaping cross) ---------- */
.mark { display: inline-block; fill: currentColor; }
.mark-brand { width: 26px; height: 26px; color: var(--oxblood); }
.mark-footer { width: 22px; height: 22px; color: var(--oxblood); }
.mark-divider { width: 12px; height: 12px; color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--hair);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand:hover { text-decoration: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.9rem); flex-wrap: wrap; }
.nav a { color: var(--body); font-size: 0.96rem; }
.nav a:hover { color: var(--oxblood); }
.nav-cta {
  background: var(--gold); color: var(--on-gold) !important; padding: 0.5rem 1.05rem; border-radius: 999px; font-weight: 500;
}
.nav-cta:hover { text-decoration: none; filter: brightness(0.96); }
@media (max-width: 560px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 1rem;
  padding: 0.82rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 140ms ease, background-color 140ms ease, color 140ms ease; }
}
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { filter: brightness(0.96); text-decoration: none; }
.btn-outline { background: transparent; color: var(--oxblood); border-color: var(--gold-border); }
.btn-outline:hover { border-color: var(--oxblood); text-decoration: none; }
.btn-block { width: 100%; padding-block: 0.95rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.4rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.epigraph {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--gold-epigraph); font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin: 0 0 1.2rem;
}
.epigraph .cite { display: block; font-size: 0.82em; margin-top: 0.15rem; letter-spacing: 0.02em; }
.hero h1 { max-width: 15ch; }
.lede { font-size: clamp(1.14rem, 2.3vw, 1.42rem); color: var(--body); max-width: 42ch; margin-top: 1.1rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* ---------- Divider motif ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: clamp(1.4rem, 4vw, 2.6rem) 0; }
.divider .rule { display: block; width: 26px; height: 1px; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.4rem, 6vw, 4rem) 0; }
.section-tint { background: var(--parchment); border-block: 1px solid var(--hair-2); }
.section-lede { font-size: 1.12rem; color: var(--body); max-width: 60ch; margin-bottom: 2rem; }
.prose-lg { font-size: clamp(1.08rem, 2vw, 1.24rem); color: var(--body); }
.prose-lg strong { color: var(--ink); font-weight: 500; }
.wrap-readable h2 { margin-bottom: 1rem; }

.rootsage-line {
  margin-top: 1.6rem; padding-left: 1rem; border-left: 2px solid var(--gold);
  color: var(--muted); font-size: 0.98rem;
}

/* ---------- Read-back ---------- */
.illustration-tag {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted);
  background: var(--parchment); border-radius: 999px; padding: 0.35rem 0.9rem; margin-bottom: 1.8rem;
}
.readback-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.rb-card { background: #fffdf8; border: 1px solid var(--hair-2); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.rb-kicker { font-family: var(--serif); font-weight: 600; color: var(--oxblood); font-size: 1.05rem; margin: 0 0 0.7rem; }
.rb-sub { font-size: 0.9rem; color: var(--muted); margin: -0.3rem 0 1rem; }
.rb-quote {
  margin: 0; font-family: var(--serif); font-size: 1.22rem; font-style: italic; color: var(--ink); line-height: 1.5;
  border-left: 3px solid var(--gold); padding-left: 1rem;
}
.rb-def { margin: 0; }
.rb-def dt { font-weight: 500; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--oxblood); margin-top: 0.9rem; }
.rb-def dt:first-child { margin-top: 0; }
.rb-def dd { margin: 0.2rem 0 0; color: var(--body); }
.rb-examples { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.ex { border: 1px solid var(--hair-2); border-radius: 10px; padding: 0.9rem 1rem; background: var(--cream); }
.ex-q { font-weight: 500; margin: 0 0 0.5rem; color: var(--ink); }
.ex-outcome { margin: 0; font-size: 0.95rem; color: var(--body); }
.pill {
  display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px; margin-right: 0.5rem; color: var(--cream); vertical-align: 0.06em;
}
.pill-decline { background: var(--pill-decline); }
.pill-allow { background: var(--pill-allow); }
.pill-teach { background: var(--pill-teach); }
.rb-counter { font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); align-items: stretch; }
.plan {
  background: #fffdf8; border: 1px solid var(--hair-2); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--gold); border-width: 2px; }
.plan-name { font-family: var(--serif); color: var(--oxblood); margin-bottom: 0.8rem; }
.plan-price { margin: 0 0 0.2rem; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.per { color: var(--muted); font-size: 0.98rem; margin-left: 0.35rem; }
.plan-tag { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gold-epigraph); font-weight: 500; margin: 0 0 1.1rem; }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.plan-features li { position: relative; padding-left: 1.4rem; color: var(--body); }
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--gold); border-radius: 2px;
}

/* ---------- Form ---------- */
.form-heading { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.waitlist-form { background: #fffdf8; border: 1px solid var(--hair-2); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink); }
.optional, .req { font-weight: 400; color: var(--muted); }
.req { color: var(--oxblood); }
.field input[type="email"], .field select {
  width: 100%; padding: 0.75rem 0.9rem; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--hair-2); border-radius: 10px;
}
.field input[type="email"]:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.field-check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--oxblood); }
.field-check label { font-weight: 400; margin: 0; }

/* Honeypot: visually + assistively hidden, still submitted if a bot fills it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.2em; }
.form-status.is-success { color: var(--pill-allow); }
.form-status.is-error { color: var(--oxblood); }
.privacy-note { font-size: 0.88rem; color: var(--muted); margin: 1.1rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: 2.6rem 0; margin-top: clamp(2rem, 5vw, 3.5rem); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin: 0; }
