/* ============================================
   COLTEN ROSE — AUTHOR WEBSITE
   Color Palette: Cover Art + Cream/Earth Tones
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Core palette from cover art */
    --color-dark:        #0b1410;
    --color-dark-green:  #142420;
    --color-mid-dark:    #1c3329;
    --color-jade:        #3d8b7a;
    --color-jade-light:  #5aad9a;
    --color-amber:       #c9943e;
    --color-amber-light: #ddb05a;
    --color-amber-glow:  #e8c36f;

    /* Cream & earth tones */
    --color-cream:       #f5ece0;
    --color-cream-dark:  #e8dcc8;
    --color-sand:        #d4c4a8;
    --color-earth:       #8b7355;
    --color-earth-dark:  #5c4d3a;

    /* Functional */
    --color-text:        #f5ece0;
    --color-text-muted:  #b8a990;
    --color-bg:          #0b1410;
    --color-bg-alt:      #111e18;
    --color-surface:     #18302620;

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Lora', 'Georgia', serif;

    /* Spacing */
    --section-pad: clamp(4rem, 10vh, 8rem);
    --container-width: 1100px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--color-amber);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

a:hover {
    color: var(--color-amber-light);
}

::selection {
    background: var(--color-amber);
    color: var(--color-dark);
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Section Defaults --- */
.section {
    padding: var(--section-pad) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--color-amber);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(11, 20, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-cream);
    letter-spacing: 0.06em;
}

.nav-logo:hover {
    color: var(--color-amber);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-cream-dark);
    letter-spacing: 0.04em;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-amber);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--color-amber);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    transition: all 0.3s var(--ease-out);
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(61, 139, 122, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(201, 148, 62, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(11, 20, 16, 1) 0%, transparent 80%),
        var(--color-bg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 6rem 1.5rem 2rem;
}

.hero-cover {
    flex-shrink: 0;
}

.cover-image {
    width: 320px;
    border-radius: 4px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(201, 148, 62, 0.08),
        0 0 120px rgba(61, 139, 122, 0.05);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.cover-image:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(201, 148, 62, 0.12),
        0 0 140px rgba(61, 139, 122, 0.08);
}

.hero-text {
    max-width: 520px;
}

.hero-series {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-jade);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--color-amber);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-author {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-cream-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-amber));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--color-amber);
    color: var(--color-dark);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--color-amber-light);
    color: var(--color-dark);
    box-shadow: 0 4px 20px rgba(201, 148, 62, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid var(--color-earth);
}

.btn-secondary:hover {
    border-color: var(--color-amber);
    color: var(--color-amber);
}

.btn-outline {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid var(--color-earth);
}

.btn-outline:hover {
    border-color: var(--color-jade);
    color: var(--color-jade);
}

/* ============================================
   BOOK SECTION
   ============================================ */
.book-section {
    background: var(--color-bg-alt);
}

.book-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}

.book-cover-display {
    position: sticky;
    top: 6rem;
}

.book-cover-back {
    width: 300px;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.book-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.book-synopsis p {
    margin-bottom: 1rem;
    color: var(--color-cream-dark);
    font-size: 1.02rem;
}

.synopsis-emphasis {
    font-style: italic;
    color: var(--color-amber) !important;
    font-size: 1.08rem !important;
    margin-top: 0.5rem;
}

.book-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-jade);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--color-cream-dark);
}

/* ============================================
   QUOTE DIVIDER
   ============================================ */
.quote-divider {
    padding: 4rem 0;
    background: var(--color-bg);
    text-align: center;
}

.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-amber);
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2rem;
}

.about-image {
    position: sticky;
    top: 6rem;
}

.author-photo {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    filter: grayscale(15%) contrast(1.05);
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--color-cream-dark);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.about-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
}

.signature-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-amber);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.trilogy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trilogy-list li {
    color: var(--color-cream-dark);
    font-size: 0.95rem;
    padding-left: 1rem;
    position: relative;
}

.trilogy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-jade);
    transform: translateY(-50%);
}

.trilogy-list li:first-child::before {
    background: var(--color-amber);
}

/* ============================================
   PURCHASE SECTION
   ============================================ */
.purchase-section {
    background: var(--color-bg-alt);
}

.purchase-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.purchase-card-main {
    text-align: center;
    max-width: 360px;
}

.purchase-cover {
    width: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.purchase-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 0.25rem;
}

.purchase-edition {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.purchase-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-purchase {
    width: 100%;
}

.purchase-qr {
    text-align: center;
}

.qr-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 0.75rem;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

.qr-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    text-align: center;
}

.contact-layout {
    max-width: 560px;
    margin: 0 auto;
}

.contact-info p {
    color: var(--color-cream-dark);
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
}

/* --- Contact Form --- */
.contact-form {
    text-align: left;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-sand);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-cream);
    background: rgba(20, 36, 32, 0.6);
    border: 1px solid var(--color-earth-dark);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.form-input::placeholder {
    color: var(--color-earth);
}

.form-input:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 2px rgba(201, 148, 62, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.05rem;
    cursor: pointer;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-cream-dark);
    font-size: 1.05rem;
    transition: color 0.3s var(--ease-out);
}

.contact-link:hover {
    color: var(--color-amber);
}

.contact-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(139, 115, 85, 0.15);
    text-align: center;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-amber);
    margin-bottom: 0.25rem;
}

.footer-book {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-earth);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding-top: 7rem;
    }

    .cover-image {
        width: 260px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .book-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover-display {
        position: static;
        display: flex;
        justify-content: center;
    }

    .book-cover-back {
        width: 250px;
    }

    .book-meta {
        justify-content: center;
    }

    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        position: static;
        display: flex;
        justify-content: center;
    }

    .author-photo {
        width: 260px;
    }

    .purchase-layout {
        flex-direction: column;
        gap: 3rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: rgba(11, 20, 16, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s var(--ease-out);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .hero-content {
        padding-top: 5rem;
    }

    .cover-image {
        width: 220px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline br {
        display: none;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .book-cover-back {
        width: 200px;
    }

    .book-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .meta-item {
        align-items: center;
    }

    .author-photo {
        width: 220px;
    }

    .purchase-cover {
        width: 160px;
    }

    .qr-image {
        width: 130px;
        height: 130px;
    }

    .pull-quote {
        padding: 0 1rem;
    }
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
