/* ==========================================================
   The Cloths of Heaven — Static Site Template
   Cinematic / companion-site visual system
   ========================================================== */

:root {
    --bg: #05070c;
    --bg-soft: #0b1019;
    --bg-card: rgba(12, 17, 28, 0.74);
    --text: #f4efe3;
    --muted: #b8ad99;
    --gold: #d7b46a;
    --gold-soft: rgba(215, 180, 106, 0.24);
    --line: rgba(215, 180, 106, 0.22);
    --shadow: rgba(0, 0, 0, 0.5);
    --max: 1240px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 47, 77, 0.42), transparent 40%),
        radial-gradient(circle at bottom right, rgba(127, 91, 41, 0.18), transparent 36%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 56px);
    background: linear-gradient(to bottom, rgba(5, 7, 12, 0.92), rgba(5, 7, 12, 0.32), transparent);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark {
    width: 46px;
    filter: drop-shadow(0 0 12px rgba(215, 180, 106, 0.25));
}

.brand-text {
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.84rem;
    color: var(--gold);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 34px);
}

.site-nav a {
    position: relative;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 239, 227, 0.78);
    transition: color 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 1px;
    background: var(--gold);
    transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    right: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 7, 12, 0.55);
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--gold);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 40px) 22px 78px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero/cofh-hero-coming-soon.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    transform: none;
    filter: saturate(1.08) contrast(1.08) brightness(1.12);
}

.hero-vignette {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    text-align: center;
    margin-top: 7vh;
    animation: riseIn 900ms ease both;
}

.hero-mark {
    width: clamp(86px, 11vw, 142px);
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 22px rgba(215, 180, 106, 0.34));
}

.eyebrow,
.section-kicker {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

h1,
h2,
h3 {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 500;
    line-height: 1.08;
}

h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 6rem);
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.64);
}

.tagline {
    width: min(760px, 100%);
    margin: 22px auto 0;
    color: rgba(244, 239, 227, 0.88);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.05rem, 2.15vw, 1.72rem);
    letter-spacing: 0.07em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(215, 180, 106, 0.74);
}

.button-primary {
    background: linear-gradient(135deg, rgba(215, 180, 106, 0.96), rgba(138, 103, 48, 0.96));
    color: #08090d;
    border-color: transparent;
}

.button-secondary {
    background: rgba(5, 7, 12, 0.38);
    color: var(--text);
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 26px;
    width: 28px;
    height: 44px;
    margin-left: -14px;
    border: 1px solid rgba(244, 239, 227, 0.32);
    border-radius: 999px;
}

.scroll-cue span {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--gold);
    animation: scrollDot 1400ms ease-in-out infinite;
}

.section {
    position: relative;
    padding: clamp(76px, 10vw, 132px) 22px;
}

.section-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.narrow {
    width: min(850px, 100%);
    text-align: center;
    margin-top: -75px;
}

.section-intro {
    background:
        linear-gradient(to bottom, rgba(5, 7, 12, 0.95), rgba(11, 16, 25, 0.98)),
        var(--bg-soft);
}

.section-intro h2 {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 4.5rem);
    letter-spacing: 0.035em;
}

