body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #f7f4ee;
    line-height: 1.6;
}

a {
    color: #0f4c5c;
}

a:hover {
    color: #803d3b;
}

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

.site-shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #d8d1c4;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__inner,
.site-footer__inner,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__inner,
.site-footer__inner {
    padding: 1rem 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.site-brand__mark-frame {
    position: relative;
    display: block;
    width: 72px;
    height: 90px;
    flex: 0 0 72px;
}

.site-brand__mark {
    position: absolute;
    top: 50%;
    right: 0;
    width: clamp(190px, calc(((100vw - min(1100px, calc(100vw - 2rem))) / 2) + 72px), 360px);
    height: 90px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translateY(-50%);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #171717;
    text-decoration: none;
}

.site-tagline,
.post-date,
.eyebrow,
.section-label,
.post-type,
.post-author {
    color: #6b665c;
}

.site-tagline,
.post-author,
.post-type {
    margin: 0.35rem 0 0;
}

.site-nav,
.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.site-nav a,
.text-link {
    text-decoration: none;
    font-weight: 600;
}

.site-main {
    padding: 2rem 0 4rem;
}

.hero,
.archive-header,
.section-copy,
.section-featured,
.section-list,
.post-article,
.page-article {
    margin-bottom: 2rem;
}

.hero {
    background: #151923;
    color: #fefcf8;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hero--home {
    min-height: 430px;
    display: grid;
    align-items: end;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 12, 18, 0.92), rgba(9, 12, 18, 0.56) 48%, rgba(9, 12, 18, 0.16));
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: clamp(2rem, 5vw, 4rem);
}

.hero h1,
.archive-header h1,
.post-article h1,
.page-article h1 {
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    max-width: 13ch;
}

.hero__lede {
    max-width: 42rem;
    font-size: 1.125rem;
}

.section-copy--intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 1.5rem;
    align-items: stretch;
}

.section-copy__body,
.author-card {
    background: #ffffff;
    border: 1px solid #d8d1c4;
    border-radius: 8px;
}

.section-copy__body {
    padding: 1.5rem;
}

.author-card {
    margin: 0;
    overflow: hidden;
}

.author-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.author-card figcaption {
    padding: 1rem;
    color: #4b4f58;
    font-size: 0.95rem;
}

.archive-list,
.post-grid {
    display: grid;
    gap: 1rem;
}

.post-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.post-card,
.post-article,
.page-article,
.search-form--page {
    background: #ffffff;
    border: 1px solid #d8d1c4;
    border-radius: 8px;
}

.post-card,
.post-article,
.page-article {
    padding: 1.5rem;
}

.post-card__image,
.archive-header__image,
.post-image img {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.post-card__image {
    aspect-ratio: 16 / 5;
    margin: -0.25rem 0 1rem;
}

.post-grid .post-card__image {
    aspect-ratio: 16 / 7;
}

.archive-header {
    background: #ffffff;
    border: 1px solid #d8d1c4;
    border-radius: 8px;
    padding: 1.5rem;
}

.archive-header__image {
    aspect-ratio: 16 / 5;
    margin-bottom: 1rem;
}

.post-image {
    margin: 1.5rem 0;
}

.post-image img {
    aspect-ratio: 16 / 5;
}

.post-card h2,
.post-card h3 {
    margin: 0.35rem 0 0.75rem;
    line-height: 1.2;
}

.post-card--featured {
    padding: 2rem;
}

.post-body > *:first-child,
.page-body > *:first-child {
    margin-top: 0;
}

.search-form--page {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #bcb3a2;
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    font: inherit;
}

.search-form button {
    border: 0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: #0f4c5c;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid #d8d1c4;
    background: #ffffff;
}

.footer-divider {
    margin: 0 0.5rem;
    color: #bcb3a2;
}

@media (max-width: 720px) {
    .site-header__inner,
    .site-footer__inner,
    .section-heading,
    .site-nav,
    .search-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form {
        width: 100%;
    }

    .search-form input,
    .search-form button {
        width: 100%;
    }

    .site-brand__mark-frame {
        width: 150px;
        height: 68px;
        flex-basis: 150px;
    }

    .site-brand__mark {
        position: static;
        width: 150px;
        height: 68px;
        transform: none;
    }

    .hero--home {
        min-height: 360px;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(9, 12, 18, 0.28), rgba(9, 12, 18, 0.9));
    }

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