:root {
    --paper: #fbf7f1;
    --paper-soft: #f3ece2;
    --white: #ffffff;
    --ink: #15120f;
    --text: #2c2722;
    --muted: #6f675f;
    --line: #e5dacf;
    --gold: #b88733;
    --gold-dark: #8f6725;
    --black: #10100e;
    --shadow: 0 24px 70px rgba(39, 29, 18, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.72;
}

a {
    color: inherit;
    text-decoration-color: rgba(184, 135, 51, 0.55);
    text-underline-offset: 0.22em;
}

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

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
    padding: 0 clamp(24px, 5vw, 72px);
    background: var(--white);
    border-bottom: 1px solid rgba(229, 218, 207, 0.85);
}

.brand {
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.65rem, 2.7vw, 2.25rem);
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3.2vw, 42px);
}

.site-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 2px;
    background: var(--gold);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 160ms ease, transform 160ms ease;
}

.home-template .site-nav .nav-home::after,
.page-books .site-nav .nav-books::after,
.page-about .site-nav .nav-about::after,
.page-contact .site-nav .nav-contact::after,
.site-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.section {
    width: min(1110px, calc(100% - 44px));
    margin-inline: auto;
}

.narrow {
    max-width: 840px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
}

.gold-rule {
    display: block;
    width: 58px;
    height: 2px;
    margin: 28px 0;
    background: var(--gold);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.38fr);
    min-height: 590px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(251,247,241,0.98) 0%, rgba(251,247,241,0.9) 35%, rgba(251,247,241,0.14) 64%, rgba(22,18,15,0.08) 100%),
        radial-gradient(circle at 67% 42%, rgba(255,255,255,0.62), transparent 14rem),
        linear-gradient(135deg, #f8f1e8 0%, #e4d1bc 46%, #1c1714 100%);
    overflow: hidden;
}

.home-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 5.4vw, 70px) clamp(28px, 5.4vw, 64px);
}

