:root {
    --speldhurst-bg: #ece8d1;
    --speldhurst-paper: #ffffff;
    --speldhurst-ink: #4d4c46;
    --speldhurst-muted: #777268;
    --speldhurst-accent: #f26b1d;
    --speldhurst-accent-soft: #fff1e5;
    --speldhurst-border: #d8d3c3;
    --speldhurst-shadow: 0 24px 60px rgba(66, 55, 35, 0.12);
    --speldhurst-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f6f2dd 0%, #ebe6cf 100%);
    color: var(--speldhurst-ink);
    font-family: 'Source Sans 3', Arial, sans-serif;
    line-height: 1.6;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

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

.site-shell {
    padding: 0 1rem 2rem;
}

.site-frame {
    max-width: var(--speldhurst-width);
    margin: 0 auto;
}

.site-header {
    background: var(--speldhurst-bg);
    box-shadow: var(--speldhurst-shadow);
}

.site-header__accent {
    height: 4px;
    background: var(--speldhurst-accent);
}

.site-header__branding {
    display: grid;
    grid-template-columns: minmax(220px, 32%) 1fr minmax(150px, 18%);
    min-height: 80px;
    background: linear-gradient(180deg, #62635b 0%, #89938a 100%);
}

.site-header__wordmark {
    background: transparent;
}

.site-header__wordmark a,
.site-header__sign {
    height: 100%;
}

.site-header__wordmark a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 0 1.75rem;
    color: #ffffff;
    text-decoration: none;
}

.site-header__wordmark a:hover,
.site-header__wordmark a:focus {
    text-decoration: none;
}

.site-header__wordmark-text {
    display: flex;
    align-items: center;
    line-height: 1;
}

.site-header__title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.site-header__wordmark img,
.site-header__sign img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header__sign {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__sign img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.site-header__fill {
    background: transparent;
}

.primary-nav {
    background: var(--speldhurst-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(120, 110, 80, 0.15);
}

.primary-nav__toggle {
    display: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: #3c392f;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    text-align: left;
}

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.primary-nav__list li {
    margin: 0;
}

.primary-nav__list a {
    display: block;
    padding: 0.95rem 1.5rem;
    color: #2f2d28;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
}

.primary-nav__list li:last-child a {
    border-right: 0;
}

.primary-nav__list .current-menu-item a,
.primary-nav__list a:hover,
.primary-nav__list a:focus {
    background: #ffffff;
    color: var(--speldhurst-accent);
    text-decoration: none;
}

.site-main {
    background: var(--speldhurst-paper);
    border: 1px solid var(--speldhurst-border);
    border-top: 0;
    padding: 1.5rem;
    box-shadow: var(--speldhurst-shadow);
}

.home-hero,
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f4e8 0%, #ede5d1 100%);
    border: 1px solid var(--speldhurst-border);
}

.home-banner {
    margin-bottom: 1.5rem;
    border: 1px solid var(--speldhurst-border);
    background: #fffdfa;
    box-shadow: var(--speldhurst-shadow);
    overflow: hidden;
}

.home-banner__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.home-hero {
    padding: 2rem;
}

.home-hero__eyebrow,
.page-hero__kicker {
    margin: 0 0 0.4rem;
    color: var(--speldhurst-accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero h1,
.page-hero h1 {
    margin: 0 0 1rem;
    color: #3b392f;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 300;
}

.home-hero__aside {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.78);
    border-left: 4px solid var(--speldhurst-accent);
    padding: 1.25rem 1.25rem 1rem;
}

.home-hero__aside h2,
.section-heading h2,
.child-page-card h3,
.feature-card h3 {
    margin-top: 0;
}

.home-hero__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-hero__links li + li {
    margin-top: 0.8rem;
}

.feature-grid-wrap,
.child-pages {
    margin-top: 2rem;
}

.section-heading {
    border-bottom: 1px solid var(--speldhurst-border);
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin-bottom: 0.6rem;
    color: #3b392f;
    font-size: 1.75rem;
    font-weight: 400;
}

.feature-grid,
.child-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card,
.child-page-card,
.page-content-panel {
    border: 1px solid var(--speldhurst-border);
    background: #fffdfa;
}

.feature-card,
.child-page-card {
    padding: 1.25rem;
}

.child-page-card__image {
    margin: -1.25rem -1.25rem 1rem;
    min-width: calc(100% + 2.5rem);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid var(--speldhurst-border);
    background: #f3ecd9;
}

.page-shell {
    display: block;
}

.page-hero {
    margin-bottom: 1.5rem;
    padding: 1.75rem 2rem;
}

.page-content-panel {
    padding: 1.5rem;
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

.entry-content--placeholder {
    color: var(--speldhurst-muted);
}

.post-summary + .post-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--speldhurst-border);
}

.site-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #efead5;
    border: 1px solid var(--speldhurst-border);
    border-top: 0;
    padding: 1rem 1.5rem;
    box-shadow: var(--speldhurst-shadow);
}

.site-footer__meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.site-footer__meta a {
    font-weight: 600;
}

.site-footer__sign {
    width: min(180px, 28vw);
    position: relative;
    z-index: 1;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 900px) {
    .primary-nav__toggle {
        display: block;
    }

    .primary-nav__panel {
        display: none;
        border-top: 1px solid rgba(120, 110, 80, 0.15);
    }

    .primary-nav.is-open .primary-nav__panel {
        display: block;
    }

    .primary-nav__list {
        display: block;
        padding: 0;
    }

    .primary-nav__list a {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.75);
        padding: 0.9rem 1.25rem;
    }
}

@media (max-width: 700px) {
    .site-shell {
        padding: 0 0 1.5rem;
    }

    .site-header__branding {
        grid-template-columns: 1fr;
    }

    .site-header__wordmark a {
        min-height: 88px;
        justify-content: center;
    }

    .site-header__fill,
    .site-header__sign {
        display: none;
    }

    .site-main,
    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-hero,
    .page-hero {
        padding: 1.25rem;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__sign {
        width: 140px;
    }
}
