:root {
    --ink: #16231c;
    --muted: #4d5b53;
    --paper: #f6f1e6;
    --card: #fffdf8;
    --line: #d7cbb4;
    --green: #11462d;
    --green-deep: #0b2f1e;
    --gold: #b8892d;
    --gold-soft: #e8d7a8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: var(--green); }
img { max-width: 100%; }
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

.site-header {
    background: var(--green-deep);
    color: #f4ead4;
    border-bottom: 6px solid var(--gold);
}
.masthead {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.25rem .6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand-lockup {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.logo {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.kicker {
    margin: 0 0 .2rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .68rem;
    color: var(--gold-soft);
}
.brand {
    color: #fffdf8;
    text-decoration: none;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
}
.brand-sub { margin: .15rem 0 0; color: #d9e6dc; font-size: .95rem; }
.menu-toggle {
    display: none;
    align-items: center;
    gap: .45rem;
    background: transparent;
    color: #f4ead4;
    border: 1px solid var(--gold-soft);
    padding: .45rem .7rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.menu-toggle-bars {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: .4rem 1.25rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.2rem;
}
.nav a {
    color: #e8efe9;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}
.nav a.is-active,
.nav a:hover { color: var(--gold-soft); }

.hero, .page, .band { max-width: 1100px; margin: 0 auto; padding: 2.4rem 1.25rem; }
.hero h1, .page h1, .paper-page h1, .section-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .8rem;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 22ch; }
.lede { font-size: 1.15rem; max-width: 62ch; color: var(--muted); }
.meta-row, .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.chip, .btn {
    display: inline-block;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    background: var(--card);
    text-decoration: none;
    color: var(--ink);
    font-size: .88rem;
}
.btn {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    font-weight: 700;
    padding: .65rem 1rem;
}
.btn.ghost { background: transparent; color: var(--green); }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}
.stat {
    border-top: 3px solid var(--gold);
    padding-top: .6rem;
}
.stat strong { display: block; font-size: 1.7rem; font-family: "Source Serif 4", Georgia, serif; }

.band { background: #efe6d4; }
.band.plain { background: transparent; padding-top: 0; }
.grid-2, .grid-3, .paper-list { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .paper-card, .filter-bar, .paper-body {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.1rem 1.15rem;
}
.paper-card h2, .card h2, .card h3 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.15rem;
    margin: 0 0 .4rem;
}
.paper-card h2 a, .related a { text-decoration: none; color: var(--ink); }
.paper-card h2 a:hover { color: var(--green); }
.muted, .authors, .theme-label { color: var(--muted); font-size: .95rem; }
.theme-label { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--green); }

.filter-bar { margin-bottom: 1.2rem; }
.filter-bar form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .25rem; }
input[type="search"], select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="file"] {
    width: 100%;
    min-width: 180px;
    padding: .55rem .65rem;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
}
.filter-bar input, .filter-bar select { width: auto; flex: 1; }

.paper-page { max-width: 860px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }
.paper-page h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.abstract { font-size: 1.05rem; }
.citation-box {
    margin-top: 1.6rem;
    padding: 1rem;
    background: #efe6d4;
    border-left: 4px solid var(--gold);
}
.related { margin-top: 2rem; }
.related ul { padding-left: 1.1rem; }

.site-footer {
    background: var(--green-deep);
    color: #e4ebe6;
    padding: 2rem 1.25rem;
    margin-top: 2rem;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.footer-title { color: var(--gold-soft); font-weight: 700; margin: 0 0 .4rem; }
.site-footer a { color: #f3e6c2; }
.copyright { max-width: 1100px; margin: 1.4rem auto 0; color: #b7c4bb; font-size: .9rem; }

.hero-split {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 1.5rem;
    align-items: start;
}
.flyer img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    background: #fff;
    display: block;
}
.flyer figcaption { font-size: .85rem; color: var(--muted); margin-top: .45rem; }
.speaker-card { margin-bottom: .8rem; }
.fee-card { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.fee-card strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; }

.form-stack { display: grid; gap: 1rem; max-width: 760px; }
.form-stack h2 { margin-top: 1rem; }
.flash {
    background: #e7f3ea;
    border: 1px solid #b7d4be;
    padding: .7rem 1rem;
    margin-bottom: 1.2rem;
}
.error { color: #8a1f1f; font-size: .9rem; margin: .35rem 0 0; }
.check { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.check input { width: auto; min-width: 0; }
.login-page { max-width: 460px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); }
.admin-table th, .admin-table td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-actions { display: flex; gap: .8rem; align-items: center; white-space: nowrap; }
.admin-actions form { margin: 0; }
.admin-actions button, .nav-form button {
    background: none;
    border: 0;
    color: var(--green);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.admin-actions button { color: #8a1f1f; }
.nav-form { display: inline; }
.nav-form button { color: #e8efe9; }
@media (max-width: 800px) {
    .hero-split { grid-template-columns: 1fr; }
    .menu-toggle { display: inline-flex; }
    .nav {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0 1.25rem 1rem;
    }
    .nav.is-open { display: flex; }
    .nav a {
        display: block;
        padding: .75rem 0;
        border-top: 1px solid rgba(232, 215, 168, .25);
    }
}
@media (max-width: 640px) {
    .hero h1 { max-width: none; }
    .filter-bar input, .filter-bar select { width: 100%; }
    .logo { width: 68px; height: 68px; }
    .brand { font-size: 1.2rem; }
    .kicker { font-size: .62rem; letter-spacing: .06em; }
}
