/* Beyond Tulip — Editorial Design System */
:root {
    --bt-navy: #0B1D33;
    --bt-navy-light: #173654;
    --bt-burgundy: #8B2635;
    --bt-burgundy-light: #a33344;
    --bt-olive: #556B3A;
    --bt-gold: #D4A017;
    --bt-ivory: #F5F2EB;
    --bt-charcoal: #222222;
    --bt-slate: #6B7280;
    --bt-white: #FFFFFF;
    --bt-pale-blue: #EAF0F6;
    --bt-pale-burgundy: #F6E9EC;
    --bt-pale-gold: #FBF4DE;
    --border: #d5cfc4;
    --border-light: #e8e2d7;
    --max-width: 720px;
    --max-wide: 1180px;
    --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', Arial, system-ui, -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--bt-charcoal);
    background: var(--bt-ivory);
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--bt-navy);
    line-height: 1.3;
    margin: 1.75rem 0 0.5rem;
}
h1 { font-size: 2.2rem; margin-top: 0; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.2rem; }
a { color: var(--bt-burgundy); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--bt-burgundy-light); }
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--bt-burgundy);
    background: var(--bt-pale-blue);
    font-style: italic;
    color: var(--bt-slate);
}
blockquote p:last-child { margin-bottom: 0; }
ol, ul { margin: 0.5rem 0 1.2rem 1.5rem; }
li { margin-bottom: 0.3rem; }
img { max-width: 100%; height: auto; margin: 1.5rem 0; border-radius: 2px; }
pre { background: var(--bt-navy); color: #e0e0e0; padding: 1.2rem; overflow-x: auto; border-radius: 4px; font-size: 0.9rem; margin: 1.2rem 0; }
code { font-size: 0.9em; background: var(--bt-pale-blue); padding: 0.15rem 0.35rem; border-radius: 3px; }
pre code { padding: 0; background: none; color: inherit; }
strong { color: var(--bt-navy); }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header & Nav ── */
.site-header {
    border-bottom: 2px solid var(--bt-navy);
    padding: 1.5rem 0;
    margin-bottom: 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.site-logo {
    display: flex; align-items: center;
    text-decoration: none;
}
.site-logo .logo-full { display: block; height: 96px; width: auto; }
.site-logo .logo-submark { display: none; height: 46px; width: auto; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.92rem; }
.site-nav a { color: var(--bt-slate); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--bt-burgundy); }
.site-nav a.active { color: var(--bt-burgundy); border-bottom: 2px solid var(--bt-burgundy); }
.tagline-header { color: var(--bt-slate); font-size: 0.85rem; font-style: italic; margin-top: 0.2rem; }

/* ── Hero ── */
.hero {
    background: var(--bt-navy);
    background-image: url('/assets/brand/beyond-tulip/backgrounds/svg/hero-background-dark.svg');
    background-size: cover;
    background-position: center;
    color: #d4d0c8;
    padding: 3.5rem 0;
    margin-bottom: 2.5rem;
    position: relative;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    color: var(--bt-slate);
}
.hero .cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.5rem;
    background: var(--bt-burgundy);
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.hero .cta:hover { background: var(--bt-burgundy-light); text-decoration: none; }

/* ── Section titles ── */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bt-navy);
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--bt-burgundy);
    display: inline-block;
}

/* ── Cards (Doctrine / Article previews) ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--bt-charcoal);
    transition: box-shadow 0.15s, border-color 0.15s;
    display: block;
}
.card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: var(--bt-burgundy);
    text-decoration: none;
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--bt-burgundy);
    margin: 0 0 0.4rem;
}
.card p {
    font-size: 0.9rem;
    color: var(--bt-slate);
    margin: 0;
    line-height: 1.5;
}

/* ── Article preview (list) ── */
.article-preview {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}
.article-preview:last-child { border-bottom: none; }
.article-preview h3 {
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
}
.article-preview h3 a { color: var(--bt-navy); }
.article-preview h3 a:hover { color: var(--bt-burgundy); text-decoration: none; }
.article-preview .meta {
    font-size: 0.82rem;
    color: var(--bt-slate);
    margin-bottom: 0.35rem;
}
.article-preview .meta a { color: var(--bt-burgundy); }
.article-preview .summary {
    font-size: 0.92rem;
    color: var(--bt-slate);
    line-height: 1.55;
}

