/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    line-height: 1.9;
    color: #f8f4e8;
    background: #0d0d14;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0d0d14;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg .particle {
    position: absolute;
    border-radius: 50%;
    background: #f5c842;
    opacity: 0.6;
    transition: transform 0.8s ease-out;
}

.hero-bg .particle.silver {
    background: #e8e8e8;
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.constellation-lines line {
    stroke: #f5c842;
    stroke-opacity: 0.15;
    stroke-width: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
}

.hero-dateline {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #c4863d;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    min-height: 1.5em;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 10rem);
    line-height: 1;
    color: #f8f4e8;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #c4863d;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #f5c842);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ===== SECTION RULES ===== */
.section-rule {
    width: 0;
    height: 1px;
    background: #f5c842;
    opacity: 0.4;
    margin: 0 auto 3rem;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-rule.visible {
    width: 100%;
}

/* ===== ARTICLE SECTIONS ===== */
.article-section {
    background: #1a1a2e;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.article-section-light {
    background: #e8e0d0;
    color: #2d2418;
}

.article-section-light .article-heading {
    color: #2d2418;
}

.article-section-light .article-dateline {
    color: #c4863d;
}

.article-section-light .section-rule {
    background: #c4863d;
}

.article-section-light p {
    color: #2d2418;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-variant: small-caps;
    color: #f8f4e8;
    margin-bottom: 0.75rem;
}

.article-dateline {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #c4863d;
    letter-spacing: 0.15em;
    min-height: 1.5em;
}

/* Typewriter cursor */
.typewriter.typing::after {
    content: '|';
    animation: cursorBlink 0.6s step-end infinite;
    color: #f5c842;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== DROP CAP ===== */
.lead-paragraph::first-letter {
    font-size: 4.5em;
    float: left;
    line-height: 0.75;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #f5c842;
    margin: 0.1em 0.2em 0 0;
}

.article-section-light .lead-paragraph::first-letter {
    color: #c4863d;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body em {
    font-style: italic;
    color: #f5c842;
}

.article-section-light .article-body em {
    color: #c4863d;
}

/* ===== CSS ILLUSTRATIONS ===== */
.css-illustration {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.12;
    z-index: 0;
}

/* Rocket */
.rocket-illustration {
    width: 60px;
    height: 200px;
}

.rocket-body {
    position: absolute;
    width: 30px;
    height: 100px;
    background: linear-gradient(135deg, #f5c842, #c4863d);
    left: 15px;
    top: 50px;
    border-radius: 4px;
}

.rocket-nose {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 40px solid #f5c842;
    left: 15px;
    top: 10px;
}

.rocket-fin {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 0 solid transparent;
}

.rocket-fin-left {
    border-right: 15px solid #c4863d;
    left: 0;
    top: 130px;
}

.rocket-fin-right {
    border-left: 15px solid #c4863d;
    right: 0;
    top: 130px;
}

.rocket-flame {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(to bottom, #f5c842, #c4863d, transparent);
    left: 20px;
    top: 150px;
    border-radius: 0 0 50% 50%;
    animation: flicker 0.3s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scaleY(1) scaleX(1); opacity: 0.8; }
    100% { transform: scaleY(1.2) scaleX(0.85); opacity: 1; }
}

/* Biplane */
.plane-illustration {
    width: 120px;
    height: 80px;
}

.plane-wing {
    position: absolute;
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #c4863d, #2d2418);
    border-radius: 3px;
}

.plane-wing-top { top: 10px; }
.plane-wing-bottom { top: 50px; }

.plane-strut {
    position: absolute;
    width: 3px;
    height: 46px;
    background: #2d2418;
    top: 10px;
}

.plane-strut-left { left: 25px; }
.plane-strut-right { right: 25px; }

/* Ship */
.ship-illustration {
    width: 100px;
    height: 140px;
}

.ship-hull {
    position: absolute;
    width: 80px;
    height: 30px;
    background: linear-gradient(135deg, #c4863d, #2d2418);
    bottom: 20px;
    left: 10px;
    border-radius: 0 0 40% 40%;
}

.ship-mast {
    position: absolute;
    width: 3px;
    height: 80px;
    background: #f5c842;
    left: 48px;
    bottom: 50px;
}

.ship-sail {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 0 solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(245, 200, 66, 0.4);
    left: 51px;
    bottom: 70px;
}

.ship-wave {
    position: absolute;
    width: 100px;
    height: 10px;
    border-bottom: 2px solid #f5c842;
    border-radius: 0 0 50% 50%;
    opacity: 0.3;
}

.ship-wave-1 { bottom: 10px; left: 0; }
.ship-wave-2 { bottom: 5px; left: 10px; width: 80px; }

/* ===== FOOTER ===== */
.site-footer {
    background: #0d0d14;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #f8f4e8;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.footer-dateline {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #c4863d;
    letter-spacing: 0.2em;
    min-height: 1.5em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .css-illustration {
        display: none;
    }

    .article-section {
        padding: 3rem 1.5rem;
    }

    .article-heading {
        font-size: 1.4rem;
    }
}
