:root {
    --bg: #FDFBF7;
    --ink: #1a1a1a;
    --muted: rgba(26,26,26,.62);
    --muted2: rgba(26,26,26,.72);
    --border: rgba(26,26,26,.10);
    --border2: rgba(26,26,26,.14);
    --accent: #E85D04;
    --accent2: #d54e00;
    --sage: #2D6A4F;
    --card: #ffffff;
    --shadow: 0 18px 40px rgba(15,23,42,.10);
    --radius: 18px;
    --radius2: 22px;
    --wrap: 1180px;
}

/* Reset-ish */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 28px 18px 64px;
}

/* Topbar - mimics your fixed nav feel but static */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

    .brand img {
        height: 120px;
        width: auto;
    }

    .brand .name {
        font-weight: 700;
        letter-spacing: .2px;
    }

    .brand .sub {
        color: var(--muted);
        font-size: 13px;
        margin-top: 2px;
    }

.navlinks {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .navlinks .sep {
        opacity: .35;
    }

/* Buttons - matches your React ones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--accent);
        text-decoration: none;
    }

.btn-accent {
    background: var(--accent);
    color: #fff;
}

    .btn-accent:hover {
        background: var(--accent2);
        text-decoration: none;
    }

.btn-outline {
    background: transparent;
    border-color: rgba(26,26,26,.22);
    color: rgba(26,26,26,.85);
}

    .btn-outline:hover {
        background: rgba(26,26,26,.04);
        text-decoration: none;
    }

/* Panels/cards - same visual language as your site */
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
}

/* Typography */
.kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    color: var(--muted);
}

.h1 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 52px;
    line-height: 1.05;
    margin: 10px 0 8px;
}

.lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted2);
    margin: 8px 0 0;
    max-width: 72ch;
}

/* Index page blocks */
.hero {
    padding: 26px 26px 22px;
}

.cta-row {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.grid2 {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: 18px 18px 16px;
}

    .card h2 {
        font-size: 16px;
        margin: 0 0 8px;
    }

    .card p {
        margin: 0;
        color: rgba(26,26,26,.70);
        line-height: 1.65;
        font-size: 15px;
    }

/* Editions list */
.editions {
    margin-top: 18px;
    padding: 18px;
}

    .editions h2 {
        margin: 0 0 12px;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: rgba(26,26,26,.78);
    }

.edition-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edition {
    padding: 14px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .edition:hover {
        background: rgba(26,26,26,.02);
    }

    .edition .left {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .edition .num {
        font-weight: 800;
        color: rgba(26,26,26,.86);
    }

    .edition .title {
        font-size: 15px;
        color: rgba(26,26,26,.82);
    }

    .edition .meta {
        font-size: 13px;
        color: var(--muted);
    }

    .edition .tag {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(45,106,79,.08);
        color: var(--sage);
        font-weight: 700;
        white-space: nowrap;
    }

/* Edition page layout */
.grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.aside {
    padding: 18px 18px 16px;
    position: sticky;
    top: 18px;
}

@media (max-width: 980px) {
    .aside {
        position: relative;
        top: auto;
    }
}

.h-edition {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 38px;
    line-height: 1.05;
    margin: 8px 0 8px;
}

.meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(45,106,79,.08);
    color: var(--sage);
    font-weight: 700;
    font-size: 13px;
    margin: 10px 0 14px;
}

.section-title {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(26,26,26,.78);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    color: rgba(26,26,26,.78);
}

    .toc a:hover {
        background: rgba(26,26,26,.04);
        text-decoration: none;
    }

.downloads a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: rgba(26,26,26,.84);
    margin-top: 10px;
}

    .downloads a:hover {
        background: rgba(26,26,26,.03);
        text-decoration: none;
    }

.downloads small {
    color: var(--muted);
}

.main {
    padding: 24px 24px 28px;
}

.article h1 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 44px;
    line-height: 1.05;
    margin: 6px 0 10px;
}

.article h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 30px;
    margin: 26px 0 10px;
}

.article p {
    color: rgba(26,26,26,.76);
    font-size: 18px;
    line-height: 1.72;
    margin: 10px 0;
}

.article ul {
    margin: 10px 0 10px 22px;
    color: rgba(26,26,26,.76);
    font-size: 18px;
    line-height: 1.72;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}
.callout {
    background: linear-gradient(120deg, #FFC107 0%, #FFD54F 100%);
    color: #1a1a1a;
    padding: 30px 35px;
    margin: 40px 0;
    border-left: 6px solid #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}
.topics {
    margin-top: 18px;
    padding: 18px;
}

    .topics h2 {
        margin: 0 0 10px;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: rgba(26,26,26,.78);
    }

    .topics p {
        margin: 0 0 10px;
        color: rgba(26,26,26,.70);
        line-height: 1.65;
        font-size: 15px;
        max-width: 78ch;
    }

.topics-list {
    margin: 10px 0 0 18px;
    color: rgba(26,26,26,.70);
    line-height: 1.65;
    font-size: 15px;
}

.control-box {
    margin: 40px 0;
    padding: 35px;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: 5px solid #1a1a1a;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.footerline {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}
