:root {
    --ink: #22170f;
    --ink-soft: #3d2c22;
    --paper: #f7f1e6;
    --paper-strong: #fffaf2;
    --gold: #c9a24a;
    --gold-bright: #e3c57a;
    --leather: #9b3a28;
    --muted: #6d5b4b;
    --line: rgba(34, 23, 15, 0.12);
    --shadow: 0 18px 50px rgba(12, 7, 4, 0.28);
    --nav-h: 74px;
}

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

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background: #120c09;
    position: relative;
}

.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(12, 8, 6, 0.72) 0%, rgba(12, 8, 6, 0.86) 55%, rgba(10, 7, 5, 0.94) 100%),
        url("../img/bgnew.jpg") center / cover no-repeat;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 10000;
    background: var(--gold);
    color: #1a1208;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.site-nav,
.site-main,
.site-footer,
.music-toggle {
    position: relative;
    z-index: 1;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--nav-h);
    background: rgba(18, 11, 8, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(227, 197, 122, 0.18);
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #2a1a0c;
}

.brand-name {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.site-nav .nav-link {
    color: #f7f1e6 !important;
    font-weight: 500;
    padding: 0.55rem 0.85rem !important;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.is-active {
    color: #1a1208 !important;
    background: var(--gold);
}

.site-nav .navbar-toggler {
    border-color: rgba(227, 197, 122, 0.35);
}

.site-nav .navbar-toggler-icon {
    filter: invert(1);
}

.site-main {
    padding: 28px 0 72px;
}

.container-narrow {
    max-width: 1080px;
}

.page-hero,
.hero-panel,
.panel,
.feature-card,
.writing-card,
.social-card,
.resource-card,
.gallery-card,
.empty-state {
    background: var(--paper);
    border: 1px solid rgba(255, 250, 242, 0.18);
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 42px 28px 36px;
    border-radius: 28px;
    text-align: center;
    margin-bottom: 28px;
}

.page-kicker {
    margin: 0 0 8px;
    color: var(--leather);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero h1,
.hero-copy h1 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.page-lede {
    margin: 12px auto 0;
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 32px;
    margin-bottom: 28px;
}

.hero-art {
    display: flex;
    align-items: end;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(227, 197, 122, 0.28), transparent 42%),
        linear-gradient(180deg, #efe4d0 0%, #e7d7bc 100%);
    min-height: 360px;
    padding: 24px 16px 0;
}

.hero-art img {
    width: min(320px, 100%);
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.hero-copy {
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    color: var(--ink);
}

.hero-quote {
    margin: 18px 0 0;
    font-family: Fraunces, Georgia, serif;
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn-gold,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-gold {
    background: linear-gradient(180deg, #e8c86d, var(--gold));
    color: #24160a;
}

.btn-gold:hover {
    color: #24160a;
    filter: brightness(1.04);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(34, 23, 15, 0.18);
}

.btn-ghost:hover {
    background: rgba(34, 23, 15, 0.05);
    color: var(--ink);
}

.teaser-band {
    margin: 0 0 28px;
    padding: 22px 26px;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(155, 58, 40, 0.94), rgba(34, 23, 15, 0.92));
    color: var(--paper);
    box-shadow: var(--shadow);
}

.teaser-band h2 {
    margin: 0 0 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
}

.teaser-band p {
    margin: 0;
    color: rgba(247, 241, 230, 0.88);
    font-size: 1.02rem;
}

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

.feature-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(12, 7, 4, 0.34);
    color: inherit;
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    background: #d8c8b0;
}

.feature-copy {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-copy h2 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.25;
}

.feature-copy span {
    margin-top: 12px;
    color: var(--leather);
    font-weight: 700;
    font-size: 0.92rem;
}

.panel {
    border-radius: 28px;
    padding: 34px 32px;
}

.about-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.about-photo {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    min-height: 360px;
}

.prose {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.prose p {
    margin: 0 0 1rem;
}

.writing-grid,
.social-grid,
.gallery-grid {
    display: grid;
    gap: 18px;
}

.writing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.writing-card {
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.writing-card:hover {
    transform: translateY(-4px);
    color: inherit;
}

.writing-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #d8c8b0;
}

.writing-card h2 {
    margin: 0;
    padding: 18px 18px 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.2rem;
}

.writing-card span {
    padding: 0 18px 18px;
    color: var(--leather);
    font-weight: 700;
    font-size: 0.92rem;
}

.social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-card {
    border-radius: 24px;
    padding: 28px 22px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    color: inherit;
}

.social-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 18px;
}

.social-card h2 {
    margin: 0 0 4px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
}

.social-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.gallery-card {
    border-radius: 18px;
    overflow: hidden;
    margin: 0;
    cursor: zoom-in;
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-card figcaption {
    padding: 12px 14px 14px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.resource-list {
    display: grid;
    gap: 14px;
}

.resource-card,
.resource-card:visited,
.resource-card:hover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--ink);
}

.resource-card {
    transition: transform 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
}

.resource-card h2 {
    margin: 0 0 4px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    color: var(--ink);
}

.resource-card .btn-gold {
    flex-shrink: 0;
}

.resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    word-break: break-word;
}

.empty-state {
    border-radius: 22px;
    padding: 42px 20px;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    padding: 28px 0 96px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.footer-signature {
    height: 52px;
    width: auto;
    max-width: min(420px, 80vw);
    object-fit: contain;
}

.footer-copy,
.footer-login {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-login {
    text-decoration: none;
}

.footer-login:hover {
    color: var(--ink);
}

.music-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1208;
    color: var(--paper);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.music-toggle[aria-pressed="true"] {
    background: var(--gold);
    color: #1a1208;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 5, 3, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(960px, 92vw);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-caption {
    margin: 12px 0 0;
    color: var(--paper);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding: 6px 0 12px;
    }

    .site-nav .nav-link {
        padding: 0.7rem 0.9rem !important;
    }
}

@media (max-width: 900px) {
    .hero-panel,
    .about-layout,
    .feature-card,
    .writing-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-art {
        min-height: 280px;
    }

    .hero-copy,
    .panel,
    .page-hero {
        padding: 26px 20px;
    }

    .feature-card img,
    .about-photo img {
        min-height: 220px;
        height: 240px;
    }

    .music-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .music-toggle {
        width: 46px;
        padding: 0;
        justify-content: center;
    }
}
