/* Abide 96 — navy, white, and golden sunrise (matched to the official logo). Mobile-first. No external fonts. */
:root {
  --navy: #0b1f3b;        /* logo background */
  --navy-deep: #00112d;   /* logo edge */
  --navy-soft: #1b2a41;
  --white: #ffffff;
  --paper: #fbf8f2;       /* warm white page background */
  --mist: #f3efe6;        /* alt section background */
  --ink: #0f213b;         /* body text (navy) */
  --muted: #4a5568;       /* secondary text, 7.5:1 on paper */
  --gold: #e8b347;        /* logo glow */
  --gold-bright: #ffd262; /* logo glow core */
  --gold-ring: #b5814c;   /* logo clock ring */
  --gold-text: #8a5a12;   /* gold for text on light bg, 5.9:1 on paper */
  --line: #e4dccb;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0 0 .75rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small, .note { font-size: .9rem; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.lord { font-variant: small-caps; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); font-weight: 700; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.draft-banner { background: var(--gold-bright); color: var(--navy-deep); text-align: center; font-size: .85rem; font-weight: 700; padding: .4rem 1rem; letter-spacing: .02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 31, 59, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(232, 179, 71, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; display: block; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; padding: 0; font-size: .95rem; }
.nav-list a { text-decoration: none; color: #d6deea; padding: .3rem 0; display: inline-block; }
.nav-list a:hover { color: var(--gold-bright); }
.nav-list li:not(:last-child) { display: none; }
.nav-list .nav-cta { color: var(--navy-deep); background: var(--gold); font-weight: 700; padding: .4rem .95rem; border-radius: 999px; }
.nav-list .nav-cta:hover { background: var(--gold-bright); color: var(--navy-deep); }
@media (min-width: 760px) { .nav-list li:not(:last-child) { display: list-item; } }

/* Hero — sunrise glow rising behind the mark, like the logo */
.hero {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 210, 98, .55), rgba(232, 179, 71, .28) 35%, rgba(165, 125, 62, .10) 60%, transparent 75%),
    radial-gradient(ellipse at 50% 40%, #11253f, var(--navy) 55%, var(--navy-deep));
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(4rem, 11vw, 7rem);
}
.hero-logo { width: clamp(112px, 22vw, 150px); height: auto; display: block; margin: 0 auto 1.25rem; border-radius: 28%; box-shadow: 0 10px 40px rgba(0, 0, 0, .35), 0 0 60px rgba(232, 179, 71, .25); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--gold-bright); margin-bottom: .5rem; }
.hero h1 { font-size: clamp(3.2rem, 12vw, 6rem); margin: 0 0 .4rem; letter-spacing: -.01em; color: var(--white); }
.hero-sub { font-family: var(--serif); font-size: clamp(1.3rem, 3.6vw, 1.8rem); color: var(--gold-bright); font-style: italic; margin-bottom: 1rem; }
.hero-text { max-width: 36rem; margin: 0 auto 2rem; color: #e6ebf3; font-size: 1.1rem; }
.hero-note { margin: 1.5rem 0 0; color: #e6ebf3; font-family: var(--serif); font-style: italic; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; justify-content: center; } }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; padding: .85rem 1.6rem; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s; min-height: 48px; }
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 4px 18px rgba(232, 179, 71, .35); }
.btn-primary:hover { background: var(--gold-bright); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn:active { transform: translateY(1px); }

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section.alt { background: var(--mist); }
.grace { background: var(--navy); color: #e6ebf3; }
.grace h2 { color: var(--white); }
.grace .lead { color: #d6deea; }
.signup { background: linear-gradient(180deg, #fff6e0, var(--paper)); border-top: 4px solid var(--gold); }

/* 96 math */
.math { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; margin: 1.75rem 0 2rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.math .num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--navy); }
.math .lbl { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.math .op { font-size: 1.5rem; color: var(--gold-text); }
.math .hl { background: var(--navy); border-radius: 12px; padding: .6rem .9rem; }
.math .hl .num { color: var(--gold-bright); font-size: 2.6rem; }
.math .hl .lbl { color: #e6ebf3; }
.sub-h { margin-top: 2rem; }
.rhythm { list-style: none; padding: 0; margin: 1rem 0 1rem; display: grid; gap: .5rem; }
@media (min-width: 560px) { .rhythm { grid-template-columns: 1fr 1fr; } }
.rhythm li { display: flex; align-items: center; gap: .75rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: .55rem 1rem; }
.rhythm .min { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); min-width: 2ch; text-align: right; }

/* Cards */
.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--navy-soft); border: 1px solid rgba(232, 179, 71, .35); border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; }
.card h3 { color: var(--gold-bright); }
.card p { color: #e6ebf3; }

/* Verses */
.verses { display: grid; gap: 1.25rem; margin: 2rem 0 1rem; }
@media (min-width: 760px) { .verses { grid-template-columns: repeat(2, 1fr); } }
.verse { margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.verse-theme { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold-text); margin-bottom: .75rem; }
.verse blockquote { margin: 0 0 1rem; flex: 1; }
.verse blockquote p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; margin: 0; color: var(--ink); }
.verse cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .95rem; }

/* Forms */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); margin-top: 1.5rem; box-shadow: 0 6px 24px rgba(11, 31, 59, .06); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #cfc6b4; border-radius: 10px; padding: .7rem .85rem; min-height: 48px; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(232, 179, 71, .45); outline-offset: 0; }
[aria-invalid="true"] { border-color: #b4462f !important; }
.field.check { flex-direction: row; align-items: flex-start; gap: .65rem; }
.field.check input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--navy); flex: none; }
.field.check label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--navy); }
.form-status.error { color: #b4462f; }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--gold-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: .5rem; }

/* Footer */
.site-footer { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(232, 179, 71, .16), transparent 70%), var(--navy-deep); color: #d6deea; padding: 2.75rem 0 2.5rem; text-align: center; border-top: 1px solid rgba(232, 179, 71, .3); }
.footer-logo { width: 80px; height: 80px; display: block; margin: 0 auto 1rem; border-radius: 50%; box-shadow: 0 0 0 2px rgba(232, 179, 71, .45), 0 0 28px rgba(232, 179, 71, .25); }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--gold-bright); }
.site-footer .opt, .site-footer .small { color: #aab6c8; }
