/* ============================================================
   Jessie Reed — Author Site
   style.css
   ============================================================ */

/* 1. VARIABLES & RESET
   ============================================================ */
:root {
    --cream:       #faf8f5;
    --cream-dark:  #f0ebe3;
    --gold:        #c4a87c;
    --gold-light:  #d4bc96;
    --charcoal:    #2c2c2c;
    --charcoal-mid:#6b6b6b;
    --charcoal-lt: #999;
    --white:       #ffffff;

    --font-script: 'Great Vibes', cursive;
    --font-serif:  'Cormorant Garamond', serif;
    --font-sans:   'Lato', system-ui, sans-serif;

    --nav-height:  72px;
    --max-width:   1100px;
    --prose-width: 720px;

    --transition:  0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.75;
    padding-top: var(--nav-height);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* 2. NAV
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 168, 124, 0.25);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--charcoal);
    line-height: 1;
}

.nav-logo svg {
    color: var(--gold);
    flex-shrink: 0;
}

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

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal-mid);
    transition: color var(--transition);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--charcoal);
    border-bottom-color: var(--gold);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(196, 168, 124, 0.3);
    padding: 1.5rem 2rem;
    z-index: 99;
    flex-direction: column;
    gap: 1.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal-mid);
    transition: color var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold); }

/* 3. FOOTER
   ============================================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
.site-footer a {
    color: var(--gold-light);
    transition: color var(--transition);
}
.site-footer a:hover { color: var(--gold); }
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* 4. HERO (Home page)
   ============================================================ */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Gradient fallback — replace by dropping hero.jpg into static/images/ */
    background:
        url('/static/images/hero.jpg') center/cover no-repeat,
        linear-gradient(160deg, #2c2825 0%, #6b543e 45%, #8a7560 100%);
    background-blend-mode: multiply;
    position: relative;
    padding: 4rem 2rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(44,40,37,0.35) 0%, rgba(44,40,37,0.55) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-name {
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.04em;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    transition: background var(--transition), color var(--transition);
}
.btn:hover {
    background: var(--gold);
    color: var(--charcoal);
}
.btn-dark {
    background: var(--charcoal);
    color: var(--cream);
    border-color: var(--charcoal);
}
.btn-dark:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--charcoal);
}

/* 5. SIGNUP SECTION
   ============================================================ */
.signup-section {
    background: var(--cream-dark);
    padding: 5rem 2rem;
    text-align: center;
}

.signup-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 0.75rem;
}

.signup-section p {
    font-size: 0.95rem;
    color: var(--charcoal-mid);
    margin-bottom: 2rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}

.signup-form input[type="email"] {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid #d4d0cb;
    background: var(--white);
    color: var(--charcoal);
    outline: none;
    flex: 1 1 220px;
    transition: border-color var(--transition);
}
.signup-form input[type="email"]:focus { border-color: var(--gold); }

.signup-form button {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    background: var(--charcoal);
    color: var(--cream);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.signup-form button:hover { background: var(--gold); }

.signup-message {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    display: none;
}

/* 6. PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    background: linear-gradient(160deg, #2c2825 0%, #6b543e 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-script);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white);
    line-height: 1.1;
}

.page-header .divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 1.25rem auto 0;
}

/* 7. ABOUT PAGE
   ============================================================ */
.about-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-photo-wrap {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.photo-placeholder {
    aspect-ratio: 3/4;
    background: var(--cream-dark);
    border: 1px solid rgba(196,168,124,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--charcoal-lt);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.photo-placeholder svg { color: var(--gold-light); opacity: 0.6; }

.about-bio h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}
.about-bio p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 1.25rem;
}
.about-bio .gold-rule {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 2rem;
}

/* 8. BOOKS PAGE
   ============================================================ */
.books-placeholder {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
}
.books-placeholder h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    margin: 2rem 0 1rem;
}
.books-placeholder p {
    color: var(--charcoal-mid);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
}
.books-placeholder svg { color: var(--gold); opacity: 0.7; }

/* Book grid (for when books arrive) */
.book-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 3rem;
}

/* 9. PROSE PAGES (Process, Inspiration)
   ============================================================ */
.prose-section {
    max-width: var(--prose-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.prose-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.875rem);
    font-weight: 300;
    color: var(--charcoal);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.prose-section h2:first-child { margin-top: 0; }

.prose-section p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.9;
    color: #3a3a3a;
    margin-bottom: 1.25rem;
}

.prose-section .gold-rule {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 2.5rem 0;
}

.prose-section blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--charcoal-mid);
}

/* 10. CONTACT PAGE
   ============================================================ */
.contact-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    max-width: var(--prose-width);
    margin: 0 auto;
}

.contact-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.contact-section p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--charcoal-mid);
    margin-bottom: 2rem;
    max-width: 480px;
}

.contact-email {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.contact-email:hover { border-bottom-color: var(--gold); }

/* 11. SHARED UTILITIES
   ============================================================ */
.gold-rule {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

/* 12. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 1s ease-out both; }
.fade-up-delay { animation: fadeUp 1s 0.3s ease-out both; }
.fade-up-delay2 { animation: fadeUp 1s 0.6s ease-out both; }

/* 13. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .about-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-photo-wrap { position: static; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 3.5rem; }
    .signup-form { flex-direction: column; }
    .signup-form input[type="email"] { width: 100%; }
    .signup-form button { width: 100%; }
}

/* 14. SCROLLBAR (cosmetic)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }
