/* Southern Seminary — house styles.
   Palette taken from .claude/skills/lessons/card_style.json so the site and the
   cards read as one thing. Change it there first, then mirror it here. */

:root {
    --navy:      #152A5B;
    --navy-deep: #0E1D40;
    --navy-soft: #3A4E7E;
    --gold:      #C8901F;
    --gold-soft: #E8B65A;
    --ivory:     #FDF6E8;
    --pale:      #E4ECF7;
    --white:     #FFFFFF;
    --ink:       #1B2438;
    --muted:     #5A6580;
    --line:      #DCE3EF;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, sans-serif;

    --wrap: 1080px;
    --wrap-wide: 1180px;
    --r: 12px;
    --shadow: 0 1px 2px rgba(21,42,91,.06), 0 8px 24px rgba(21,42,91,.07);
}

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

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
main.wide .wrap { max-width: var(--wrap-wide); }

.skip {
    position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
    padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

header.site {
    background: var(--navy);
    color: #fff;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
header.site .bar {
    display: flex; align-items: center; gap: 20px;
    min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; margin-right: auto; }
.brand-mark {
    width: 26px; height: 26px; flex: none; border-radius: 5px;
    background: linear-gradient(150deg, var(--gold) 0%, var(--gold-soft) 100%);
    position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 7px 6px;
    border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
.brand-name { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .01em; }
.brand:hover { color: var(--gold-soft); }

header.site nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.site nav a {
    color: rgba(255,255,255,.86); text-decoration: none;
    font-size: .875rem; letter-spacing: .04em; text-transform: uppercase;
    padding: 8px 12px; border-radius: 7px;
}
header.site nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
header.site nav a.on { color: var(--navy); background: var(--gold-soft); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 10px; margin-right: -10px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

/* ---------- hero ---------- */

.hero {
    background:
      radial-gradient(1100px 380px at 12% -18%, rgba(200,144,31,.16), transparent 62%),
      linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff;
    padding: 74px 0 68px;
}
.hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.12;
    margin: .18em 0 .34em; letter-spacing: -.012em;
}
.hero .lead { font-size: 1.11rem; color: rgba(255,255,255,.88); max-width: 44rem; margin: 0 0 1.7em; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
    color: var(--gold-soft); margin: 0; font-weight: 600;
}
.hero .eyebrow { color: var(--gold-soft); }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.btn {
    display: inline-flex; align-items: center; gap: .5em;
    background: var(--gold); color: var(--navy);
    font-weight: 650; font-size: .95rem;
    padding: 11px 20px; border-radius: 9px; text-decoration: none;
    border: 1px solid transparent;
}
.btn:hover { background: var(--gold-soft); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn.ghost:hover { background: rgba(255,255,255,.11); color: #fff; }
.btn .sz { font-weight: 400; opacity: .72; font-size: .85em; }

/* ---------- sections ---------- */

.band { padding: 54px 0 8px; }
.band h2, .block h2 {
    font-family: var(--serif); font-size: 1.62rem; font-weight: 600;
    margin: 0 0 1.1rem; color: var(--navy); position: relative; padding-bottom: .42rem;
}
.band h2::after, .block h2::after, .page-head h1::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 62px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), rgba(200,144,31,0));
}

.page-head { padding: 46px 0 8px; }
.page-head h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.16;
    margin: .16em 0 .5em; color: var(--navy); position: relative; padding-bottom: .4rem;
}
.page-head .lead { font-size: 1.06rem; color: var(--muted); max-width: 46rem; }
.page-head .eyebrow a { color: var(--gold); text-decoration: none; }

/* ---------- panels ---------- */

.panel {
    background: var(--pale);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px 24px;
}
.panel.accent { background: var(--ivory); border-color: rgba(200,144,31,.42); }
.panel h3 {
    margin: 0 0 .5rem; font-size: .82rem; text-transform: uppercase;
    letter-spacing: .1em; color: var(--navy); font-weight: 700;
}
.panel p { margin: 0 0 .7em; }
.panel p:last-child { margin-bottom: 0; }
.panel .big { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.ref {
    font-family: var(--serif); font-style: italic; color: var(--navy-soft);
    font-size: 1.02rem; margin: 0 0 .6em;
}
.fine { font-size: .87rem; color: var(--muted); }
footer.site .fine { max-width: 62rem; }

/* ---------- lesson tiles + rows ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lesson-tile {
    display: flex; flex-direction: column; gap: 7px;
    padding: 18px; border-radius: var(--r);
    background: var(--white); border: 1px solid var(--line);
    text-decoration: none; box-shadow: var(--shadow);
}
.lesson-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.lesson-tile { transition: transform .13s ease, border-color .13s ease; }
.tile-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile-title { font-family: var(--serif); font-size: 1.02rem; color: var(--navy); line-height: 1.35; flex: 1; }

.block { margin: 34px 0 12px; }
.rows { display: flex; flex-direction: column; gap: 7px; }
.row {
    display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 16px;
    padding: 13px 18px; border-radius: 10px;
    background: var(--white); border: 1px solid var(--line);
    text-decoration: none;
}
a.row:hover { border-color: var(--gold); background: var(--ivory); }
.row.empty { background: transparent; border-style: dashed; color: var(--muted); }
.r-date { font-size: .9rem; color: var(--navy); }
.r-date b { font-variant-numeric: tabular-nums; }
.r-day { color: var(--muted); margin-left: .4em; font-size: .84em; }
.r-title { font-family: var(--serif); font-size: 1.06rem; color: var(--navy); }
.row.empty .r-title { font-style: italic; color: var(--muted); }

.badge {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
    padding: 4px 10px; border-radius: 100px; white-space: nowrap;
    background: var(--pale); color: var(--navy);
}
.b-scripture { background: #DCE7F8; color: #1B3A73; }
.b-mastery   { background: #EADCF3; color: #4A2A63; }
.b-lifeprep  { background: #D8EFE4; color: #17553C; }
.b-virtual   { background: #FBE9CB; color: #7A5410; }

.more { margin: 18px 0 0; }

/* ---------- lesson page ---------- */

.lesson-head { padding-bottom: 4px; }
.downloads .dl { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.cards { margin: 42px 0 8px; }
.cards h2 {
    font-family: var(--serif); font-size: 1.62rem; font-weight: 600; color: var(--navy);
    margin: 0 0 .2rem;
}
figure.card { margin: 26px 0 34px; }
figure.card img {
    width: 100%; border-radius: 10px; border: 1px solid var(--line);
    box-shadow: var(--shadow); background: var(--white);
}
figure.card.portrait { max-width: 480px; margin-inline: auto; }
figure.card figcaption {
    margin-top: 10px; font-size: .87rem; color: var(--muted);
    display: flex; gap: .6em; align-items: baseline; flex-wrap: wrap;
}
figure.card figcaption b { color: var(--navy); }
figcaption .tag { font-family: var(--serif); font-style: italic; color: var(--gold); }

.note, .journal { margin: 34px 0; padding: 24px 26px; border-radius: var(--r); }
.note { background: var(--ivory); border: 1px solid rgba(200,144,31,.4); }
.journal { background: var(--pale); border: 1px solid var(--line); }
.note h2, .journal h2 {
    font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .15rem; color: var(--navy);
}
.note p:last-child, .journal blockquote { margin-bottom: 0; }
.journal blockquote {
    margin: .8em 0 0; padding-left: 18px; border-left: 3px solid var(--gold);
    font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; color: var(--navy);
}

.pager {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: .93rem;
}
.pager .next { margin-left: auto; text-align: right; }

/* ---------- prose pages ---------- */

.prose { max-width: 46rem; padding: 8px 0 20px; }
.prose h2 {
    font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy);
    margin: 2.1em 0 .5em; padding-bottom: .35rem; position: relative;
}
.prose h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
    border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(200,144,31,0));
}
.prose h3 { font-size: 1.06rem; color: var(--navy); margin: 1.7em 0 .35em; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
    margin: 1.4em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--gold);
    font-family: var(--serif); font-size: 1.08rem; color: var(--navy);
}
.prose blockquote cite { display: block; font-size: .84rem; font-style: normal; color: var(--muted); margin-top: .5em; }
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
    background: var(--pale); padding: .12em .42em; border-radius: 5px;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--navy); }
