@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
    --bg: #07050a;
    --bg-2: #120d17;
    --panel: rgba(22, 15, 25, 0.9);
    --panel-strong: rgba(31, 19, 35, 0.95);
    --panel-soft: rgba(255, 247, 227, 0.06);
    --text: #f5efe0;
    --muted: #c9bea8;
    --muted-strong: #e4d7bf;
    --line: rgba(223, 190, 124, 0.2);
    --line-strong: rgba(223, 190, 124, 0.42);
    --gold: #ddb36b;
    --gold-soft: #f5dfb0;
    --wine: #5a2330;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.3);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(113, 61, 93, 0.2), transparent 26%),
        radial-gradient(circle at 80% 18%, rgba(221, 179, 107, 0.12), transparent 15%),
        linear-gradient(180deg, #07050a 0%, #110a14 42%, #07050a 100%);
    font: 18px/1.65 "Cormorant Garamond", Georgia, serif;
    letter-spacing: 0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        url('../img/stars.svg') center top / 240px 240px repeat;
    opacity: 0.34;
    mix-blend-mode: screen;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

code {
    font-size: 0.95rem;
    background: rgba(255, 247, 227, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(860px, calc(100% - 2rem));
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(10, 7, 12, 0.96), rgba(10, 7, 12, 0.82));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand strong,
.site-footer h3,
h1,
h2,
h3,
h4 {
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.04em;
}

.brand strong {
    display: block;
    color: var(--gold-soft);
    font-size: 1.28rem;
    text-transform: uppercase;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.brand-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 236, 183, 0.25), transparent 40%),
        linear-gradient(180deg, rgba(69, 34, 47, 0.95), rgba(23, 12, 24, 0.98));
    border: 1px solid var(--line-strong);
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.2rem;
    box-shadow: inset 0 0 16px rgba(255, 230, 175, 0.06), var(--shadow-soft);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255, 237, 198, 0.15);
    border-radius: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 1rem;
    position: relative;
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 243, 212, 0.06);
}

.nav-cta {
    border: 1px solid rgba(221, 179, 107, 0.45);
    background: linear-gradient(180deg, rgba(83, 33, 46, 0.55), rgba(34, 14, 24, 0.88));
    color: var(--gold-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero,
.page-hero {
    padding: 4rem 0 2.8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-copy,
.page-hero p,
.prose,
.work-card-body p,
.author-box p,
.taxonomy-card p,
.site-footer p,
.empty-state p {
    font-size: 1.28rem;
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.15;
    color: #f7ead0;
}

h1 {
    font-size: clamp(2.8rem, 5.2vw, 4.9rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
    margin: 0;
}

.hero-copy,
.page-hero p {
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.7rem 0 1.4rem;
}

.button,
button.button,
input[type="submit"].button {
    appearance: none;
    border: 1px solid rgba(221, 179, 107, 0.6);
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font: 700 0.98rem/1 "Cinzel", Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2d1807;
    background: linear-gradient(180deg, #efd4a0 0%, #cf9d59 100%);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
button.button:hover,
input[type="submit"].button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}

.button-secondary,
.button-ghost {
    background: linear-gradient(180deg, rgba(53, 26, 38, 0.88), rgba(22, 12, 18, 0.96));
    color: var(--gold-soft);
    border-color: rgba(221, 179, 107, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 22px rgba(0, 0, 0, 0.22);
}

.genre-pills,
.footer-list,
.chip-row,
.chip-cloud,
.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
}

.genre-pills,
.chip-row,
.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.genre-pills li,
.chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 243, 212, 0.05);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 1.02rem;
}

.hero-panel {
    min-height: 100%;
    border-radius: 34px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(180deg, rgba(38, 21, 49, 0.1), transparent),
        linear-gradient(180deg, rgba(16, 10, 20, 0.35), rgba(10, 6, 12, 0.92)),
        url('../img/hero-scene.svg') center/cover no-repeat;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: grid;
    align-content: end;
    padding: 1.2rem;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 231, 190, 0.14);
    border-radius: 24px;
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 5, 11, 0.16), rgba(9, 5, 11, 0.7) 72%);
}

.hero-panel-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.05rem;
    margin-top: 0.7rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 7, 16, 0.72), rgba(12, 7, 16, 0.88));
    border: 1px solid rgba(255, 231, 190, 0.14);
    backdrop-filter: blur(10px);
}

.hero-panel-card span {
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: "Cinzel", Georgia, serif;
}

.hero-panel-card strong {
    font-size: 1.25rem;
    color: var(--text);
}

.section {
    padding: 2.9rem 0;
}

.section-muted {
    background:
        linear-gradient(180deg, rgba(255, 243, 212, 0.02), rgba(255, 243, 212, 0.01)),
        rgba(255, 243, 212, 0.02);
    border-top: 1px solid rgba(221, 179, 107, 0.08);
    border-bottom: 1px solid rgba(221, 179, 107, 0.08);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.6rem;
}

