:root {
    color-scheme: light;
    --ink: #24352e;
    --muted: #64716a;
    --green: #28543f;
    --green-dark: #1d4030;
    --gold: #d4a657;
    --cream: #f7f5ef;
    --paper: #fffefa;
    --line: #e3e5dc;
    font-family: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--green);
}

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

h1,
h2,
h3,
.brand-name,
.footer-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.7rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.025em;
}

.skip-link {
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem 0.75rem;
    transform: translateY(-160%);
    background: white;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.section-wrap,
.footer-inner,
.hero-inner {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.brand-name {
    font-size: 1.15rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: var(--cream);
    color: var(--green);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 10%, rgb(212 166 87 / 24%), transparent 36%),
        linear-gradient(120deg, #1d4030, #315c45 72%, #42674f);
    color: white;
}

.hero::after {
    position: absolute;
    right: -5rem;
    bottom: -13rem;
    width: 35rem;
    height: 35rem;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgb(255 255 255 / 3%), 0 0 0 7rem rgb(255 255 255 / 3%);
    content: "";
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(5rem, 12vw, 9rem);
    padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 1.3rem;
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: #9b7540;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f0cc8d;
}

.hero-statement {
    max-width: 690px;
    margin-bottom: 0.45rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.4;
}

.hero-copy {
    color: rgb(255 255 255 / 80%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.button-light {
    background: white;
    color: var(--green-dark);
}

.button-light:hover {
    background: var(--cream);
    color: var(--green-dark);
}

.button-outline {
    border-color: rgb(255 255 255 / 58%);
    color: white;
}

.button-outline:hover {
    background: rgb(255 255 255 / 12%);
    color: white;
}

.button-dark {
    background: var(--green);
    color: white;
}

.button-dark:hover {
    background: var(--green-dark);
    color: white;
}

.hope-line {
    margin: 3rem 0 0;
    color: #f0cc8d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-style: italic;
}

.latest-sermon {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.latest-sermon .section-heading {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.latest-sermon .section-heading p:last-child {
    margin-bottom: 0;
}

.video-frame {
    width: min(900px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    box-shadow: 0 18px 48px rgb(30 48 37 / 16%);
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.welcome-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.welcome-copy p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
}

.service-card,
.program-card,
.sermon-card,
.contact-card {
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
}

.service-card h2 {
    margin-bottom: 1.1rem;
    font-size: 1.7rem;
}

.service-card dl {
    margin: 0;
}

.service-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}

.service-card dt {
    font-weight: 700;
}

.service-card dd {
    margin: 0;
    color: var(--green);
    text-align: right;
}

.schedule-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.text-link {
    display: inline-block;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.events-preview {
    padding: 4.5rem 0;
    background: var(--cream);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.section-heading p:last-child {
    color: var(--muted);
}

.notice-list,
.content-list {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 1.5rem;
    padding-left: 1.3rem;
}

.notice-list li,
.content-list li {
    padding-left: 0.2rem;
}

.program-section {
    padding: 5rem 0;
}

.program-section.section-wrap {
    padding-right: 0;
    padding-left: 0;
}

.program-grid,
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.program-card h3,
.sermon-card h2 {
    margin-bottom: 0.8rem;
}

.program-card p,
.sermon-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.visit-section {
    padding: 3rem 0;
    background: var(--green);
    color: white;
}

.scripture-section {
    padding: 3rem 0;
    background: var(--cream);
}

.scripture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.scripture-grid blockquote {
    margin: 0;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.scripture-grid p {
    margin-bottom: 0.7rem;
}

.scripture-grid cite {
    color: var(--green);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 700;
}

.visit-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.visit-inner h2 {
    margin-bottom: 0.45rem;
}

.visit-inner p:last-child {
    margin-bottom: 0;
    color: rgb(255 255 255 / 78%);
}

.page-hero {
    padding: 5rem 0 3.5rem;
    background: var(--cream);
}

.page-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.page-intro {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.page-content {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.notice {
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--gold);
    background: #fbf5e9;
    color: #574729;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.event-card {
    padding: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #fff;
}

.event-when {
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.event-title {
    margin: 0 0 0.4rem;
}

.event-details {
    margin: 0;
}

.event-cards-large {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.event-cards-large .event-card {
    padding: 2.2rem;
}

.event-cards-large .event-when {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.event-cards-large .event-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.event-cards-large .event-details {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.content-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.content-section {
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
}

.content-section h2,
.contact-card h2 {
    margin-bottom: 1rem;
    font-size: 1.65rem;
}

.content-section p:last-child,
.contact-card p:last-of-type {
    margin-bottom: 0;
}

.contact-card {
    max-width: 620px;
    margin: 0 auto 3rem;
}

.contact-card address {
    margin-bottom: 1rem;
    font-style: normal;
}

.technician-card {
    max-width: 620px;
    margin: 0 auto;
}

.technician-card form {
    display: grid;
    gap: 0.7rem;
}

.technician-card form + form {
    margin-top: 1.5rem;
}

.technician-card label {
    font-weight: 700;
}

.technician-card input {
    width: 100%;
    min-height: 46px;
    margin-bottom: 0.7rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
}

.technician-card button {
    justify-self: start;
    cursor: pointer;
}

.technician-logout {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.event-editor-list {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.event-editor-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
}

.event-editor-card.event-ended {
    background: var(--cream);
}

.event-editor-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.event-editor-heading h2,
.add-event-card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-status {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.event-editor-form.technician-card {
    display: grid;
    gap: 0.7rem;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.event-editor-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    resize: vertical;
}

.event-editor-card > form + form {
    margin-top: 1rem;
}

.add-event-card {
    margin-bottom: 2rem;
}

.event-editor-logout {
    margin-top: 1rem;
}

.contact-card .button {
    margin-top: 0.7rem;
}

.sermon-card h2 {
    font-size: 1.5rem;
}

.sermon-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.sermon-card h2 a:hover {
    color: var(--green);
}

.sermon-card .text-link {
    margin-top: 1rem;
}

.site-footer {
    padding: 2.5rem 0;
    background: #192d23;
    color: rgb(255 255 255 / 78%);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
    gap: 2rem;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-inner p {
    margin-bottom: 0;
}

.footer-contact {
    display: grid;
    gap: 0.4rem;
}

.footer-contact a {
    color: #f0cc8d;
}

.copyright {
    font-size: 0.85rem;
}

@media (max-width: 850px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding-right: 0.6rem;
        padding-left: 0;
    }

    .welcome-section {
        grid-template-columns: 1fr;
    }

    .program-grid,
    .sermon-grid,
    .scripture-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .section-wrap,
    .footer-inner,
    .hero-inner {
        width: min(100% - 2rem, 1120px);
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-links {
        column-gap: 0.65rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero-inner {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

    .welcome-section,
    .events-preview,
    .latest-sermon,
    .program-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .program-grid,
    .sermon-grid,
    .scripture-grid,
    .content-sections {
        grid-template-columns: 1fr;
    }

    .visit-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .copyright {
        grid-column: auto;
    }
}