.table-scroll { overflow-x: auto; }

.callout {
    background: var(--ivory); border: 1px solid rgba(200,144,31,.42);
    border-radius: var(--r); padding: 20px 24px; margin: 1.6em 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.draft {
    background: repeating-linear-gradient(135deg, #FFF9EC, #FFF9EC 12px, #FDF2DC 12px, #FDF2DC 24px);
    border: 1px dashed var(--gold); border-radius: var(--r);
    padding: 22px 24px; margin: 1.6em 0;
}
.draft h3 { margin-top: 0; color: var(--navy); }

.steps { counter-reset: s; list-style: none; padding-left: 0; }
.steps li {
    counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 1.05em;
}
.steps li::before {
    content: counter(s); position: absolute; left: 0; top: -1px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700;
    display: grid; place-items: center;
}

figure.diagram { margin: 1.8em 0; }
figure.diagram svg { width: 100%; height: auto; }
figure.diagram figcaption { font-size: .87rem; color: var(--muted); margin-top: .8em; }

/* ---------- footer ---------- */

footer.site {
    margin-top: 70px; padding: 34px 0 46px;
    background: var(--navy); color: rgba(255,255,255,.8);
}
footer.site p { margin: 0 0 .7em; font-size: .92rem; }
footer.site strong { color: #fff; }
footer.site .fine { color: rgba(255,255,255,.6); font-size: .82rem; }
footer.site em { color: rgba(255,255,255,.78); }

/* ---------- lightbox ---------- */

.lb {
    position: fixed; inset: 0; background: rgba(9,16,34,.94); z-index: 200;
    display: none; place-items: center; padding: 20px; cursor: zoom-out;
}
.lb.on { display: grid; }
.lb img { max-width: 100%; max-height: 94vh; border-radius: 8px; }
.lb-close {
    position: absolute; top: 14px; right: 18px; background: none; border: 0;
    color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .grid-3, .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .menu-toggle { display: block; }
    header.site .bar { flex-wrap: wrap; }
    header.site nav {
        display: none; width: 100%; flex-direction: column; gap: 2px;
        padding: 6px 0 14px;
    }
    header.site nav.open { display: flex; }
    header.site nav a { padding: 11px 12px; }

    .hero { padding: 52px 0 46px; }
    .grid-2, .grid-3, .tiles { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; gap: 5px; padding: 14px 16px; }
    .row .badge { justify-self: start; }
    .r-date { font-size: .82rem; color: var(--muted); }
    figure.card { margin: 20px 0 28px; }
    .note, .journal { padding: 20px; }
    .pager { flex-direction: column; }
    .pager .next { margin-left: 0; text-align: left; }
}
