/* =========================================================
   THE MERIDIAN SIX
   Shared Stylesheet
   mykindlebooks.net/books/the-meridian-six/
   ========================================================= */

:root {
    --bg: #08090b;
    --bg-soft: #101216;
    --panel: #15181d;
    --panel-light: #1c2026;

    --text: #f3f0e9;
    --text-soft: #c7c3bb;
    --muted: #92979f;

    --gold: #c5a15b;
    --gold-light: #e2c47f;
    --burgundy: #6f1d2c;
    --burgundy-light: #9b2d40;

    --border: rgba(197, 161, 91, 0.25);

    --max-width: 1180px;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(111, 29, 44, 0.12), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #ffffff;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--gold-light);
}

h3 {
    font-size: 1.45rem;
    color: var(--text);
}

p {
    margin: 0 0 1.3rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-soft);
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: var(--gold);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.quote {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    border-left: 3px solid var(--burgundy-light);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-size: 1.25rem;
    font-style: italic;
}

/* =========================================================
   SITE HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 9, 11, 0.94);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    width: min(92%, var(--max-width));
    margin: auto;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-title span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
}

.nav-links a {
    color: #d4d4d4;
}

.nav-links a:hover {
    color: var(--gold-light);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-inner {
    width: min(92%, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 5rem;
    align-items: center;
}

.hero-copy {
    animation: fadeUp 1s ease both;
}

.hero-cover {
    display: flex;
    justify-content: center;
    animation: fadeIn 1.4s ease both;
}

.hero-cover img {
    width: min(100%, 600px);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-subtitle {
    max-width: 690px;
    margin-bottom: 2rem;
    color: var(--text-soft);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.95rem 1.55rem;
    border-radius: 5px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--burgundy);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--burgundy-light);
    color: #ffffff;
}

.btn-secondary {
    border: 1px solid var(--gold);
    color: var(--gold-light);
}

.btn-secondary:hover {
    background: var(--gold);
    color: #090909;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-soft);
}

.container {
    width: min(92%, var(--max-width));
    margin: auto;
}

.narrow {
    width: min(92%, 820px);
    margin: auto;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 3rem;
}

/* =========================================================
   SPLIT CONTENT
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    align-items: center;
}

.split.reverse .split-image {
    order: 2;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================================================
   CARDS / CHARACTER GRID
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.01)
        );
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 161, 91, 0.6);
}

.card-number {
    display: block;
    margin-bottom: 1rem;
    color: var(--burgundy-light);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.card p {
    color: var(--text-soft);
}

/* =========================================================
   THRILLER CALLOUT
   ========================================================= */

.dark-callout {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem;
    text-align: center;
    background:
        linear-gradient(
            rgba(8, 9, 11, 0.85),
            rgba(8, 9, 11, 0.95)
        ),
        radial-gradient(
            circle at center,
            rgba(111, 29, 44, 0.55),
            transparent 65%
        );
}

.dark-callout h2 {
    max-width: 850px;
    margin: 0 auto 1.5rem;
    color: #ffffff;
}

.dark-callout p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.15rem;
}

/* =========================================================
   INNER PAGE HERO
   ========================================================= */

.page-hero {
    padding: 7rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background:
        radial-gradient(
            circle at top center,
            rgba(111, 29, 44, 0.24),
            transparent 55%
        );
}

.page-hero h1 {
    max-width: 1000px;
    margin: auto;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.page-hero p {
    max-width: 760px;
    margin: 1.5rem auto 0;
    color: var(--text-soft);
    font-size: 1.2rem;
}

/* =========================================================
   BOOK COVER BLOCK
   ========================================================= */

.book-cover-block {
    width: min(100%, 600px);
    margin: 0 auto;
}

.book-cover-block img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-box {
    padding: 3.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(
            135deg,
            rgba(111,29,44,0.16),
            rgba(197,161,91,0.06)
        );
}

.cta-box h2 {
    margin-bottom: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #050607;
    text-align: center;
}

.site-footer p {
    margin: 0.4rem 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.84rem;
}

.footer-links {
    margin-bottom: 1.2rem;
}

.footer-links a {
    margin: 0 0.6rem;
    color: var(--text-soft);
}

/* =========================================================
   SIMPLE ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .nav-wrap {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner,
    .split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-copy {
        text-align: center;
    }

    .button-row {
        justify-content: center;
    }

    .split.reverse .split-image {
        order: initial;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .section {
        padding: 4rem 0;
    }

    .nav-links {
        gap: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-inner {
        gap: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.6rem;
    }

    .page-hero {
        padding: 5rem 0 3.5rem;
    }

    .cta-box {
        padding: 2.5rem 1.4rem;
    }
}