/* ========================================
   PYRE THORNE — Site Styles
   ======================================== */

:root {
    --bg-deep: #1a2e2e;
    --bg-surface: #1f3534;
    --bg-card: rgba(196, 145, 122, 0.05);
    --bg-card-poetry: rgba(138, 170, 159, 0.05);
    --rose: #c4917a;
    --rose-dim: rgba(196, 145, 122, 0.4);
    --rose-glow: rgba(196, 145, 122, 0.08);
    --sage: #8aaa9f;
    --sage-dim: rgba(138, 170, 159, 0.6);
    --cream: #d0c8bc;
    --cream-dim: rgba(200, 195, 185, 0.45);
    --title: #d6cec2;
    --border: rgba(140, 170, 165, 0.15);
    --border-strong: rgba(140, 170, 165, 0.25);
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Nunito Sans', 'Segoe UI', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background-color: var(--bg-deep);
    color: var(--cream);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--title);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-title:hover {
    color: var(--cream);
}

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

.nav-links a {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--rose-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

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

/* ========================================
   HERO (Landing Page)
   ======================================== */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 70vh;
}

.hero-categories {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--rose-dim);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--title);
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-title em, .hero-title i {
    font-style: italic;
    color: var(--cream);
}

.hero-tagline {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--cream-dim);
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em;
}

.hero-button {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--rose-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: 1px solid var(--rose-dim);
    padding: 0.8rem 2.5rem;
    transition: all 0.3s ease;
}

.hero-button:hover {
    color: var(--rose);
    border-color: var(--rose);
}

/* ========================================
   PAGE HEADER (Writing & About pages)
   ======================================== */

.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--title);
    letter-spacing: 0.02em;
}

/* ========================================
   WRITING LIST
   ======================================== */

.writing-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.writing-item {
    display: block;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.writing-item:first-child {
    border-top: 1px solid var(--border);
}

.writing-item:hover .writing-item-title {
    color: var(--rose);
}

.writing-item-meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--rose-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.writing-item-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--title);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.writing-item-excerpt {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--cream-dim);
    margin-top: 0.5rem;
    font-style: italic;
}

.writing-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--cream-dim);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
}

/* ========================================
   PIECE (Individual poem/prose page)
   ======================================== */

.piece {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.piece-meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--rose-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.piece-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--title);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.piece-body {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.9;
}

.piece-body p {
    margin-bottom: 1.5em;
}

.piece-body .stanza {
    margin-bottom: 2em;
}

.piece-body .stanza:last-child {
    margin-bottom: 0;
}

.piece-body .line {
    display: block;
}

.piece-back {
    display: inline-block;
    margin-top: 3rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--cream-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

.piece-back:hover {
    color: var(--rose);
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.about p {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.9;
    margin-bottom: 1.5em;
}

.about .signature {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--title);
    margin-top: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer p {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--cream-dim);
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .writing-list {
        padding: 1.5rem 1.5rem 3rem;
    }

    .piece {
        padding: 2rem 1.5rem 4rem;
    }

    .about {
        padding: 1.5rem 1.5rem 4rem;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
