:root {
    --bg: #f3efe8;
    --bg-accent: #ebe4d8;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #fffdf8;
    --text: #1f2622;
    --muted: #5d655f;
    --line: rgba(31, 38, 34, 0.12);
    --brand: #163a36;
    --brand-strong: #0f2a27;
    --public: #2c6c53;
    --private: #8c3d1f;
    --shadow: 0 20px 50px rgba(27, 35, 31, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(22, 58, 54, 0.12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(140, 61, 31, 0.10), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-accent));
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.page-shell {
    min-height: 100vh;
    padding: 24px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid var(--line);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #315d58);
    color: white;
    font-weight: 700;
}

.brand-text {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link,
.button {
    text-decoration: none;
}

.nav-link,
.user-chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    padding: 42px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(22, 58, 54, 0.96), rgba(44, 77, 72, 0.90));
    color: #f8f5ef;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.hero-compact {
    padding: 30px 36px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0 0 10px;
}

.hero h1 {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.05;
    max-width: 14ch;
}

.hero-copy {
    margin: 18px 0 0;
    max-width: 60ch;
    font-size: 1.05rem;
    color: rgba(248, 245, 239, 0.88);
}

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

.card,
.release-row {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.release-list {
    display: grid;
    gap: 18px;
}

.release-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.card h2,
.release-row h2 {
    margin: 14px 0 8px;
    font-family: "IBM Plex Serif", Georgia, serif;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta,
.summary {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-public {
    background: rgba(44, 108, 83, 0.12);
    color: var(--public);
    border-color: rgba(44, 108, 83, 0.18);
}

.badge-private {
    background: rgba(140, 61, 31, 0.12);
    color: var(--private);
    border-color: rgba(140, 61, 31, 0.16);
}

.badge-ref {
    background: rgba(22, 58, 54, 0.08);
    color: var(--brand-strong);
    border-color: rgba(22, 58, 54, 0.14);
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.release-actions {
    margin-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.button-primary {
    background: var(--brand);
    color: white;
}

.button-secondary {
    background: rgba(22, 58, 54, 0.08);
    color: var(--brand-strong);
}

.empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .page-shell {
        padding: 16px;
    }

    .site-header,
    .release-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .card,
    .release-row {
        padding: 22px;
    }

    .hero h1 {
        max-width: none;
    }
}