:root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-2: #f0ebe0;
    --text: #1a1a1a;
    --muted: #6b6862;
    --line: #e3ddd1;
    --accent: #1a3a6b;
    --accent-dark: #112444;
    --shadow: none;
    --radius: 6px;
    --container: 1160px;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(250, 248, 243, 0.92);
    border-bottom: 1px solid rgba(227, 221, 209, 0.8);
}

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

.brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(45deg);
}

.brand--logo img {
    max-height: 38px;
    width: auto;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.9rem;
}

.issue-strip {
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.site-header__controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav .nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav a,
.footer-links .nav a {
    color: var(--muted);
    font-size: 0.96rem;
}

.site-nav .nav .nav-current a {
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.94rem;
    background: var(--text);
    color: white;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
    background: #000;
}

.button--subtle {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button--subtle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.hero {
    display: grid;
    align-items: end;
    min-height: 44vh;
    padding: 72px 0 28px;
    border-bottom: 1px solid var(--line);
}

.hero__copy {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero__title,
.page-title,
.article-title,
.lead-card__title,
.section-title {
    margin: 0;
    font-family: var(--serif);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.hero__title {
    font-size: clamp(3.1rem, 8vw, 6.3rem);
}

.hero__intro,
.page-intro,
.article-excerpt {
    margin: 18px 0 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.14rem;
}

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

.lead-block {
    padding: 18px 0 10px;
}

.lead-card {
    display: block;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.lead-card__meta,
.post-card__meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lead-card__title {
    margin-top: 12px;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.lead-card__excerpt {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 70ch;
}

.section-head {
    padding: 34px 0 18px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding-bottom: 24px;
}

.post-card {
    grid-column: span 4;
    min-width: 0;
}

.post-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    overflow: hidden;
}

.post-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 18px;
}

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

.post-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.post-card__title {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.16;
}

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

.page-hero {
    padding: 56px 0 22px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.article-shell {
    max-width: 820px;
    padding: 56px 0 88px;
}

.article-header {
    margin-bottom: 26px;
}

.article-title {
    margin-top: 14px;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.article-image-wrap {
    margin: 28px 0 0;
}

.article-image {
    width: 100%;
    border-radius: calc(var(--radius) + 6px);
}

.article-image-wrap figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-content {
    font-size: 1.12rem;
}

.article-content > * {
    max-width: 100%;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--serif);
    line-height: 1.18;
    margin: 2.2em 0 0.65em;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table {
    margin: 0 0 1.1em;
}

.article-content blockquote {
    margin-left: 0;
    padding: 18px 22px;
    border-left: 3px solid var(--text);
    background: rgba(0, 0, 0, 0.03);
    font-style: italic;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.14em 0.36em;
    border-radius: 6px;
}

.article-content pre code {
    display: block;
    padding: 18px;
    overflow-x: auto;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-cta {
    margin-top: 40px;
    padding: 32px 0;
    background: transparent;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    text-align: center;
}

.article-cta h2 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.6rem;
}

.article-cta p {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 72px;
}

.pagination-link,
.pagination-status {
    color: var(--muted);
    font-size: 0.94rem;
}

.pagination-link--disabled {
    opacity: 0.4;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding: 28px 0 44px;
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-note {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 48ch;
}

.footer-copyright {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.footer-brand {
    max-width: 56ch;
}

.footer-links .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.is-modern .hero__title,
.is-modern .page-title,
.is-modern .article-title,
.is-modern .lead-card__title,
.is-modern .section-title,
.is-modern .post-card__title,
.is-modern .brand,
.is-modern .footer-title {
    font-family: var(--sans);
    letter-spacing: -0.03em;
}

.hide-mobile {
    display: inline-flex;
}

@media (max-width: 980px) {
    .post-card {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .site-header__inner,
    .footer-grid,
    .site-header__controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav .nav {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .post-card {
        grid-column: span 12;
    }

    .pagination-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .hide-mobile {
        display: none;
    }
}


.kg-width-wide,
.kg-card.kg-width-wide {
    width: min(calc(100% + 120px), 100vw - 40px);
    max-width: 1040px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full,
.kg-card.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-image-card img,
.kg-gallery-card img {
    border-radius: 14px;
}

.kg-embed-card,
.kg-audio-card,
.kg-video-card,
.kg-file-card,
.kg-bookmark-card,
.kg-callout-card,
.kg-toggle-card {
    margin: 0 0 1.4em;
}

.section-title--sm {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.topic-section {
    padding: 56px 0 36px;
    border-top: 1px solid var(--line);
}

.topic-section + .topic-section {
    padding-top: 56px;
}

.topic-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.topic-section__link {
    color: var(--muted);
    font-size: 0.95rem;
}

.card-grid--compact {
    padding-bottom: 10px;
}

.topic-empty {
    padding: 28px 0;
    border: none;
    background: transparent;
    text-align: center;
}

.topic-empty__title {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--muted);
}

.topic-empty__body {
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 48ch;
}
