/* ═══════════════════════════════════════════════════════
   KL Taylor — Author Website
   Palette: Deep burgundy, charcoal, warm white, gold accent
   Typography: Playfair Display (headings) + Raleway (body)
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
:root {
    --burgundy: #6B1D2A;
    --burgundy-dark: #4A1018;
    --burgundy-light: #8A2E3E;
    --charcoal: #2D2D2D;
    --charcoal-light: #404040;
    --gold: #C9A96E;
    --gold-light: #D4BC8E;
    --cream: #FAF8F5;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --text-on-dark: #E8E4DF;
    --border: #E5E0DA;
    --shadow: rgba(45, 45, 45, 0.08);
    --shadow-lg: rgba(45, 45, 45, 0.15);
    --radius: 4px;
    --radius-lg: 8px;
    --max-width: 1100px;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--burgundy-light); }

/* ── Selection ── */
::selection {
    background: var(--burgundy);
    color: var(--cream);
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

em { font-family: 'Playfair Display', Georgia, serif; }

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── Gold Flourish Divider ── */
.flourish {
    display: block;
    text-align: center;
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
    padding: 0;
    margin: 0;
    user-select: none;
}

.flourish::before {
    content: '~ \2766 ~';
    letter-spacing: 6px;
}

/* ── Layout ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom-color: var(--gold);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.5px;
}

.nav-logo span {
    color: var(--burgundy);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width var(--transition);
}

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

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

.nav-links .btn.btn-primary {
    color: var(--white);
    background: var(--burgundy);
}

.nav-links .btn.btn-primary:hover {
    color: var(--white);
    background: var(--burgundy-light);
    transform: none;
    box-shadow: none;
}

.nav-links .btn.btn-primary::after {
    display: none;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(45, 45, 45, 0.85), rgba(74, 16, 24, 0.88)), url('hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gold-light);
    margin-bottom: 16px;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-tagline-secondary {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

.hero-bio {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
    color: var(--text-on-dark);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--burgundy-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 29, 42, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

/* ── Featured Stories Section ── */
.stories-section {
    background: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.story-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-lg);
    border-color: var(--gold);
}

.story-card-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--burgundy-dark) 100%);
    transition: transform 0.4s ease;
}

.story-card:hover .story-card-image {
    transform: scale(1.03);
}

.story-card-image-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--burgundy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.story-card-body {
    padding: 28px;
}

.story-card-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 8px;
}

.story-card h3 {
    margin-bottom: 8px;
}

.story-card-anthology {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.story-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.story-card .btn {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Reader Magnet / Newsletter Section ── */
.magnet-section {
    background: linear-gradient(rgba(74, 16, 24, 0.88), rgba(45, 45, 45, 0.9)), url('watercolour-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.magnet-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.08);
}

.magnet-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.magnet-section h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.magnet-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.magnet-description {
    color: var(--text-on-dark);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.8;
}

.signup-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── About Teaser (homepage) ── */
.about-teaser {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.about-teaser-image {
    width: 280px;
    height: 350px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 8px 8px 0 var(--burgundy);
}

.about-teaser-image-placeholder {
    width: 280px;
    height: 350px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--burgundy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    border: 3px solid var(--border);
}

.about-teaser-text h2 {
    margin-bottom: 16px;
}

.about-teaser-text p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ── About Page (full) ── */
.about-full {
    padding-top: 140px;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.about-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gold);
    box-shadow: 8px 8px 0 var(--burgundy);
    position: sticky;
    top: 100px;
}

.about-body h1 {
    margin-bottom: 24px;
}

.about-body p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.about-body p:first-of-type {
    font-size: 1.15rem;
    color: var(--text);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--burgundy);
    background: rgba(201, 169, 110, 0.06);
    transform: translateY(-2px);
}

/* ── Stories Page ── */
.stories-page {
    padding-top: 0;
}

.stories-page-grid {
    display: grid;
    gap: 60px;
    margin-top: 48px;
}

.story-full {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
}

.story-full-cover {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px var(--shadow-lg);
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--burgundy-dark) 100%);
    transition: transform var(--transition);
}

.story-full:hover .story-full-cover {
    transform: scale(1.02);
}

.story-full-info h2 {
    margin-bottom: 4px;
}

.story-full-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-style: italic;
}

.story-full-description {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.story-full-details {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.story-full-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Footer ── */
.footer {
    background: var(--charcoal);
    color: var(--text-on-dark);
    padding: 60px 0 30px;
    border-top: 3px solid var(--gold);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-nav a {
    color: var(--text-on-dark);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--gold);
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 16px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '\2766';
    display: block;
    font-size: 1.2rem;
    color: var(--gold);
    margin: 12px auto 0;
    letter-spacing: 4px;
}

.section-header p {
    color: var(--text-light);
    max-width: 550px;
    margin: 16px auto 0;
    font-size: 1.05rem;
}

/* ── Page Header (inner pages) ── */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(rgba(45, 45, 45, 0.82), rgba(74, 16, 24, 0.85)), url('page-header-bg.jpg') center/cover no-repeat;
    text-align: center;
    color: var(--white);
    border-bottom: 3px solid var(--gold);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: var(--text-on-dark);
    font-size: 1.05rem;
    font-style: italic;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0 24px;
        gap: 0;
        border-bottom: 1px solid transparent;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }
    .nav-toggle { display: flex; }

    .nav-links.open {
        max-height: 320px;
        opacity: 1;
        padding: 24px;
        gap: 20px;
        border-bottom-color: var(--border);
        box-shadow: 0 10px 30px var(--shadow);
    }

    .hero { padding: 130px 0 70px; }

    .stories-grid { grid-template-columns: 1fr; }

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

    .about-teaser-image,
    .about-teaser-image-placeholder {
        margin: 0 auto;
        width: 220px;
        height: 275px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 250px;
        margin: 0 auto;
        position: static;
    }

    .story-full {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }

    .story-full-cover {
        max-width: 200px;
        margin: 0 auto;
    }

    .story-full-details {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section { padding: 60px 0; }
    .hero { padding: 120px 0 60px; }
    .container { padding: 0 16px; }
}

/* ── Prefers reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
