:root {
    --dc-bg: #f7f1e8;
    --dc-surface: #fffaf3;
    --dc-surface-soft: #efe3d2;
    --dc-text: #3b3028;
    --dc-muted: #776a5f;
    --dc-border: #ddcdbb;
    --dc-accent: #7f8b6a;
    --dc-accent-dark: #4f5d41;
    --dc-ribbon: #4a3329;
    --dc-ribbon-dark: #35241e;
    --dc-ribbon-text: #fff7ea;
    --dc-clay: #c07a62;
    --dc-clay-soft: #f1d8cc;
    --dc-focus: #87986a;
    --dc-radius: 8px;
    --dc-max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--dc-bg);
    color: var(--dc-text);
    font-family: "Segoe UI", Aptos, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: var(--dc-accent-dark);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--dc-clay);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(135, 152, 106, 0.42);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    z-index: 20;
    transform: translateY(-150%);
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 0.45rem 0.7rem;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--dc-ribbon);
    border-bottom: 1px solid rgba(255, 247, 234, 0.2);
}

.site-header__inner,
.site-footer__inner,
.site-main {
    width: min(var(--dc-max), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.site-name {
    color: var(--dc-ribbon-text);
    font-size: 1.45rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav,
.footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.site-nav a,
.footer-nav a {
    border-radius: 999px;
    color: rgba(255, 247, 234, 0.88);
    font-size: 1.04rem;
    font-weight: 650;
    padding: 0.3rem 0.55rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.footer-nav a:hover {
    color: var(--dc-ribbon-text);
    background: rgba(255, 247, 234, 0.14);
}

.site-main {
    flex: 1 0 auto;
    padding: 2.2rem 0 3rem;
}

.section-narrow {
    max-width: 760px;
}

.intro,
.page-intro {
    margin-bottom: 2rem;
}

.eyebrow,
.category-label {
    color: var(--dc-clay);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--dc-text);
    font-family: "Segoe UI", Aptos, "Helvetica Neue", Arial, sans-serif;
    font-weight: 720;
    line-height: 1.25;
    margin: 0 0 0.65rem;
}

h1 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h2 {
    font-size: 1.45rem;
}

h3 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1rem;
}

.content-section {
    margin-top: 2.2rem;
}

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

.section-heading p,
.page-intro p,
.intro p {
    color: var(--dc-muted);
}

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

.post-card {
    overflow: hidden;
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
}

.post-card__image-link {
    display: block;
    background: var(--dc-surface-soft);
}

.post-card img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 1rem;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.post-card time {
    color: var(--dc-muted);
    font-size: 0.82rem;
}

.post-card h3 a {
    color: var(--dc-text);
    text-decoration: none;
}

.post-card p {
    color: var(--dc-muted);
    font-size: 0.96rem;
}

.read-more {
    color: var(--dc-accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.post-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(56px, 1fr) minmax(0, 80%) minmax(56px, 1fr);
    align-items: start;
    width: min(1420px, calc(100vw - 2rem));
    margin-left: 50%;
    transform: translateX(-50%);
}

.future-ad-space {
    min-height: 1px;
}

.post-article {
    padding: 0;
}

.post-header {
    margin-bottom: 1.2rem;
}

.post-date {
    color: var(--dc-muted);
    font-size: 0.92rem;
}

.featured-image {
    border-radius: var(--dc-radius);
    margin: 1rem 0 1.25rem;
    width: 100%;
}

.article-body {
    font-size: 1rem;
    line-height: 1.65;
}

.article-body h2 {
    margin-top: 1.7rem;
}

.article-body h3 {
    margin-top: 1.3rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.35rem;
}

.article-body li {
    margin-bottom: 0.35rem;
}

.callout {
    background: var(--dc-clay-soft);
    border-left: 4px solid var(--dc-clay);
    border-radius: var(--dc-radius);
    margin: 1.25rem 0;
    padding: 0.9rem 1rem;
}

.related-posts {
    border-top: 1px solid var(--dc-border);
    margin-top: 2rem;
    padding-top: 1.2rem;
}

.related-links {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.1rem;
}

.legal-page {
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    max-width: 820px;
    padding: clamp(1.1rem, 3vw, 2rem);
}

.legal-page h2 {
    margin-top: 1.6rem;
}

.site-footer {
    flex-shrink: 0;
    background: var(--dc-ribbon-dark);
    border-top: 1px solid rgba(255, 247, 234, 0.2);
    color: rgba(255, 247, 234, 0.88);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
}

.site-footer p {
    color: var(--dc-ribbon-text);
    font-size: 1.02rem;
    font-weight: 650;
    margin: 0;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    display: grid;
    gap: 1rem;
    max-width: 640px;
    background: var(--dc-surface);
    border: 2px solid var(--dc-clay);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(59, 48, 40, 0.24);
    padding: 1.1rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    color: var(--dc-muted);
    font-size: 0.96rem;
    margin: 0.2rem 0 0;
}

.cookie-banner a {
    font-weight: 700;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.button {
    appearance: none;
    background: var(--dc-accent);
    border: 1px solid var(--dc-accent);
    border-radius: 999px;
    color: var(--dc-ribbon-text);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.55rem 0.85rem;
}

.button:hover {
    background: var(--dc-accent-dark);
}

.button--ghost {
    background: transparent;
    color: var(--dc-accent-dark);
}

.button--ghost:hover {
    background: rgba(127, 139, 106, 0.14);
}

.button--soft {
    background: var(--dc-surface-soft);
    border-color: var(--dc-border);
    color: var(--dc-text);
}

.button--soft:hover {
    background: var(--dc-surface-soft);
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-layout {
        display: block;
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .future-ad-space {
        display: none;
    }
}

@media (max-width: 680px) {
    .site-header__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-main {
        padding-top: 1.5rem;
    }

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

    .cookie-banner {
        left: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: flex-end;
    }
}
