:root {
    --color-gold: rgb(212, 166, 74);
    --color-cream: rgb(245, 233, 220);
    --color-ink: #181310;
    --color-muted: #6f625a;
    --color-paper: #fffaf2;
    --color-sage: #52796f;
    --color-sage-dark: #263f3a;
    --shadow-soft: 0 18px 45px rgba(24, 19, 16, 0.12);
    --radius: 8px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-cream);
    color: var(--color-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: inherit;
}

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

.skip-link {
    background: var(--color-ink);
    color: #fff;
    left: 1rem;
    padding: 0.75rem 1rem;
    position: absolute;
    top: -10rem;
    z-index: 1000;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    background: var(--color-gold);
    box-shadow: 0 8px 22px rgba(24, 19, 16, 0.14);
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max-width);
    min-height: 86px;
    padding: 0.9rem 1.25rem;
}

.site-branding {
    flex: 0 0 auto;
    max-width: 260px;
}

.custom-logo-link img {
    max-height: 68px;
    width: auto;
}

.site-title {
    color: var(--color-ink);
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
}

.primary-nav__list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    background: var(--color-cream);
    border: 2px solid rgba(24, 19, 16, 0.08);
    border-radius: var(--radius);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    min-height: 46px;
    padding: 0.8rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a:focus {
    background: var(--color-sage-dark);
    color: #fff;
}

.site-main {
    min-height: 60vh;
}

.hero {
    background: linear-gradient(180deg, var(--color-paper), var(--color-cream));
    border-bottom: 1px solid rgba(24, 19, 16, 0.08);
}

.hero__inner {
    align-items: stretch;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 5.5rem 1.25rem 4rem;
}

.hero__copy h1,
.single-header h1,
.archive-header h1 {
    font-size: clamp(2.45rem, 6vw, 5.25rem);
    letter-spacing: 0;
    line-height: 0.98;
    margin: 0 0 1.25rem;
    max-width: 10ch;
}

.hero__copy p {
    color: var(--color-muted);
    font-size: 1.2rem;
    max-width: 650px;
}

.hero__note {
    align-self: end;
    background: var(--color-gold);
    border: 2px solid rgba(24, 19, 16, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    min-height: 220px;
    padding: 1.4rem;
}

.hero__note p {
    font-size: 1.75rem;
    font-weight: 850;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero__note span {
    color: rgba(24, 19, 16, 0.72);
}

.eyebrow {
    color: var(--color-sage-dark);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.button,
.wp-block-button__link {
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 850;
    justify-content: center;
    line-height: 1.1;
    min-height: 50px;
    padding: 0.9rem 1.15rem;
    text-decoration: none;
}

.button--dark,
.wp-block-button__link {
    background: var(--color-ink);
    color: #fff;
}

.button--dark:hover,
.button--dark:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background: var(--color-sage-dark);
}

.content-band {
    padding: 4.25rem 1.25rem;
}

.content-band--soft {
    background: var(--color-paper);
}

.content-band--intro {
    padding-top: 3rem;
}

.content-band__inner,
.entry-content,
.archive-header__inner,
.single-header__inner,
.post-nav {
    margin: 0 auto;
    max-width: var(--max-width);
}

.entry-content {
    max-width: 820px;
}

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

.entry-content h2,
.section-heading h2,
.site-footer h2 {
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}

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

.post-card {
    background: var(--color-paper);
    border: 1px solid rgba(24, 19, 16, 0.09);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(24, 19, 16, 0.08);
    min-height: 190px;
    overflow: hidden;
}

.post-card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0 0 0.65rem;
}

.post-card h3 a,
.text-link {
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
}

.post-card p {
    color: var(--color-muted);
    margin: 0;
}

.post-card__media {
    aspect-ratio: 4 / 3;
    background: rgba(82, 121, 111, 0.18);
    display: block;
    overflow: hidden;
}

.post-card__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-card__body {
    padding: 1.15rem;
}

.post-card__meta {
    font-size: 0.9rem;
    font-weight: 750;
    margin-bottom: 0.45rem;
}

.text-link {
    color: var(--color-sage-dark);
    display: inline-flex;
    font-weight: 850;
    margin-top: 1rem;
}

.archive-header,
.single-header {
    background: var(--color-paper);
    padding: 4.5rem 1.25rem 3rem;
}

.archive-description {
    color: var(--color-muted);
    max-width: 720px;
}

.single-page,
.single-post {
    padding-bottom: 4rem;
}

.featured-media {
    margin: 2rem auto;
    max-width: 920px;
    padding: 0 1.25rem;
}

.featured-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    width: 100%;
}

.post-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0 1.25rem 4rem;
}

.post-nav a,
.page-numbers {
    background: var(--color-paper);
    border-radius: var(--radius);
    display: inline-flex;
    font-weight: 800;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
}

.navigation.pagination {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.empty-state {
    background: var(--color-paper);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.site-footer {
    background: var(--color-gold);
    color: var(--color-ink);
    padding: 4rem 1.25rem 1.25rem;
}

.site-footer__inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    margin: 0 auto;
    max-width: var(--max-width);
}

.contact-list {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.contact-list li {
    background: rgba(255, 250, 242, 0.55);
    border-radius: var(--radius);
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
}

.contact-list strong {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.social-links,
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    background: var(--color-ink);
    border-radius: var(--radius);
    color: #fff;
    font-weight: 850;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
}

.footer-form {
    background: var(--color-paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form__field {
    display: grid;
    gap: 0.3rem;
    margin: 0;
}

.contact-form label {
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    background: #fff;
    border: 2px solid rgba(24, 19, 16, 0.16);
    border-radius: var(--radius);
    color: var(--color-ink);
    font: inherit;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form__field--hidden {
    display: none;
}

.notice {
    border-radius: var(--radius);
    font-weight: 750;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
}

.notice--success {
    background: rgba(82, 121, 111, 0.16);
}

.notice--error {
    background: rgba(160, 48, 48, 0.12);
}

.footer-widgets {
    margin-top: 1.5rem;
}

.site-footer__bottom {
    border-top: 1px solid rgba(24, 19, 16, 0.18);
    justify-content: space-between;
    margin: 3rem auto 0;
    max-width: var(--max-width);
    padding-top: 1rem;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 920px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header__inner,
    .hero__inner,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        align-items: flex-start;
        display: grid;
    }

    .primary-nav__list {
        justify-content: flex-start;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    body.admin-bar .site-header {
        top: 0;
    }

    .site-header {
        position: static;
    }

    .site-header__inner {
        min-height: 0;
        padding: 0.8rem;
    }

    .primary-nav__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .primary-nav a {
        align-items: center;
        font-size: 0.82rem;
        justify-content: center;
        min-height: 44px;
        padding: 0.65rem;
        text-align: center;
        width: 100%;
    }

    .hero__inner {
        padding: 3rem 1rem;
    }

    .hero__copy h1,
    .single-header h1,
    .archive-header h1 {
        font-size: 2.45rem;
        max-width: 100%;
    }

    .content-band,
    .archive-header,
    .single-header,
    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom,
    .post-nav {
        display: grid;
    }
}
