/* ============================================================
   Books by Leggs — stylesheet
   Dark, sensual, premium. Charcoal + gold.
   ============================================================ */

:root {
    --black:   #0c0a09;
    --charcoal:#16130f;
    --panel:   #1d1916;
    --gold:    #c9a24b;
    --gold-lt: #e7c878;
    --cream:   #efe7d8;
    --muted:   #9a8f7e;
    --line:    rgba(201,162,75,.22);
    --maxw:    1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--cream);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--cream);
}

a { color: var(--gold-lt); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Buttons ---------------------------------------------- */
.btn {
    display: inline-block;
    padding: .85rem 1.9rem;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    border-radius: 2px;
    cursor: pointer;
    transition: all .25s;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-lt); color: var(--black); }
.btn--ghost { background: transparent; color: var(--gold-lt); }
.btn--ghost:hover { background: rgba(201,162,75,.1); color: var(--gold-lt); }

/* ---- Age gate --------------------------------------------- */
.age-gate {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6,5,4,.97);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.age-gate__box {
    max-width: 460px; text-align: center;
    border: 1px solid var(--line);
    background: var(--charcoal);
    padding: 3rem 2.5rem;
}
.age-gate__box h1 { font-size: 2.4rem; color: var(--gold); margin-bottom: 1rem; }
.age-gate__q { font-size: 1.1rem; margin: 1.2rem 0; color: var(--cream); }
.age-gate__btns { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.age-gate small { color: var(--muted); font-size: .72rem; letter-spacing: .05em; }

/* ---- Header ----------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12,10,9,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--cream); letter-spacing: .02em; }
.brand__by { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; }

.nav__toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; }
.nav__list { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__list a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.nav__list a:hover, .nav__list a.active { color: var(--gold); }
.nav__cta {
    border: 1px solid var(--gold); padding: .55rem 1.1rem; border-radius: 2px; color: var(--gold) !important;
}
.nav__cta:hover { background: var(--gold); color: var(--black) !important; }

/* ---- Hero ------------------------------------------------- */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex; align-items: center;
    background:
        linear-gradient(180deg, rgba(12,10,9,.55) 0%, rgba(12,10,9,.85) 100%),
        radial-gradient(circle at 70% 30%, #3a2c18 0%, var(--black) 60%);
    overflow: hidden;
}
.hero > .wrap { width: 100%; }
.hero__inner { max-width: 720px; padding: 4rem 0; }
.hero__eyebrow { color: var(--gold); letter-spacing: .35em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold-lt); font-style: italic; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 2.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Sections --------------------------------------------- */
.section { padding: 6rem 0; }
.section--alt { background: var(--charcoal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__head .eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .76rem; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3rem); margin: .6rem 0 1rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

.lead { font-size: 1.3rem; line-height: 1.6; font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--gold-lt); }

/* ---- Feature grid ----------------------------------------- */
.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--panel); border: 1px solid var(--line);
    padding: 2.5rem 2rem; border-radius: 3px; transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card h3 { font-size: 1.5rem; margin-bottom: .8rem; color: var(--gold-lt); }
.card p { color: var(--muted); }
.card__num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .5rem; }

/* ---- Book showcase / split -------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split__cover { position: relative; }
.split__cover img {
    width: 100%; border-radius: 4px;
    box-shadow: 0 30px 70px rgba(0,0,0,.7), 0 0 0 1px var(--line);
    transform: perspective(1200px) rotateY(-6deg);
    transition: transform .5s ease;
}
.split__cover:hover img { transform: perspective(1200px) rotateY(0deg) translateY(-6px); }
.split .eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .76rem; }
.split h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: .6rem 0 1.5rem; }
.split p { color: var(--muted); margin-bottom: 1.2rem; }

/* ---- About first fold ------------------------------------- */
.about-fold { padding-top: 4.5rem; }
.about-fold__title { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: .5rem 0 1.4rem; }
.about-fold__title em { color: var(--gold-lt); font-style: italic; }

/* ---- Gallery ---------------------------------------------- */
.gallery {
    columns: 3; column-gap: 1rem;
}
.gallery__item {
    position: relative; display: block; margin-bottom: 1rem; break-inside: avoid;
    border-radius: 4px; overflow: hidden; border: 1px solid var(--line);
    opacity: 0; transform: translateY(20px);
    animation: galleryin .7s ease forwards; animation-delay: var(--d, 0s);
}
@keyframes galleryin { to { opacity: 1; transform: none; } }
.gallery__item img { width: 100%; display: block; transition: transform .6s ease, filter .4s; filter: saturate(.92); }
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery__item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12,10,9,.85));
    opacity: 0; transition: opacity .4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
    position: absolute; left: 1rem; bottom: .9rem; z-index: 2;
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; color: var(--gold-lt);
    opacity: 0; transform: translateY(8px); transition: all .4s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

