:root {
    --bg: #0f1117;
    --panel: #171b25;
    --panel-alt: #1f2634;
    --text: #f4f0e6;
    --muted: #b8af95;
    --accent: #d8a14b;
    --accent-strong: #f6c978;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top, rgba(216, 161, 75, 0.16), transparent 35%),
        linear-gradient(180deg, #0d1015, #151a24 40%, #0f1117);
    color: var(--text);
}

a {
    color: var(--accent-strong);
}

a:hover {
    color: #ffe2a8;
}

.shell {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.hero {
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(27, 33, 46, 0.96), rgba(16, 19, 27, 0.96));
    box-shadow: var(--shadow);
}

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

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.95;
}

.hero p {
    max-width: 760px;
    margin: 20px 0 0;
    font-size: 1.14rem;
    line-height: 1.7;
    color: #ece2cb;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-link,
.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.hero-link {
    background: var(--accent);
    color: #1b1207;
}

.hero-link:hover {
    color: #1b1207;
    background: #efbc67;
}

.ghost-link {
    border: 1px solid var(--border);
    color: var(--text);
}

.section {
    margin-top: 28px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(20, 24, 34, 0.9);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.section p {
    color: #dfd5bd;
    line-height: 1.7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.card {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(31, 38, 52, 0.95), rgba(20, 24, 34, 0.95));
    border: 1px solid var(--border);
}

.card h3 {
    font-size: 1.2rem;
}

.card p {
    margin: 12px 0 18px;
    color: #d5cab0;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.archive-list a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    text-decoration: none;
}

.archive-list a span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.footer {
    margin-top: 28px;
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
}

.archive-page {
    overflow: hidden;
}

.archive-topbar {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(15, 17, 23, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.archive-topbar h1 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.1;
}

.archive-topbar p {
    margin: 8px 0 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.archive-actions a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.archive-actions a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.archive-pad {
    height: 108px;
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1100px);
        padding-top: 20px;
    }

    .hero,
    .section {
        padding: 24px;
        border-radius: 22px;
    }

    .hero p {
        font-size: 1rem;
    }

    .archive-topbar {
        position: static;
        margin: 16px;
        flex-direction: column;
    }

    .archive-actions {
        justify-content: flex-start;
    }

    .archive-pad {
        height: 0;
    }
}
