:root {
    --bg: #f5f1e8;
    --paper: #fffaf1;
    --ink: #1f1a16;
    --muted: #665f58;
    --line: #d9cfbf;
    --brand: #8a2e1f;
    --brand-dark: #5d1d13;
    --accent: #0d7c66;
    --shadow: 0 14px 40px rgba(31, 26, 22, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1400px 700px at 8% -8%, rgba(138, 46, 31, 0.12), transparent 55%),
        radial-gradient(1000px 540px at 102% 0%, rgba(13, 124, 102, 0.16), transparent 52%),
        linear-gradient(180deg, #f7f3ea 0%, #efe6d7 100%);
    line-height: 1.6;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(247, 243, 234, 0.84);
    border-bottom: 1px solid rgba(93, 29, 19, 0.16);
}

.noise-layer {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, 0.18) 0.6px, transparent 0.6px);
    background-size: 3px 3px;
}

.nav-wrap {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
}

.brand-mark {
    width: 220px;
    height: 75px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 7px 13px rgba(138, 46, 31, 0.12));
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--ink);
    font-weight: 600;
}

.nav-list a.active {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
    padding-bottom: 3px;
}

.hero {
    padding: 74px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-copy h1 {
    margin: 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(2rem, 4.7vw, 4rem);
    line-height: 1.05;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 64ch;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-card,
.card,
.archive-item,
.info-box,
.sermon-article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 24px;
    background:
        linear-gradient(165deg, rgba(255, 250, 241, 0.98), rgba(252, 241, 227, 0.95)),
        repeating-linear-gradient(-35deg, rgba(138, 46, 31, 0.08) 0 10px, rgba(255, 250, 241, 0.07) 10px 20px);
}

.feature-portrait {
    width: 118px;
    aspect-ratio: 147 / 215;
    object-fit: cover;
    float: right;
    margin: 0 0 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(93, 29, 19, 0.18);
    box-shadow: 0 12px 28px rgba(31, 26, 22, 0.18);
}

.feature-card h2 {
    margin: 10px 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2rem;
    line-height: 1.2;
}

.feature-label {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
}

.meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 34px 0 56px;
}

.section-soft {
    padding-top: 10px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    padding: 20px;
}

.card h2,
.card h3 {
    margin: 8px 0;
    font-family: 'Newsreader', Georgia, serif;
    line-height: 1.2;
}

.author {
    color: var(--muted);
    margin: 0 0 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.info-box {
    padding: 20px;
    border-top: 6px solid #d4a742;
}

.info-box h2 {
    margin: 0 0 10px;
    font-family: 'Newsreader', Georgia, serif;
}

.search-form {
    margin: 16px 0 22px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 250, 241, 0.86);
    border: 1px solid var(--line);
}

.search-form label {
    font-weight: 600;
}

.search-row {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-row input {
    min-height: 46px;
    border: 1px solid #c7b9a4;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1rem;
    font-family: inherit;
}

.archive-list {
    display: grid;
    gap: 12px;
}

.archive-item {
    display: grid;
    gap: 12px;
    align-items: center;
    grid-template-columns: 1fr auto;
    padding: 18px;
}

.archive-item h2 {
    margin: 4px 0;
    font-family: 'Newsreader', Georgia, serif;
}

.search-snippet {
    margin: 10px 0 0;
    max-width: 78ch;
    color: #453b32;
}

.search-snippet mark {
    padding: 0 3px;
    border-radius: 5px;
    background: #f3c883;
    color: #1f1a16;
    font-weight: 800;
}

.sermon-article {
    padding: 18px clamp(14px, 3vw, 40px) 28px;
}

.sermon-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
}

.sermon-portrait {
    width: 147px;
    aspect-ratio: 147 / 215;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(93, 29, 19, 0.18);
    box-shadow: 0 14px 32px rgba(31, 26, 22, 0.2);
}

.sermon-head h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    margin: 8px 0;
}

.legacy-content {
    margin-top: 16px;
    font-size: 1.08rem;
}

.legacy-content font,
.legacy-content dir,
.legacy-content center {
    display: contents;
}

.legacy-content p,
.legacy-content ul,
.legacy-content ol {
    max-width: 72ch;
}

.article-nav {
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(165deg, #8a2e1f, #b24a2f);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-ghost {
    background: #fff;
    border-color: #b09b84;
    color: var(--brand-dark);
}

.text-link {
    font-weight: 700;
}

.site-footer {
    margin-top: 30px;
    background: #1f1a16;
    color: #e9dec8;
    padding: 34px 0 22px;
}

.site-footer a {
    color: #f3c883;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
}

.footer-grid h2 {
    margin-top: 0;
    font-size: 1.08rem;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li {
    margin-bottom: 6px;
}

.footer-bottom {
    margin-top: 16px;
    border-top: 1px solid rgba(233, 222, 200, 0.2);
    padding-top: 10px;
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-step {
    margin: 0 0 16px;
}

.contact-step h2 {
    margin: 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.contact-choice-grid .card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.contact-choice-grid .btn {
    justify-self: start;
    margin-top: 6px;
}

.contact-form-card {
    max-width: 760px;
    padding: 24px;
}

.contact-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #c7b9a4;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 132px;
}

.contact-form input[type="file"] {
    padding: 9px;
}

.form-help {
    margin: -4px 0 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-checks {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 250, 241, 0.72);
    border: 1px solid var(--line);
}

.contact-form .checkbox-label {
    display: flex;
    align-items: start;
    gap: 9px;
    color: var(--ink);
    font-weight: 600;
}

.contact-form .checkbox-label input {
    width: auto;
    margin-top: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(13, 124, 102, 0.18);
    border-color: var(--accent);
}

.form-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--paper);
}

.form-message p {
    margin: 0 0 8px;
    font-weight: 700;
}

.form-message ul {
    margin: 0;
    padding-left: 20px;
}

.form-message-success {
    border-color: rgba(13, 124, 102, 0.35);
    background: #eef8f1;
}

.form-message-error {
    border-color: rgba(138, 46, 31, 0.35);
    background: #fff1eb;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.legal-page {
    max-width: 860px;
}

.legal-section {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 241, 0.86);
}

.legal-section h2,
.legal-section h3 {
    font-family: 'Newsreader', Georgia, serif;
    line-height: 1.2;
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.legal-section h3 {
    margin: 22px 0 8px;
    font-size: 1.2rem;
}

.legal-section p,
.legal-section li {
    max-width: 76ch;
}

@media (max-width: 980px) {
    .hero-grid,
    .card-grid,
    .info-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .archive-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav-wrap {
        min-height: 70px;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        padding: 10px 0;
    }

    .nav-list {
        gap: 14px;
        font-size: 0.94rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-grid,
    .card-grid,
    .info-grid,
    .contact-grid,
    .footer-grid,
    .search-row {
        grid-template-columns: 1fr;
    }

    .feature-portrait {
        float: none;
        display: block;
        margin: 0 0 14px;
        width: 104px;
    }

    .sermon-head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sermon-portrait {
        width: 118px;
    }
}