.section-heading > a {
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading > a::after {
    content: "";
    display: block;
    width: 100%;
    height: 10px;
    background: url('../img/divider.svg') center/contain no-repeat;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.card-grid,
.taxonomy-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.split-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.stack-grid,
.work-taxonomies {
    display: grid;
    gap: 1rem;
}

.work-card,
.taxonomy-card,
.author-box,
.single-cover,
.empty-state,
.pagination-link,
.flash,
.panel-card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 250, 238, 0.04), rgba(255, 250, 238, 0.02)),
        linear-gradient(180deg, rgba(23, 14, 26, 0.94), rgba(12, 8, 15, 0.98));
    box-shadow: var(--shadow-soft);
}

.work-card::before,
.taxonomy-card::before,
.author-box::before,
.empty-state::before,
.single-cover::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 231, 190, 0.08);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}

.work-card-link {
    display: grid;
    height: 100%;
}

.work-cover {
    min-height: 220px;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 8, 20, 0.35), rgba(14, 8, 20, 0.75)),
        url('../img/hero-scene.svg') center/cover no-repeat;
    border-bottom: 1px solid rgba(255, 231, 190, 0.08);
}

.work-cover.has-image {
    background-size: cover;
    background-position: center;
}

.work-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 8, 20, 0) 0%, rgba(14, 8, 20, 0.78) 100%);
}

.work-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(12, 7, 16, 0.76);
    border: 1px solid rgba(255, 231, 190, 0.15);
    color: var(--gold-soft);
    font: 700 0.75rem/1 "Cinzel", Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-card-body {
    display: grid;
    gap: 0.8rem;
    padding: 1.25rem 1.2rem 1.35rem;
}

.work-card-body h3,
.taxonomy-card strong,
.author-box h2,
.empty-state h2 {
    color: var(--gold-soft);
}

.work-meta,
.hero-meta,
.footer-bottom,
.muted {
    color: var(--muted);
}

.work-meta,
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    font-size: 1rem;
}

.hero-meta {
    margin-top: 1.1rem;
}

.hero-meta a,
.work-meta span:first-child,
.author-box a,
.site-footer a,
.taxonomy-card span,
.prose a,
.pagination-link,
.flash a {
    color: var(--gold-soft);
}

.taxonomy-card,
.author-box,
.empty-state {
    padding: 1.3rem 1.25rem;
    display: grid;
    gap: 0.7rem;
}

.taxonomy-card span {
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-hero {
    text-align: center;
}

.page-hero .narrow {
    display: grid;
    gap: 0.95rem;
    justify-items: center;
}

.page-hero .narrow::after {
    content: "";
    width: min(320px, 82%);
    height: 28px;
    background: url('../img/divider.svg') center/contain no-repeat;
    opacity: 0.95;
}

.single-cover {
    overflow: hidden;
    padding: 0.9rem;
    margin-bottom: 1.4rem;
}

.single-cover img {
    width: 100%;
    border-radius: 18px;
}

.prose {
    display: grid;
    gap: 1rem;
    color: #eadfc8;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.2rem;
}

.prose p,
.prose li,
.prose blockquote {
    color: #eadfc8;
}

.prose blockquote {
    margin: 0;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--gold);
    background: rgba(255, 243, 212, 0.04);
    border-radius: 0 16px 16px 0;
}

.work-taxonomies {
    margin-top: 2rem;
}

.author-box {
    margin-top: 2rem;
}

.site-footer {
    margin-top: 3.2rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(12, 8, 15, 0), rgba(12, 8, 15, 0.72));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 1.4rem;
}

.footer-list {
    display: grid;
    gap: 0.55rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.4rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(221, 179, 107, 0.08);
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 1.4rem;
}

.flash {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
}

.flash-success {
    border-color: rgba(111, 204, 146, 0.28);
}

.flash-error,
.flash-danger {
    border-color: rgba(235, 122, 122, 0.25);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
}

.pagination-link.is-current {
    background: linear-gradient(180deg, #efd4a0 0%, #cf9d59 100%);
    color: #2d1807;
    border-color: rgba(221, 179, 107, 0.55);
}

@media (max-width: 960px) {
    .hero-grid,
    .split-columns,
    .footer-grid,
    .card-grid,
    .taxonomy-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-inner,
    .section-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-panel {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 17px;
    }

    .site-nav {
        gap: 0.2rem;
    }

    .site-nav a {
        padding: 0.55rem 0.7rem;
        font-size: 0.92rem;
    }

    .work-cover {
        min-height: 180px;
    }

    .hero,
    .page-hero,
    .section,
    .site-footer {
        padding-top: 2.3rem;
        padding-bottom: 2rem;
    }
}