.section-intro > .section-inner > p:last-child {
    margin: 28px auto 0;
    width: min(760px, 100%);
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.feature-grid-section {
    background:
        radial-gradient(circle at top, rgba(215, 180, 106, 0.08), transparent 36%),
        #070b12;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(22px, 2.5vw, 34px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(150deg, rgba(255,255,255,0.055), transparent 34%),
        var(--bg-card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(215, 180, 106, 0.58);
    background:
        linear-gradient(150deg, rgba(215, 180, 106, 0.12), transparent 38%),
        rgba(12, 17, 28, 0.86);
}

.feature-card-large {
    grid-column: span 2;
}

.feature-number {
    display: block;
    margin-bottom: auto;
    color: var(--gold);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.feature-card h3 {
    margin: 46px 0 12px;
    font-size: clamp(1.4rem, 2vw, 2.15rem);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.quote-band {
    min-height: 420px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(5,7,12,0.78), rgba(5,7,12,0.92)),
        radial-gradient(circle, rgba(215, 180, 106, 0.12), transparent 42%);
}

.quote-mark {
    margin: 0 0 14px;
    color: var(--gold);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 1;
    opacity: 0.72;
}

blockquote {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.7rem, 4.4vw, 4.4rem);
    line-height: 1.15;
    letter-spacing: 0.06em;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #05070c;
    padding: 42px 22px;
    text-align: center;
}

.footer-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.footer-mark {
    width: 56px;
    margin: 0 auto 16px;
    opacity: 0.82;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-small {
    margin-top: 6px !important;
    color: rgba(184, 173, 153, 0.64) !important;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(17px);
    }
}

@media (max-width: 980px) {
    .brand-text {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
        position: relative;
        z-index: 25;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 22;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        background:
            radial-gradient(circle at center, rgba(215, 180, 106, 0.08), transparent 36%),
            rgba(5, 7, 12, 0.96);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    body.nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        font-size: 1rem;
    }

    .hero-bg {
        background-position: center top;
    }

    .hero-content {
        margin-top: 5vh;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-large {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 68px;
    }

    body {
        font-size: 15px;
    }

    .site-header {
        padding: 0 16px;
    }

    .brand-mark {
        width: 42px;
    }

    .hero {
        min-height: 100svh;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-bg {
        background-position: 50% 0%;
    }

    .hero-vignette {
        background:
            linear-gradient(to bottom, rgba(5, 7, 12, 0.14), rgba(5, 7, 12, 0.34) 28%, rgba(5, 7, 12, 0.92)),
            radial-gradient(circle at center, rgba(5, 7, 12, 0.02), rgba(5, 7, 12, 0.76) 76%);
    }

    h1 {
        font-size: clamp(2.45rem, 14vw, 4rem);
        letter-spacing: 0.035em;
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 0.035em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card-large {
        grid-column: auto;
        min-height: 240px;
    }
}

.prose {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
}

.prose p {
    margin: 0 0 1.15rem;
    line-height: 1.8;
    color: var(--text);
    font-size: 1rem;
    width: auto;
}

.author-photo-wrap {
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    text-align: center;
}

.author-photo {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(5, 7, 12, 0.72);
    color: var(--gold);
    font-size: 1.4rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.character-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    margin: 40px auto;
    max-width: 900px;
}

.character-image {
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.character-text h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.character-text p {
    margin: 0;
}

.chapter-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    margin: 40px auto;
    max-width: 900px;
}

.chapter-image {
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.chapter-text h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.chapter-text p {
    margin: 0;
}

.lightbox-image {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 18px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin: 42px auto 0;
}

.gallery-item {
    min-width: 0;
}

.gallery-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.gallery-caption {
    margin: 10px 4px 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.music-chapter-text h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    color: var(--gold);
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1180px;
    margin: 42px auto 0;
}

.music-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(12, 17, 28, 0.74);
}

.music-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    background: #05070c;
}

.music-info {
    padding: 18px 20px 22px;
    border-top: solid var(--gold);
}

.music-info h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.music-info p {
    margin: 0 0 16px;
    color: var(--muted);
}

.music-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chapter-jump-nav {
    position: sticky;
    top: 50px;
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 34px auto 42px;
    padding: 14px;
    background: rgba(5, 7, 12, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.chapter-jump-nav a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.music-chapter-text {
    scroll-margin-top: 160px;
}





@media (max-width: 640px) {

    .chapter-jump-nav {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 18px;
        padding: 10px;
    }

}

@media (max-width: 760px) {
    .music-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .character-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .character-image {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .chapter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chapter-image {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 640px) {

    .hero-bg {
        background-image: url("../img/hero/cofh-hero-coming-soon-mobile.jpg");
        background-size: cover;
        background-position: center 60px;
    }

    .hero-content {
        display: none;
    }

    .hero {
        min-height: 100svh;
        padding-top: 0;
        padding-bottom: 0;
    }

    .scroll-cue {
        display: none;
    }
}

@media (max-width: 980px) {

    .nav-toggle {
        display: inline-block;
        position: relative;
        z-index: 1001;
    }

    .site-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 1000;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        gap: 26px;
        padding: 40px 40px 40px;

        background-color: #05070c !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.nav-open .site-nav {
        opacity: 0.7;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav a {
        display: block;
        background: transparent !important;
        color: var(--text);
        font-size: 1.05rem;
    }
    
    .music-chapter-text {
    scroll-margin-top: 210px;
}

    
}