/* quietjoon.com — wabi-sabi / japanese-minimal */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f3ee;
    color: #8a7a6a;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Paper Texture Overlay ─────────────────────────────────── */
#paper-texture {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 400px;
}

/* ─── Hero: Breath Opening ───────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 34vh;
    padding-left: 20%;
    background: #f7f3ee;
    position: relative;
}

#hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#name {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #2c2420;
    letter-spacing: 0.05em;
    line-height: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}

#name.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero-line {
    width: 0px;
    height: 1px;
    background: #c8b8a2;
    margin-top: 24px;
    transition: width 1.2s ease 0.8s;
}

#hero-line.visible {
    width: 60px;
}

/* ─── Waypoints ──────────────────────────────────────────────── */
.waypoint {
    font-family: 'Cormorant', serif;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 400;
    color: #c8b8a2;
    margin: 80px 0 40px 20%;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.9s ease, transform 0.9s ease, color 0.4s ease;
}

.waypoint.visible {
    opacity: 1;
    transform: translateX(0);
}

.waypoint:hover {
    color: #8a7a6a;
}

/* ─── Contemplation Blocks ────────────────────────────────────── */
.contemplation-block {
    max-width: 480px;
    margin: 0 auto 120px 20%;
    padding: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease, transform 1s ease;
}

.contemplation-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.contemplation-block p {
    color: #8a7a6a;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.4em;
}

.contemplation-block p:last-child {
    margin-bottom: 0;
}

/* ─── Main Content Wrapper ────────────────────────────────────── */
#content {
    padding-top: 40px;
    background: #ffffff;
    background: #f7f3ee;
}

/* ─── Section Hints: Paper Edge ─────────────────────────────── */
.contemplation-block::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: #e8e0d4;
    margin-top: 60px;
}

/* ─── Hover brush light ──────────────────────────────────────── */
.contemplation-block p:hover {
    color: #d4c5b0;
    transition: color 0.4s ease;
}

/* ─── Footer: Seal Close ─────────────────────────────────────── */
#footer {
    background: #f7f3ee;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
}

#seal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #c8b8a2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 120px auto 80px;
    cursor: default;
    transition: border-color 0.5s ease, transform 0.6s ease;
    opacity: 0;
    transform: scale(0.85);
}

#seal.visible {
    opacity: 1;
    transform: scale(1);
}

#seal:hover {
    border-color: #a0522d;
    transform: scale(1.08);
}

#seal-initials {
    font-family: 'Cormorant', serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: #a0522d;
    letter-spacing: 0.06em;
    line-height: 1;
    user-select: none;
    transition: color 0.5s ease;
}

#seal:hover #seal-initials {
    color: #2c2420;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    #hero {
        padding-left: 10%;
        padding-bottom: 30vh;
    }

    .waypoint {
        margin-left: 10%;
    }

    .contemplation-block {
        margin-left: 10%;
        margin-right: 10%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    #hero {
        padding-left: 8%;
    }

    .waypoint {
        margin-left: 8%;
    }

    .contemplation-block {
        margin-left: 8%;
        margin-right: 8%;
    }
}
