:root {
    --parchment: #f4e4c1;
    --parchment-dark: #e8d4a8;
    --ink: #2a1f1a;
    --ink-light: #4a3f3a;
    --blood-red: #8b2500;
    --gold: #b8860b;
    --shadow: rgba(42, 31, 26, 0.15);
}

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

body {
    background: #1a1512;
    min-height: 100vh;
    padding: 2rem;
    font-family: 'Crimson Pro', Georgia, serif;
    color: var(--ink);
    line-height: 1.7;
}

.journal {
    max-width: 900px;
    margin: 0 auto;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(139, 37, 0, 0.03) 28px,
            rgba(139, 37, 0, 0.03) 29px
        ),
        linear-gradient(135deg, var(--parchment) 0%, var(--parchment-dark) 50%, var(--parchment) 100%);
    padding: 4rem 5rem;
    box-shadow: 
        0 0 0 1px rgba(139, 37, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 100px rgba(139, 37, 0, 0.05);
    position: relative;
    border-radius: 2px;
}

.journal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Header Styles */
.journal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--blood-red);
    position: relative;
}

.journal-header::after {
    content: '❧';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--parchment);
    padding: 0 1rem;
    color: var(--blood-red);
    font-size: 1.5rem;
}

.session-number {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--blood-red);
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-light);
}

.date-line {
    font-family: 'MedievalSharp', cursive;
    font-size: 0.95rem;
    color: var(--ink-light);
    margin-top: 1rem;
}

/* Section Styles */
section {
    margin-bottom: 2.5rem;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--blood-red);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 37, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2::before {
    content: '◆';
    font-size: 0.6rem;
    color: var(--gold);
}

/* Typography */
p {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    text-align: justify;
    text-indent: 1.5rem;
}

p:first-of-type {
    text-indent: 0;
}

.drop-cap {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.1rem;
    color: var(--blood-red);
    text-shadow: 2px 2px 0 rgba(184, 134, 11, 0.3);
}

/* Text Highlights */
.hero-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--ink);
}

.location {
    font-weight: 600;
    color: var(--blood-red);
}

.npc-name {
    font-style: italic;
    color: var(--ink);
}

.event-highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(184, 134, 11, 0.2) 60%);
    padding: 0 2px;
}

/* Combat Box */
.combat-box {
    background: rgba(139, 37, 0, 0.05);
    border-left: 4px solid var(--blood-red);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.combat-box::before {
    content: '⚔';
    position: absolute;
    top: -0.8rem;
    left: 1rem;
    background: var(--parchment);
    padding: 0 0.5rem;
    font-size: 1.2rem;
}

.combat-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blood-red);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.combat-box p {
    margin-bottom: 0.75rem;
    text-indent: 0;
    font-size: 1.05rem;
}

.xp-reward {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(184, 134, 11, 0.4);
}

/* Divider */
.divider {
    text-align: center;
    margin: 2.5rem 0;
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 1rem;
}

/* GM Notes */
.gm-notes {
    background: rgba(42, 31, 26, 0.03);
    border: 1px dashed rgba(139, 37, 0, 0.3);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
}

.gm-notes::before {
    content: 'Scribe\'s Marginalia';
    position: absolute;
    top: -0.7rem;
    left: 2rem;
    background: var(--parchment);
    padding: 0 1rem;
    font-family: 'MedievalSharp', cursive;
    font-size: 0.9rem;
    color: var(--ink-light);
}

.gm-notes h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.gm-notes h3:first-of-type {
    margin-top: 0.5rem;
}

.gm-notes p {
    font-size: 1rem;
    text-indent: 0;
    margin-bottom: 0.75rem;
}

.gm-notes ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.gm-notes li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer-flourish {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--blood-red);
    position: relative;
}

.footer-flourish::before {
    content: '❦';
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--parchment);
    padding: 0 1rem;
    color: var(--blood-red);
    font-size: 1.5rem;
}

.footer-text {
    font-family: 'MedievalSharp', cursive;
    font-size: 1rem;
    color: var(--ink-light);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .journal {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.05rem;
    }
}
