:root {
    --ink: #182a3a;
    --slate: #4a5a66;
    --muted: #75818a;
    --cream: #fbf8f1;
    --paper: #fffdf8;
    --sand: #e9decd;
    --taupe: #b9aa96;
    --sage: #8d9a86;
    --gold: #b79a5b;
    --line: #e5dccf;
    --shadow: 0 18px 55px rgba(24, 42, 58, 0.08);
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration-color: rgba(183, 154, 91, 0.55);
    text-underline-offset: 0.18em;
}

img {
    max-width: 100%;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 16px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--ink);
    color: white;
}

.skip-link:focus {
    left: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 248, 241, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand img {
    max-height: 48px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: 0.12em;
}

.brand-text span {
    color: var(--slate);
    font-size: 0.84rem;
}

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

.site-nav a {
    color: var(--slate);
    font-size: 0.94rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav .nav-current a {
    color: var(--ink);
}

.nav-toggle {
    display: none;
}

.hero {
    padding: 78px 0 62px;
}

.eyebrow,
.section-kicker {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: clamp(3.7rem, 12vw, 8.75rem);
    line-height: 0.85;
    letter-spacing: 0.08em;
}

.hero-title {
    margin: 20px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 3.3vw, 2.55rem);
    line-height: 1.05;
}

.hero-deck {
    max-width: 760px;
    color: var(--slate);
    font-size: 1.08rem;
}

.hero-actions,
.section-heading,
.split,
.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: white;
    text-decoration: none;
}

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

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

.section h2 {
    max-width: 650px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.2vw, 2.65rem);
    line-height: 1.08;
}

.section-note {
    max-width: 430px;
    color: var(--slate);
}

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

.post-card,
.empty-card,
.citation-box,
.submission-panel,
.topic-card,
.author-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.post-card,
.empty-card {
    min-height: 280px;
    padding: 26px;
}

.post-card h3 {
    margin: 18px 0 12px;
    font-family: var(--serif);
    font-size: 1.32rem;
    line-height: 1.18;
}

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

.post-card p,
.post-card-authors,
.post-card-meta,
.muted {
    color: var(--slate);
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}

.post-card-authors {
    margin-top: 20px;
    font-size: 0.9rem;
}

.topic-band {
    background: rgba(233, 222, 205, 0.38);
}

.topic-list,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-list a,
.tag-list a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--slate);
    text-decoration: none;
}

.archive-header,
.page-header,
.article-header {
    padding: 56px 0 32px;
}

.archive-header h1,
.page-header h1,
.article-header h1 {
    max-width: 900px;
    margin: 8px 0 16px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 5.6vw, 4.25rem);
    line-height: 0.98;
}

.archive-header p,
.page-header p,
.article-abstract {
    max-width: 780px;
    color: var(--slate);
    font-size: 1.05rem;
}

.article {
    max-width: 920px;
}

.article-meta,
.byline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--slate);
}

.citation-box,
.submission-panel {
    margin: 20px 0 44px;
    padding: 24px;
}

.citation-label {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.download-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
}

.gh-content,
.page-content {
    font-family: var(--serif);
    font-size: 1.06rem;
    line-height: 1.72;
}

.gh-content h2,
.gh-content h3 {
    margin-top: 2em;
    line-height: 1.2;
}

.gh-content blockquote {
    margin: 2em 0;
    padding-left: 1.25em;
    border-left: 3px solid var(--gold);
    color: var(--slate);
}

.gh-content .kg-width-wide {
    width: min(1120px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    margin-left: 50%;
    transform: translateX(-50%);
}

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

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    display: block;
    width: 100%;
}

.gh-content figcaption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.article-footer {
    padding: 44px 0 80px;
}

.topic-directory,
.author-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.topic-card,
.author-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
}

.author-card {
    justify-content: flex-start;
}

.author-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.topic-card small,
.author-card small {
    color: var(--muted);
}

.site-footer {
    margin-top: 72px;
    padding: 44px 0;
    border-top: 1px solid var(--line);
    background: #f4eee3;
}

.footer-brand {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.7rem;
    letter-spacing: 0.08em;
}

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

@media (max-width: 860px) {
    .header-inner,
    .hero-actions,
    .section-heading,
    .split,
    .footer-grid {
        display: block;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--paper);
        padding: 8px 12px;
    }

    .site-nav {
        display: none;
        padding: 12px 0 20px;
    }

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

    .site-nav ul,
    .site-footer nav {
        display: grid;
        gap: 10px;
    }

    .post-grid,
    .topic-directory,
    .author-directory {
        grid-template-columns: 1fr;
    }

    .button {
        margin: 6px 8px 6px 0;
    }
}
