:root {
    --ink: #27231f;
    --muted: #6d6257;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --grain: #f2eadf;
    --cedar: #b75d2a;
    --cedar-dark: #7a3518;
    --steel: #315560;
    --moss: #596f3d;
    --line: #e1d7cb;
    --shadow: 0 20px 50px rgba(43, 34, 25, .12);
    --radius: 8px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(183, 93, 42, .04) 1px, transparent 1px),
        linear-gradient(180deg, #fffdf8 0%, var(--paper) 55%, #f3eee6 100%);
    background-size: 42px 42px, auto;
    color: var(--ink);
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

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

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 20;
    transform: translateY(-160%);
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 250, 246, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 46px;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    background: var(--grain);
    color: var(--cedar-dark);
    font-family: Literata, Georgia, serif;
    font-weight: 700;
}

.brand strong,
h1,
h2,
h3 {
    font-family: Literata, Georgia, serif;
    line-height: 1.08;
}

.brand strong {
    display: block;
    font-size: 1.1rem;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .95rem;
    font-weight: 700;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--cedar-dark);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    padding: clamp(56px, 8vw, 104px) 0 44px;
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: clamp(32px, 7vw, 90px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cedar-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.article h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero p,
.page-hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 18px;
    background: var(--cedar);
    color: #fff;
    border: 2px solid var(--cedar);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.button--quiet {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.bench {
    position: relative;
    min-height: 360px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .55)),
        repeating-linear-gradient(90deg, #d7a86f 0 18px, #c89052 18px 36px);
    border: 1px solid #b78350;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bench::after {
    content: "";
    position: absolute;
    inset: auto 28px 30px 28px;
    height: 10px;
    background: repeating-linear-gradient(90deg, var(--steel) 0 34px, transparent 34px 52px);
    opacity: .8;
}

.bench__label {
    display: inline-flex;
    margin-bottom: 48px;
    padding: 6px 10px;
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.bench__title {
    display: block;
    max-width: 430px;
    font-family: Literata, Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
}

.bench p {
    max-width: 440px;
    color: #44392f;
}

.category-strip {
    background: var(--ink);
    color: #fff;
}

.category-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.category-strip a {
    padding: 18px 14px;
    border-left: 1px solid rgba(255, 255, 255, .16);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.category-strip a:last-child {
    border-right: 1px solid rgba(255, 255, 255, .16);
}

.category-strip a:hover {
    background: var(--cedar);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(28px, 5vw, 60px);
    padding: clamp(44px, 7vw, 82px) 0;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2,
.sidebar h2,
.site-footer h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

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

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

.post-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(43, 34, 25, .06);
}

.post-card__image {
    display: block;
    aspect-ratio: 1.48;
    overflow: hidden;
    background: var(--grain);
    text-decoration: none;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.04);
}

.post-card__image--fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(49, 85, 96, .9), rgba(89, 111, 61, .88)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, .14) 18px 20px);
    color: #fff;
    font-family: Literata, Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.post-card__body {
    padding: 20px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-row a {
    padding: 4px 8px;
    background: #f3e5d8;
    color: var(--cedar-dark);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.post-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.post-card h3 a {
    text-decoration: none;
}

.post-card p,
.sidebar p,
.site-footer p,
.article__meta {
    color: var(--muted);
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.post-card__meta a {
    color: var(--cedar-dark);
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.sidebar__section {
    padding: 22px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar__section--note {
    background: var(--steel);
    border-color: var(--steel);
    color: #fff;
}

.sidebar__section--note p {
    color: rgba(255, 255, 255, .84);
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.topic-list a {
    padding: 7px 10px;
    background: var(--grain);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
}

.page-hero,
.article__header {
    padding: clamp(46px, 8vw, 90px) 0;
    background: linear-gradient(135deg, #f7efe5, #fffdf8);
    border-bottom: 1px solid var(--line);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
    font-weight: 800;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    text-decoration: none;
}

.article__header-inner {
    max-width: 860px;
}

.article__meta {
    margin-top: 18px;
}

.article__image {
    margin-top: 34px;
}

.article__image img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article__body {
    max-width: 820px;
    padding: 42px 0 84px;
}

.article__body h2,
.article__body h3 {
    margin-top: 1.5em;
}

.article__body p {
    margin: 0 0 1.15em;
}

.article__body img {
    width: 100%;
    border-radius: var(--radius);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 30px;
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.site-footer {
    padding: 42px 0;
    background: var(--ink);
    color: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.site-footer p {
    max-width: 560px;
    color: rgba(255, 255, 255, .72);
}

.site-footer__links {
    display: grid;
    gap: 8px;
}

.site-footer__links a {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 920px) {
    .hero__grid,
    .content-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    body {
        font-size: 17px;
    }

    .wrap {
        width: min(100% - 28px, 1120px);
    }

    .site-header__inner {
        min-height: 68px;
    }

    .brand small {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        padding: 14px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .hero h1,
    .page-hero h1,
    .article h1 {
        font-size: clamp(2.6rem, 16vw, 4.4rem);
    }

    .bench {
        min-height: 300px;
    }

    .category-strip__inner,
    .post-grid,
    .post-grid--archive,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .category-strip a,
    .category-strip a:last-child {
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .post-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
