:root {
    --bg-parchment: #f4ebd8; /* Off-white / Vintage paper */
    --ink-black: #2a2a2a; /* Faded ink */
    --crimson-red: #9e1b1b; /* Blood red / Stamp red */
    --classic-gold: #b8860b; /* Dark goldenrod */
    --border-ink: 1px solid var(--ink-black);
    --border-thick: 3px solid var(--ink-black);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-parchment);
    color: var(--ink-black);
    line-height: 1.7;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    touch-action: manipulation; /* Prevents double-tap to zoom */
}

h1, h2, h3, .document-title, .section-title {
    font-family: 'Playfair Display', serif;
    color: var(--ink-black);
}

.typewriter-text {
    font-family: 'Special Elite', monospace;
}

/* CSS Noise Overlay to simulate paper texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
}

/* Main Container */
.document-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 60px;
    background: transparent;
    border: var(--border-thick);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    position: relative;
}

/* Header */
.dossier-header {
    margin-bottom: 40px;
}

.header-meta {
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border-ink);
    border-top: var(--border-ink);
    padding: 5px 0;
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom-meta {
    margin-top: 20px;
}

.header-main {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.document-title {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0 10px 0;
}

.gold-text {
    color: var(--classic-gold);
}

.double-line {
    border-top: 3px solid var(--ink-black);
    border-bottom: 1px solid var(--ink-black);
    height: 7px;
    margin: 10px 0;
}

.margin-y {
    margin: 40px 0;
}

.subtitle {
    font-family: 'Special Elite', monospace;
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.logo-wrap {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.dossier-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--ink-black);
    padding: 5px;
    filter: sepia(0.6) contrast(1.2);
    
    /* Disable interaction/downloading */
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Red Stamps */
.red-stamp {
    --stamp-scale: 3;
    color: var(--crimson-red);
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    border: 4px solid var(--crimson-red);
    padding: 10px 20px;
    display: inline-block;
    border-radius: 8px;
    opacity: 0;
    mix-blend-mode: multiply;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.red-stamp.is-visible {
    --stamp-scale: 1;
    opacity: 0.8;
}
.top-stamp {
    transform: rotate(-10deg) scale(var(--stamp-scale));
    white-space: nowrap;
}

.stamp-wrapper {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.inline-stamp {
    margin: 20px 0 30px 0;
    transform: rotate(5deg);
    font-size: 1.5rem;
}

/* Content Area */
.lead-section {
    margin-bottom: 40px;
}

.highlight-box {
    background: rgba(0,0,0,0.05);
    padding: 20px;
    border-left: 4px solid var(--ink-black);
    font-size: 1.1rem;
    line-height: 1.8;
}

.columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.column {
    text-align: justify;
}

.column > *:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.3);
    padding-bottom: 10px;
}

.sub-heading {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.drop-cap:first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}

.column p {
    margin-bottom: 20px;
}

.column p:last-child,
.allocation-box p:last-child,
.highlight-box:last-child {
    margin-bottom: 0;
}

.elegant-quote {
    font-style: italic;
    font-size: 1.3rem;
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
    color: var(--classic-gold);
}

.ornament-divider {
    text-align: center;
    font-size: 1.5rem;
    margin: 30px 0;
    color: var(--ink-black);
    opacity: 0.5;
}

/* Allocation Boxes */
.allocation-box {
    border: 1px dashed var(--ink-black);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.allocation-header {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.small-type {
    font-size: 0.85rem;
    color: var(--crimson-red);
    margin-bottom: 15px;
}

.burn-counter-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(42, 42, 42, 0.3);
}

.burn-amount {
    font-family: 'Special Elite', monospace;
    font-size: 1.8rem;
    color: var(--crimson-red);
    font-weight: bold;
    text-shadow: 0px 0px 5px rgba(158, 27, 27, 0.2);
    margin-top: 5px;
}

/* Join Section */
.text-center {
    text-align: center;
}

.center-title {
    text-align: center;
    font-size: 2.5rem;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.final-quote-box {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    border-top: 1px solid var(--ink-black);
    border-bottom: 1px solid var(--ink-black);
    padding: 30px 0;
    margin: 40px 0;
}

.ca-wrapper {
    margin-top: 30px;
}

.ca-display {
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    color: var(--ink-black);
    border: 1px dashed var(--ink-black);
    padding: 12px 25px;
    display: inline-block;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Footer */
.dossier-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
    border-top: var(--border-ink);
    padding-top: 20px;
    gap: 30px;
}

.footer-stamp {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%, 0) rotate(12deg) scale(var(--stamp-scale));
    font-size: 1.2rem;
    border-width: 3px;
    padding: 5px 15px;
    white-space: nowrap;
}

.footer-links a {
    display: block;
    font-family: 'Special Elite', monospace;
    color: var(--ink-black);
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-top: 10px;
    filter: sepia(0.6) contrast(1.2);
    
    /* Disable interaction/downloading */
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .document-container {
        margin: 0;
        padding: 30px 20px;
        border: none;
        box-shadow: none;
    }
    .columns-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .dossier-header {
        margin-bottom: 20px;
    }
    .header-main {
        margin: 20px 0;
    }
    .document-title {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    .header-meta {
        font-size: 0.7rem;
    }
    .highlight-box {
        font-size: 0.8rem;
        padding: 15px 10px;
        word-break: break-word;
    }
    .dossier-logo {
        width: 90px;
        height: 90px;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .drop-cap:first-letter {
        font-size: 3rem;
    }
    .elegant-quote {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .center-title {
        font-size: 1.8rem;
    }
    .final-quote-box {
        font-size: 1.3rem;
        padding: 20px 0;
    }
    .buy-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .red-stamp {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
}
