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

:root {
    --cream: #f5ece0;
    --cream-dark: #ece0cc;
    --brown-deep: #2b1a12;
    --burgundy-dark: #4a2030;
    --burgundy: #6b1d2a;
    --burgundy-light: #8c3a4f;
    --gold: #c4a35a;
    --tan: #d4c0a0;
    --warm-gray: #7a6b5a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--cream);
    color: var(--brown-deep);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* === PAPER TEXTURE OVERLAY === */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(212, 192, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(212, 192, 160, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(212, 192, 160, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 15%, rgba(212, 192, 160, 0.05) 0%, transparent 35%),
        radial-gradient(ellipse at 10% 90%, rgba(212, 192, 160, 0.06) 0%, transparent 40%);
}

/* === SECTIONS === */
.section {
    min-height: 90vh;
    padding: 8vh 6vw;
    position: relative;
    box-shadow: inset 0 0 100px rgba(43, 26, 18, 0.08);
    border-bottom: 1px solid rgba(212, 192, 160, 0.4);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* === HERO === */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stamp {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(4rem, 10vw, 9rem);
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: var(--brown-deep);
    transform: rotate(-3deg);
    position: relative;
    opacity: 0.92;
}

.hero-stamp::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--burgundy);
    opacity: 0.6;
    transform: rotate(0.5deg);
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-top: 3rem;
    letter-spacing: 0.05em;
    max-width: 500px;
}

.redacted {
    background-color: var(--brown-deep);
    color: var(--brown-deep);
    padding: 0 0.5em;
    transition: color 0.3s ease;
}

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

.crossed-out-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-gray);
    text-decoration: line-through;
    text-decoration-color: var(--burgundy);
    margin-top: 4rem;
    opacity: 0.7;
    transform: rotate(0.5deg);
}

/* === MARGIN NOTES === */
.margin-note {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--burgundy-light);
    max-width: 200px;
    line-height: 1.5;
    opacity: 0.75;
    border-left: 2px solid var(--burgundy);
    padding-left: 0.8rem;
    transform: rotate(-1deg);
}

.margin-note-1 {
    top: 15%;
    right: 5%;
}

.margin-note-2 {
    top: 20%;
    right: 3%;
}

.margin-note-3 {
    bottom: 15%;
    right: 5%;
}

/* === GEOMETRIC DIAGRAMS === */
.geometric-diagram {
    position: absolute;
    opacity: 0.5;
}

.diagram-1 {
    bottom: 10%;
    right: 10%;
}

.diagram-2 {
    top: 10%;
    right: 5%;
}

/* === SECTION STAMPS === */
.section-stamp {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--brown-deep);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    transform: rotate(-1deg);
}

.section-stamp::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    border: 1px solid var(--tan);
    opacity: 0.4;
    transform: rotate(0.5deg);
}

/* === TEXT BLOCKS === */
.text-block {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    max-width: 700px;
    color: var(--brown-deep);
}

.text-block p {
    margin-bottom: 1.5rem;
}

.emphasis-mark {
    background: linear-gradient(180deg, transparent 60%, rgba(196, 163, 90, 0.3) 60%);
    padding: 0 0.2em;
}

.struck-through {
    text-decoration: line-through;
    text-decoration-color: var(--burgundy);
    opacity: 0.6;
}

/* === ANNOTATION BOX === */
.annotation-box {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px dashed var(--burgundy-light);
    background: rgba(236, 224, 204, 0.5);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--burgundy-dark);
    transform: rotate(0.3deg);
    max-width: 600px;
}

.annotation-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--burgundy);
}

/* === EVIDENCE GRID === */
.evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
}

.evidence-item {
    padding: 1.5rem;
    border: 1px solid var(--tan);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evidence-item:hover {
    transform: rotate(-0.5deg) translateY(-2px);
    box-shadow: 4px 4px 0 var(--tan);
}

.evidence-number {
    font-family: 'Abril Fatface', cursive;
    font-size: 2rem;
    color: var(--burgundy);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.evidence-text {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--brown-deep);
}

/* === CONCLUSION === */
.thesis-quote {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--burgundy-dark);
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--gold);
}

.final-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--burgundy);
    text-transform: uppercase;
    margin-top: 5rem;
    padding: 1rem;
    border: 2px solid var(--burgundy);
    display: inline-block;
    transform: rotate(-2deg);
    opacity: 0.8;
}

/* === SCROLL ANIMATIONS === */
.section-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section {
        padding: 6vh 5vw;
    }

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

    .margin-note {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        margin-top: 2rem;
        max-width: 100%;
        transform: none;
    }

    .geometric-diagram {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        margin-top: 2rem;
    }
}