/* ── Featured article box ── */
.featured-article {
    background: var(--bt-pale-blue);
    border-left: 4px solid var(--bt-burgundy);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
.featured-article .label {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--bt-burgundy);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.featured-article h3 { margin-top: 0.1rem; }
.featured-article h3 a { color: var(--bt-navy); }

/* ── Article page ── */
.article-header {
    margin-bottom: 2rem;
}
.article-header .breadcrumbs {
    font-size: 0.82rem;
    color: var(--bt-slate);
    margin-bottom: 0.5rem;
}
.article-header .breadcrumbs a { color: var(--bt-burgundy); }
.article-header .category-label {
    display: inline-block;
    background: var(--bt-burgundy);
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}
.article-header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.article-header .summary-lead {
    font-size: 1.1rem;
    color: var(--bt-slate);
    font-style: italic;
    margin-bottom: 0.75rem;
}
.article-header .byline {
    font-size: 0.85rem;
    color: var(--bt-slate);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.article-body {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }

/* ── Callout boxes ── */
.callout {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 3px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.callout-claim {
    background: var(--bt-pale-gold);
    border-left: 4px solid var(--bt-gold);
}
.callout-claim::before {
    content: 'Calvinist Claim';
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--bt-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}
.callout-context {
    background: var(--bt-pale-blue);
    border-left: 4px solid var(--bt-olive);
}
.callout-context::before {
    content: 'Text in Context';
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--bt-olive);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}
.callout-response {
    background: var(--bt-pale-burgundy);
    border-left: 4px solid var(--bt-burgundy);
}
.callout-response::before {
    content: 'Beyond Tulip Response';
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--bt-burgundy);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

/* ── References ── */
.works-referenced {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.works-referenced h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bt-slate);
    margin-bottom: 0.75rem;
}
.works-referenced ol {
    font-size: 0.9rem;
    color: var(--bt-slate);
    padding-left: 1.2rem;
}

/* ── Post nav (prev/next) ── */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    gap: 1rem;
}
.post-nav a { color: var(--bt-burgundy); }
.post-nav .prev, .post-nav .next { max-width: 45%; }

/* ── Author box ── */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bt-pale-blue);
    border-radius: 4px;
}
.author-box .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bt-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.author-box .author-info h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.author-box .author-info p { font-size: 0.88rem; color: var(--bt-slate); margin: 0; }

/* ── Related ── */
.related-articles {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.related-articles h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bt-slate);
    margin-bottom: 0.75rem;
}
.related-articles ul { list-style: none; margin: 0; padding: 0; }
.related-articles li { margin-bottom: 0.4rem; }

/* ── Doctrine Hub ── */
.doctrine-definition {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.doctrine-definition .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bt-slate);
    font-weight: 700;
}
.doctrine-position {
    background: var(--bt-pale-burgundy);
    border-left: 4px solid var(--bt-burgundy);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.doctrine-position h3 { margin-top: 0; }

/* ── Search ── */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.search-box input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
}
.search-box input:focus { outline: none; border-color: var(--bt-burgundy); }
.search-box button {
    padding: 0.6rem 1.2rem;
    background: var(--bt-navy);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
}
.search-box button:hover { background: var(--bt-burgundy); }

/* ── Footer ── */
.site-footer {
    background: var(--bt-navy);
    color: var(--bt-slate);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}
.site-footer a { color: var(--bt-ivory); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 0.75rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 0.82rem;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

@media (max-width: 640px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    .article-header h1 { font-size: 1.8rem; }
    .hero h1 { font-size: 1.7rem; }
    .card-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .site-logo .logo-full { display: none; }
    .site-logo .logo-submark { display: block; }
}

/* ── Section divider ── */
.section-divider {
    text-align: center;
    margin: 2rem 0;
}
.section-divider img { margin: 0; opacity: 0.4; }

/* ── Skip link ── */
.skip-link {
    position: absolute; top: -100px; left: 1rem;
    background: var(--bt-navy); color: #fff; padding: 0.5rem 1rem;
    z-index: 100; border-radius: 0 0 3px 3px; font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ── Mobile menu ── */
.mobile-menu-checkbox { display: none; }
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem; cursor: pointer; color: var(--bt-navy);
    line-height: 1; user-select: none;
}
@media (max-width: 640px) {
    .mobile-menu-btn { display: block; }
    .site-nav {
        display: none; flex-direction: column;
        width: 100%; gap: 0.5rem; margin-top: 0.5rem;
        padding-top: 0.5rem; border-top: 1px solid var(--border);
    }
    .mobile-menu-checkbox:checked ~ .site-nav { display: flex; }
    .header-inner { flex-wrap: wrap; }
}
