/* quietjoon.net - Zen Ink-Wash Digital Garden */

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

:root {
    --rice-paper: #F8F5F0;
    --warm-paper: #F0ECE4;
    --stone-beige: #E8E2D8;
    --sumi-ink: #2A2A2A;
    --medium-ink: #6A6A6A;
    --moss-green: #5A7A50;
    --seal-red: #C43A3A;
}

body {
    background-color: var(--rice-paper);
    color: var(--sumi-ink);
    font-family: 'Noto Sans KR', 'Zen Kaku Gothic New', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 300;
    overflow-x: hidden;
}

/* Ink Wash Layer */
#ink-wash-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(42, 42, 42, 0.03), transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(42, 42, 42, 0.04), transparent 35%),
        radial-gradient(ellipse at 40% 80%, rgba(42, 42, 42, 0.025), transparent 30%);
}

/* Bamboo Lines */
#bamboo-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bamboo-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(90, 122, 80, 0.08) 20%,
        rgba(90, 122, 80, 0.08) 80%,
        transparent
    );
}

/* Hero */
#hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 2rem;
}

#hero-name {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--sumi-ink);
}

.char {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.5s ease forwards;
}

.char:nth-child(1) { animation-delay: 3s; }
.char:nth-child(2) { animation-delay: 3.3s; }
.char:nth-child(3) { animation-delay: 3.6s; }
.char:nth-child(4) { animation-delay: 3.9s; }
.char:nth-child(5) { animation-delay: 4.2s; }
.char:nth-child(6) { animation-delay: 4.5s; }
.char:nth-child(7) { animation-delay: 4.8s; }
.char:nth-child(8) { animation-delay: 5.1s; }
.char:nth-child(9) { animation-delay: 5.4s; }

@keyframes charReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

#seal-stamp {
    opacity: 0;
    animation: sealFade 2s ease-out 6s forwards;
}

@keyframes sealFade {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

/* Garden Layout */
#garden {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.garden-stone {
    position: relative;
    max-width: 400px;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.garden-stone.visible {
    opacity: 1;
    transform: translateY(0);
}

.garden-stone:nth-child(2) {
    margin-top: 60px;
}

.garden-stone:nth-child(3) {
    margin-top: -20px;
}

.garden-stone:nth-child(4) {
    margin-top: 40px;
}

.brush-border {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    pointer-events: none;
}

.stone-content {
    padding: 2.5rem;
}

.stone-heading {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--sumi-ink);
    margin-bottom: 1rem;
}

.stone-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--medium-ink);
}

/* Footer */
#garden-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.footer-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--medium-ink);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .garden-stone {
        margin-left: 5% !important;
        max-width: 90%;
    }
}
