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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    background-color: #000000;
    color: #D4CCC0;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 1s ease;
}

body.loaded {
    background-color: #1C1A18;
}

/* Watercolor Splotches */
.splotch-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.splotch {
    position: absolute;
    width: 300px;
    height: 300px;
}

.splotch-1 {
    top: 5%;
    left: 60%;
}

.splotch-2 {
    top: 25%;
    left: 5%;
}

.splotch-3 {
    top: 50%;
    right: 10%;
}

.splotch-4 {
    top: 70%;
    left: 20%;
}

.splotch-5 {
    top: 85%;
    right: 25%;
}

/* Drip Lines */
.drip-line {
    position: fixed;
    width: 3px;
    pointer-events: none;
    z-index: 1;
}

.drip-line-1 {
    height: 60%;
    top: 15%;
    left: 85%;
}

.drip-line-2 {
    height: 40%;
    top: 40%;
    left: 92%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 64px;
    color: #E8DFD4;
    background: linear-gradient(90deg, #8B6B8A, #C4956B, #B07A7A, #D4B896);
    background-size: 400% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 2s ease;
}

.hero-title.revealed {
    background-position: 0% 0;
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 24px;
    color: #8B6B8A;
    opacity: 0;
    margin-top: 16px;
    transition: opacity 1.5s ease;
}

.hero-subtitle.visible {
    opacity: 0.7;
}

/* Journal Entries */
.journal-entry {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    z-index: 2;
}

.entry-content {
    max-width: 520px;
    opacity: 0;
    transform: rotate(-1deg);
    transition: opacity 800ms ease, transform 800ms ease;
}

.entry-content.revealed {
    opacity: 1;
    transform: rotate(0deg);
}

.entry-date {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 20px;
    color: #8B6B8A;
    display: block;
    margin-bottom: 12px;
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 38px;
    color: #E8DFD4;
    line-height: 1.3;
    margin-bottom: 20px;
}

.entry-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.85;
    color: #D4CCC0;
    opacity: 0.8;
}

/* Watercolor edge effect */
.watercolor-edge {
    margin-top: 24px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #C4956B 10%,
        #8B6B8A 40%,
        #B07A7A 70%,
        transparent 100%
    );
    opacity: 0.2;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(196, 149, 107, 0.1);
}

/* Botanical drawings */
.botanical {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.journal-entry.in-view .botanical {
    opacity: 1;
}

.botanical-fern {
    right: 12%;
    top: 10%;
    height: 160px;
}

.botanical-flower {
    left: 8%;
    bottom: 15%;
    height: 140px;
}

.botanical-branch {
    right: 15%;
    bottom: 10%;
    height: 120px;
}

/* Ink bleed effect on hover */
.entry-title {
    position: relative;
}

.journal-entry:hover .entry-title {
    text-shadow: 1px 1px 4px rgba(139, 107, 138, 0.15);
    transition: text-shadow 500ms ease;
}

/* Section-specific positioning adjustments */
.entry-2 {
    flex-direction: row-reverse;
}

/* Deep tones */
.entry-3 .entry-content {
    border-left: 1px solid #252220;
    padding-left: 24px;
}

/* Teal accent for botanical labels */
.botanical-fern {
    filter: drop-shadow(0 0 3px #6B8E8A);
}

/* Paper background warmth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, #F8F3ED 0%, transparent 70%);
    opacity: 0.02;
    pointer-events: none;
}

/* Paper texture hint */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(28, 26, 24, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #1C1A18;
}

::-webkit-scrollbar-thumb {
    background: #252220;
    border-radius: 2px;
}

/* Selection */
::selection {
    background: rgba(196, 149, 107, 0.2);
    color: #E8DFD4;
}
