/* Jesus Is One With Me — calm, reverent theme */

:root {
    --cream: #faf6ef;
    --cream-deep: #f1e9da;
    --ink: #2c2a26;
    --muted: #6f6a60;
    --gold: #b08a3e;
    --gold-deep: #8c6d2c;
    --navy: #2b3a55;
    --navy-deep: #1f2c42;
    --line: #e4dccb;
    --shadow: 0 6px 24px rgba(43, 58, 85, 0.08);
    --radius: 14px;
}

* { box-sizing: border-box; }

/* Motion is opt-in, not opt-out. Smooth scrolling and hover translation can
   trigger nausea and dizziness for readers with vestibular disorders, so they
   apply only where the OS has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .btn:hover, .card:hover { transform: none; }
}

/* Keyboard users must be able to see where they are. The skip link is the
   first thing Tab reaches and stays off-screen until focused. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius) 0;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

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

body {
    margin: 0;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
}

h1, h2, h3, .brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-deep); }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* Reading measure in `ch`, not px, so line length tracks the reader's font size
   instead of breaking when they zoom. ~68 characters sits inside the 45-75
   range that keeps long-form prose comfortable. Used only by the devotional
   detail and about pages — the two places people actually read. */
.container-narrow { max-width: 68ch; }

/* ---------- Header ---------- */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    /* No backdrop-filter here: the background is fully opaque var(--cream), so a
       blur had nothing to blur through. It cost a GPU compositing layer on every
       scroll frame and produced no visible effect. */
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand-mark { color: var(--gold); font-size: 1.4rem; }
.brand-name { font-size: 1.5rem; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
    color: var(--muted);
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #f6f2e9;
    text-align: center;
    padding: 5.5rem 0 6rem;
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    color: var(--gold);
    margin: 0 0 1rem;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 1.5rem; color: #fff; }
.hero-verse {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    max-width: 640px;
    margin: 0 auto 0.5rem;
    color: #ece5d6;
}
.hero-ref { color: var(--gold); letter-spacing: 0.1em; margin: 0 0 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 4rem 1.5rem; }
.section-title {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2.5rem;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background: var(--gold);
    margin: 0.8rem auto 0;
}

/* ---------- Page head ---------- */
.page-head {
    background: var(--cream-deep);
    border-bottom: 1px solid var(--line);
    padding: 3rem 0;
    text-align: center;
}
.page-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.page-subtitle { color: var(--gold-deep); font-style: italic; margin: 0.8rem 0 0; }

/* ---------- Filter chips ---------- */
.filter-bar { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.chip {
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--muted);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-active:hover { color: #fff; }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(43, 58, 85, 0.14); }
.card-tag {
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    color: var(--gold-deep);
    background: var(--cream-deep);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.card-title { font-size: 1.45rem; margin: 0 0 0.4rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--gold-deep); }
.card-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; margin: 0 0 1rem; }
.card-ref { color: var(--gold-deep); font-style: italic; margin: 0 0 0.7rem; font-size: 0.95rem; }
.card-summary { color: var(--muted); margin: 0 0 1.2rem; }
.card-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.8rem; }
.card-link { margin-top: auto; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Article ---------- */
.article { padding: 3.5rem 0 1rem; }
.article-tag {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--gold-deep);
    margin: 0 0 0.6rem;
}
.article-title { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 0.6rem; }
.article-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 2rem; }
.article-body { font-size: 1.12rem; color: #38352f; }
.article-body p { margin: 0 0 1.4rem; }

.scripture {
    border-left: 4px solid var(--gold);
    background: var(--cream-deep);
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.scripture-text {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 0.6rem;
    color: var(--navy-deep);
}
.scripture-ref { color: var(--gold-deep); font-weight: 600; font-style: normal; letter-spacing: 0.05em; }
.scripture-ref-only { color: var(--gold-deep); font-style: italic; margin: 0 0 1.5rem; }

.back-link { display: inline-block; margin: 1.5rem 0 0; color: var(--muted); font-weight: 600; }
.back-link:hover { color: var(--gold-deep); }

.empty { text-align: center; color: var(--muted); font-style: italic; padding: 2rem 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #cdd4e0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}
.footer-verse {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.2rem;
    max-width: 620px;
    margin: 0 auto 1rem;
    color: #e9edf3;
}
.footer-copy { font-size: 0.85rem; color: #8b95a7; margin: 0; letter-spacing: 0.05em; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .site-nav { gap: 1rem; }
    .hero { padding: 4rem 0 4.5rem; }
}
