:root {
    --desk: #D8D0C4;
    --paper: #FAF6F0;
    --paper-aged: #F0E8D4;
    --paper-warm: #E8D8C0;
    --ink: #2A2A2A;
    --ink-deep: #1A1A1A;
    --navy: #2A3A5A;
    --tan: #B8A888;
}

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

body {
    background: var(--desk);
    color: var(--ink);
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Desk surface */
.desk {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

/* Documents */
.document {
    background: var(--paper);
    margin-bottom: 48px;
    padding: 0;
    position: relative;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.document.in-view {
    opacity: 1;
    transform: translateY(0);
}

.doc-inner {
    padding: 40px 36px;
}

/* Document variants */
.doc-cover {
    border: 2px solid var(--tan);
}

.doc-report {
    background: var(--paper);
    transform: rotate(-0.3deg) translateY(16px);
}

.doc-report.in-view {
    transform: rotate(-0.3deg) translateY(0);
}

.doc-catalog {
    background: var(--paper-aged);
    border-left: 4px solid var(--navy);
}

.doc-log {
    background: var(--paper);
    border: 1px solid var(--tan);
}

.doc-note {
    background: var(--paper-warm);
    transform: rotate(1.2deg) translateY(16px);
    max-width: 500px;
    margin-left: auto;
    margin-right: 20px;
}

.doc-note.in-view {
    transform: rotate(1.2deg) translateY(0);
}

.doc-summary {
    border: 2px solid var(--ink);
}

/* Paper clip */
.paper-clip {
    position: absolute;
    top: -8px;
    right: 40px;
    width: 20px;
    height: 48px;
    border: 2px solid #888;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    z-index: 2;
}

.paper-clip::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 3px;
    width: 10px;
    height: 32px;
    border: 2px solid #888;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

/* Stamps */
.stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 2px solid;
    transform: rotate(3deg);
    z-index: 2;
}

.stamp-classified {
    color: #C43030;
    border-color: #C43030;
}

.stamp-open {
    color: var(--navy);
    border-color: var(--navy);
}

/* Typewriter text */
.typewriter {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 10px;
}

.typewriter.header-line {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 4px;
}

.typewriter.small {
    font-size: 0.8rem;
    color: #666;
}

.typewriter.indent {
    padding-left: 24px;
}

/* Document rules */
.doc-rule {
    height: 1px;
    background: var(--tan);
    margin: 16px 0;
}

.rule-dark {
    background: var(--ink);
}

/* Document title (cover) */
.doc-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--ink-deep);
    letter-spacing: 0.03em;
    margin: 16px 0;
}

/* Highlight */
.highlight {
    background: rgba(196, 48, 48, 0.12);
    padding: 1px 4px;
}

/* Redaction bars */
.redacted {
    background: var(--ink-deep);
    color: var(--ink-deep);
    padding: 1px 4px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    user-select: none;
}

.redacted:hover {
    background: rgba(196, 48, 48, 0.15);
    color: #C43030;
}

/* Catalog styles */
.catalog-inner {
    padding: 36px;
}

.sans-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 8px;
}

.catalog-entry {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tan);
}

.catalog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.catalog-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 18px;
    color: var(--ink-deep);
    margin-bottom: 4px;
}

.catalog-detail {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 2px;
}

/* Surveillance log */
.log-entries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-entry {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.log-time {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--navy);
    flex-shrink: 0;
    min-width: 48px;
}

.log-text {
    font-family: 'Special Elite', cursive;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ink);
}

/* Handwritten note */
.note-inner {
    padding: 32px 28px;
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--navy);
    margin-bottom: 12px;
}

.signature {
    text-align: right;
    font-weight: 600;
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 600px) {
    .desk {
        padding: 40px 16px 60px;
    }

    .doc-inner {
        padding: 28px 20px;
    }

    .doc-note {
        max-width: 100%;
        margin-right: 0;
    }

    .log-entry {
        flex-direction: column;
        gap: 2px;
    }
}