/* ---- Image strip ------------------------------------------ */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip__item { margin: 0; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 3/4; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.strip__item:hover img { transform: scale(1.07); }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Quote band (parallax-ish) ---------------------------- */
.quote-band {
    background-size: cover; background-position: center; background-attachment: fixed;
    text-align: center; padding: 7rem 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* ---- Lightbox --------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(6,5,4,.96); display: none;
    align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox__figure { max-width: 90vw; max-height: 88vh; margin: 0; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 80vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__figure figcaption { color: var(--gold-lt); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; margin-top: 1rem; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: none; color: var(--cream); font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lightbox__nav { background: none; border: 1px solid var(--line); color: var(--gold); font-size: 2rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; flex: none; margin: 0 1rem; transition: all .2s; }
.lightbox__nav:hover { background: var(--gold); color: var(--black); }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--gold); }

/* ---- CTA band --------------------------------------------- */
.cta-band {
    text-align: center; padding: 5rem 0;
    background: radial-gradient(circle at center, #2a2014 0%, var(--black) 70%);
    border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.cta-band p { color: var(--muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- Page header ------------------------------------------ */
.page-head { padding: 5rem 0 3rem; text-align: center; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .76rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-top: .6rem; }

/* ---- Prose ------------------------------------------------ */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 1.4rem; color: #cfc6b6; font-size: 1.08rem; }
.prose h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; color: var(--gold-lt); }
.prose blockquote {
    border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 2rem 0;
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.4rem; color: var(--gold-lt);
}

/* ---- Forms ------------------------------------------------ */
.form { max-width: 620px; margin: 0 auto; }
.form__row { margin-bottom: 1.4rem; }
.form label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.form input, .form textarea, .form select {
    width: 100%; padding: .9rem 1rem;
    background: var(--panel); border: 1px solid var(--line); color: var(--cream);
    font-family: 'Inter', sans-serif; font-size: 1rem; border-radius: 2px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 150px; resize: vertical; }

.alert { padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.5rem; font-size: .95rem; }
.alert--ok  { background: rgba(80,140,80,.15); border: 1px solid rgba(120,200,120,.4); color: #bfe6bf; }
.alert--err { background: rgba(160,60,60,.15); border: 1px solid rgba(220,120,120,.4); color: #f0c4c4; }

/* ---- Reviews (admin single column) ------------------------ */
.review {
    background: var(--panel); border: 1px solid var(--line);
    padding: 1.8rem; border-radius: 3px; margin-bottom: 1.5rem;
}
.review__stars { color: var(--gold); letter-spacing: .2em; font-size: 1.1rem; }
.review__body { color: #cfc6b6; margin: .8rem 0; font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }
.review__meta { color: var(--muted); font-size: .82rem; letter-spacing: .05em; }
.note { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 1rem; }

/* ---- Reviews page: rating summary ------------------------- */
.page-head--reviews { padding-bottom: 2.5rem; }
.rating-summary { display: inline-flex; align-items: baseline; gap: .8rem; margin-top: 1.4rem; }
.rating-summary__stars { color: var(--gold); font-size: 1.5rem; letter-spacing: .12em; }
.rating-summary__num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--cream); }
.rating-summary__count { color: var(--muted); font-size: .9rem; letter-spacing: .05em; }

/* ---- Reviews page: faded card grid ------------------------ */
.reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    align-items: start;
}
.review-card {
    position: relative; overflow: hidden;
    background: linear-gradient(155deg, rgba(40,33,22,.65) 0%, rgba(22,19,15,.85) 100%);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 2rem 1.8rem 1.6rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(22px);
    animation: galleryin .6s ease forwards; animation-delay: var(--d, 0s);
    transition: transform .35s ease, border-color .35s, box-shadow .35s;
}
.review-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.review-card::before {
    content: '\201C'; /* big faded quote mark */
    position: absolute; top: -.4rem; right: 1rem;
    font-family: 'Cormorant Garamond', serif; font-size: 6rem; line-height: 1;
    color: var(--gold); opacity: .12;
}
.review-card__stars { color: var(--gold); letter-spacing: .18em; font-size: 1.05rem; margin-bottom: .9rem; }
.review-card__body { color: #d8cfbe; font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.6rem; }
.review-card__foot { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.review-card__avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold), #8a6f2e); color: var(--black);
    font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600;
}
.review-card__foot strong { display: block; color: var(--cream); font-size: .95rem; font-weight: 600; }
.review-card__foot small { color: var(--muted); font-size: .78rem; letter-spacing: .05em; }

@media (max-width: 980px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--charcoal); border-top: 1px solid var(--line); padding-top: 4rem; margin-top: 2rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__col h4 { color: var(--gold); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.2rem; font-family: 'Inter', sans-serif; }
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: .6rem; }
.site-footer__col a, .site-footer__col p { color: var(--muted); font-size: .92rem; }
.site-footer__col .brand__name { color: var(--cream); display: block; margin-bottom: .8rem; }
.site-footer__legal { border-top: 1px solid var(--line); padding: 1.5rem; text-align: center; }
.site-footer__legal p { color: var(--muted); font-size: .8rem; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 860px) {
    .grid--3, .grid--2, .split, .site-footer__inner { grid-template-columns: 1fr; }
    .split { gap: 2rem; }
    .split__cover img { transform: none; max-width: 360px; margin: 0 auto; }
    .gallery { columns: 2; }
    .quote-band { background-attachment: scroll; }
    .nav__toggle { display: block; }
    .nav__list {
        position: absolute; top: 78px; right: 0; left: 0;
        flex-direction: column; gap: 0;
        background: var(--charcoal); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .3s;
    }
    .nav__list.open { max-height: 400px; }
    .nav__list li { width: 100%; text-align: center; padding: 1rem 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .gallery { columns: 1; }
}

/* Trailer */
.trailer { display: block; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
