/* hangul.day - Watercolor Editorial */
/* Palette: Hanji Warm #f8f3eb, Aged Ink #2c1810, Warm Brown #3a2a20, Faded Umber #8b7a6a, Autumn Ochre #c4956a, Mountain Mist #9aabb8, Persimmon Red #c0513f, Deep Sienna #6b3a2a */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f3eb;
    color: #3a2a20;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 18px;
    line-height: 2.0;
    overflow-x: hidden;
}

/* Watercolor wash background layers (parallax) */
.wash-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.wash-layer-1 {
    background: radial-gradient(ellipse at 20% 30%, rgba(196, 149, 106, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(154, 171, 184, 0.08) 0%, transparent 50%);
}

.wash-layer-2 {
    background: radial-gradient(ellipse at 70% 20%, rgba(196, 149, 106, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 80%, rgba(154, 171, 184, 0.06) 0%, transparent 45%);
}

.wash-layer-3 {
    background: radial-gradient(ellipse at 50% 50%, rgba(192, 81, 63, 0.04) 0%, transparent 40%);
}

/* ===== OPENING / HERO ===== */
.opening {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.opening-wash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 149, 106, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: washBloom 2s 0.5s ease-out forwards;
    z-index: 0;
}

@keyframes washBloom {
    to {
        width: 200vmax;
        height: 200vmax;
    }
}

.opening-content {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    animation: fadeInContent 1.5s 1.2s ease-out forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

.site-title {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 48px;
    color: #2c1810;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.site-subtitle {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 18px;
    color: #8b7a6a;
    font-weight: 400;
    opacity: 0;
    animation: fadeInContent 1s 1.6s ease-out forwards;
}

.subtitle-date {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    color: #6b3a2a;
}

/* Seal stamp motif */
.seal-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #c0513f;
    border-radius: 2px;
    color: #ffffff;
    font-family: 'Nanum Myeongjo', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-top: 24px;
    opacity: 0;
    transform: scale(0);
    animation: sealBounce 0.4s 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sealBounce {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== CHAPTERS ===== */
.chapter {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.chapter-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

@media (min-width: 900px) {
    .chapter-inner {
        padding: 0 120px;
    }
}

/* Drop cap */
.drop-cap-wrapper {
    position: relative;
    float: left;
    margin-right: 12px;
    margin-left: -40px;
}

@media (max-width: 899px) {
    .drop-cap-wrapper {
        margin-left: 0;
    }
}

.drop-cap {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 120px;
    line-height: 0.85;
    color: #2c1810;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, text-shadow 1.2s ease-out;
}

.drop-cap.visible {
    opacity: 1;
    transform: translateX(0);
    text-shadow: 0 0 8px rgba(44, 24, 16, 0.3);
}

/* Chapter heading */
.chapter-heading {
    margin-bottom: 48px;
}

.chapter-title {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 40px;
    color: #2c1810;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Marginalia */
.marginalia {
    font-family: 'Gowun Batang', serif;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #8b7a6a;
    display: block;
    margin-bottom: 8px;
}

/* Body text */
.chapter-body {
    clear: both;
}

.reading-paragraph {
    margin-bottom: 48px;
    text-indent: 2em;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.reading-paragraph.reading {
    opacity: 1;
}

/* Pull quotes */
.pull-quote {
    margin: 48px 40px;
    padding-left: 24px;
    border-left: 8px solid transparent;
    border-image: linear-gradient(to bottom, #8b6f4e, transparent) 1;
    position: relative;
}

.pull-quote p {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.6;
    color: #2c1810;
    text-indent: 0;
    margin-bottom: 12px;
}

.pull-quote .marginalia {
    text-indent: 0;
}

/* Chapter seal */
.chapter-seal {
    display: block;
    margin-top: 48px;
    text-align: center;
    opacity: 1;
    transform: scale(1);
    animation: none;
}

/* ===== WATERCOLOR TRANSITIONS ===== */
.wash-transition {
    position: relative;
    width: 100%;
    height: 180px;
    z-index: 1;
    overflow: hidden;
}

.wash-1 {
    background: linear-gradient(to right, #f8f3eb, rgba(196, 149, 106, 0.3) 40%, rgba(154, 171, 184, 0.1) 70%, #f8f3eb);
}

.wash-2 {
    background: linear-gradient(to right, #f8f3eb, rgba(154, 171, 184, 0.25) 30%, rgba(196, 149, 106, 0.15) 60%, #f8f3eb),
                radial-gradient(ellipse at 60% 50%, rgba(192, 81, 63, 0.06) 0%, transparent 50%);
}

/* Ink splash accents */
.ink-splash {
    position: absolute;
    border-radius: 50%;
    background: #2c1810;
    opacity: 0.08;
}

.splash-1 {
    width: 40px;
    height: 38px;
    top: 20px;
    left: 15%;
    transform: rotate(12deg) scaleX(1.15);
}

.splash-2 {
    width: 24px;
    height: 22px;
    top: 80px;
    left: 25%;
    transform: rotate(-8deg) scaleY(1.1);
}

.splash-3 {
    width: 55px;
    height: 50px;
    top: 50px;
    right: 20%;
    transform: rotate(25deg) scaleX(0.9);
}

.splash-4 {
    width: 30px;
    height: 28px;
    top: 40px;
    left: 40%;
    transform: rotate(-15deg) scaleY(1.2);
}

.splash-5 {
    width: 20px;
    height: 20px;
    top: 100px;
    right: 30%;
    transform: rotate(5deg);
}

/* ===== BRUSH STROKE RULE ===== */
.brush-rule-container {
    text-align: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.brush-rule {
    opacity: 1;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 640px;
    margin: 0 auto;
}

.footer-inner .seal-stamp {
    opacity: 1;
    transform: scale(1);
    animation: none;
    margin-bottom: 16px;
}

.footer-text {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 20px;
    color: #2c1810;
    margin-bottom: 8px;
}

.footer-inner .marginalia {
    display: inline-block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-title {
        font-size: 36px;
    }

    .drop-cap {
        font-size: 80px;
    }

    .chapter-title {
        font-size: 28px;
    }

    .pull-quote {
        margin: 32px 16px;
    }

    .pull-quote p {
        font-size: 22px;
    }

    .chapter-inner {
        padding: 0 24px;
    }
}