.home-hero__copy h1 {
    margin: 0;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.75rem, 5vw, 4.55rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.home-hero__copy h1 em {
    font-style: italic;
    font-weight: 500;
}

.home-hero__copy p:not(.eyebrow) {
    max-width: 480px;
    margin: 0 0 28px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.home-hero__art {
    position: relative;
    display: grid;
    place-items: end start;
    min-height: 590px;
    padding: 44px clamp(22px, 4vw, 44px) 0 0;
}

.home-hero__art img {
    width: min(560px, 96%);
    max-height: 570px;
    object-fit: contain;
    filter: drop-shadow(0 30px 35px rgba(33, 23, 17, 0.22));
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    background: transparent;
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
}

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

.button.disabled {
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

.sample-band {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(220px, 0.55fr) minmax(300px, 0.95fr);
    gap: clamp(24px, 4vw, 62px);
    align-items: center;
    width: 100%;
    padding: clamp(44px, 6vw, 68px) clamp(28px, 7vw, 86px);
    background: rgba(255,255,255,0.58);
    border-bottom: 1px solid var(--line);
}

.sample-band__signup {
    max-width: 420px;
}

.sample-band h2,
.available-now h2,
.meet-emma h2,
.page-hero h1,
.book-detail h2,
.coming-soon h2,
.contact-card h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.1rem, 3.6vw, 3.35rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.sample-band p,
.available-now p,
.meet-emma p,
.page-hero p,
.book-copy p,
.coming-soon p,
.contact-card p,
.publisher-note p {
    color: var(--muted);
}

.line-icon {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 2.1rem;
    line-height: 1;
}

.sample-band__book {
    display: flex;
    justify-content: center;
}

.sample-band__book img {
    width: min(230px, 100%);
    filter: drop-shadow(0 22px 28px rgba(39, 29, 18, 0.16));
}

.story-cues {
    display: grid;
    gap: 34px;
    padding-left: clamp(20px, 3vw, 48px);
    border-left: 1px solid var(--line);
}

.story-cues article {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 22px;
    align-items: start;
}

.story-cues span {
    color: var(--gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.7rem;
    line-height: 0.9;
}

.story-cues h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.35;
    text-transform: uppercase;
}

.story-cues p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

.subscribe-card {
    margin-top: 28px;
}

.subscribe-card h3 {
    display: none;
}

.subscribe-card label {
    display: none;
}

.subscribe-card input {
    width: min(100%, 260px);
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255,255,255,0.82);
    color: var(--ink);
    font: inherit;
}

.subscribe-card button {
    min-height: 50px;
    margin-left: 10px;
}

.form-note,
.form-success,
.form-error {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-success,
.form-error {
    display: none;
}

.success .form-success,
.error .form-error {
    display: block;
}

.available-now {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.95fr);
    gap: clamp(30px, 6vw, 78px);
    align-items: center;
    padding: clamp(48px, 7vw, 74px) 0;
}

.available-now__copy {
    max-width: 560px;
}

.available-now__image {
    margin: 0;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #1a1715;
    box-shadow: var(--shadow);
}

.available-now__image img {
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: cover;
    object-position: center 52%;
}

.publisher-line {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.meet-emma {
    max-width: 880px;
    padding: 46px 0;
    border-top: 1px solid var(--line);
}

.meet-emma h2 {
    max-width: 760px;
}

.text-link {
    color: var(--gold-dark);
    font-weight: 800;
}

.publisher-note {
    padding: 0 0 54px;
}

.publisher-note p {
    margin: 0;
    padding: 24px 28px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.55);
    text-align: center;
}

.page-hero {
    padding: clamp(44px, 5vw, 66px) 0 24px;
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.02rem;
}

.book-detail {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
    padding: 38px 0 48px;
    border-top: 1px solid var(--line);
}

.book-detail--primary {
    align-items: start;
}

.book-cover-large,
.hero-cover {
    margin: 0;
}

.book-cover-large img,
.hero-cover img {
    width: min(100%, 330px);
    box-shadow: var(--shadow);
}

.coming-soon,
.contact-card,
.character-card,
.prose,
.series-next,
.sample {
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.prose p,
.series-next p {
    margin-top: 0;
}

.about-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 64px);
}

.about-panel > div,
.series-next article,
.contact-card,
.sample {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.48);
}

.series-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    border-top: 0;
}

.series-next h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 2.8vw, 2.55rem);
    font-weight: 500;
    letter-spacing: -0.018em;
    line-height: 1.05;
}

.sample {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
    margin-top: 18px;
    margin-bottom: 54px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 18px;
}

.contact-card {
    border-top: 0;
}

.contact-card h2 {
    margin-bottom: 12px;
}

.contact-card > a {
    color: var(--gold-dark);
    font-weight: 800;
}

.social-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    gap: 32px;
    align-items: start;
    padding: 48px clamp(24px, 5vw, 72px);
    background: var(--black);
    color: rgba(255,255,255,0.78);
}

.site-footer strong {
    display: block;
    margin-bottom: 12px;
    color: var(--white);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer nav {
    display: grid;
    gap: 7px;
    min-width: 130px;
}

.site-footer a {
    color: inherit;
}

.site-footer > p {
    text-align: right;
}

@media (max-width: 980px) {
    .home-hero,
    .sample-band,
    .available-now,
    .book-detail,
    .contact-grid,
    .site-footer,
    .about-panel,
    .series-next,
    .sample {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero__art {
        min-height: 0;
        padding: 0 24px 46px;
        place-items: center;
    }

    .story-cues {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 30px;
    }

    .sample-band__book {
        order: -1;
    }

    .site-footer > p {
        text-align: left;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding-block: 22px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .home-hero__copy {
        padding: 44px 24px;
    }

    .home-hero__copy h1 {
        font-size: clamp(2.55rem, 14vw, 3.7rem);
    }

    .sample-band {
        padding: 40px 24px;
    }

    .subscribe-card input {
        width: 100%;
    }

    .subscribe-card button {
        width: 100%;
        margin: 12px 0 0;
    }

    .button-row {
        gap: 12px;
    }

    .button {
        width: 100%;
    }
}
