/* yesang.xyz - Zen Art Gallery */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-warm: #FBF8F4;
    --grid-line: rgba(42, 32, 64, 0.06);
    --candy-pink: #F070A0;
    --candy-lavender: #A070F0;
    --candy-mint: #40D8A0;
    --candy-yellow: #F0D040;
    --text-dark: #2A2040;
    --text-body: #3A3050;
    --text-label: #6A5080;
    --line-illust: rgba(42, 32, 64, 0.3);
}

body {
    background: var(--bg-warm);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Grid Scaffold */
.grid-scaffold {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: gridFadeIn 0.6s ease forwards 0.2s;
    background:
        repeating-linear-gradient(90deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent clamp(60px, 8vw, 100px)),
        repeating-linear-gradient(0deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent clamp(60px, 8vw, 100px));
}
@keyframes gridFadeIn { to { opacity: 1; } }

/* Gallery Canvas */
.gallery-canvas {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
    z-index: 1;
}

/* Art Blocks */
.art-block {
    max-width: 520px;
    padding: 24px;
    margin-bottom: 60px;
    border-left: 4px solid var(--candy-pink);
    position: relative;
    background: var(--bg-warm);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
}
.art-block.visible { opacity: 1; }

.offset-right { margin-left: auto; margin-right: 5%; }
.offset-left { margin-left: 5%; }

.border-pink { border-left-color: var(--candy-pink); }
.border-lavender { border-left-color: var(--candy-lavender); }
.border-mint { border-left-color: var(--candy-mint); }
.border-yellow { border-left-color: var(--candy-yellow); }

/* Hover snap to grid */
.art-block:hover { transform: translate(0, 0) !important; }

/* Typography */
.block-label {
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-label);
    display: block;
    margin-bottom: 0.5rem;
}
.block-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.wonk-title {
    animation: wonkIn 0.8s ease forwards 0.5s;
    font-variation-settings: 'SOFT' 0, 'WONK' 0;
}
@keyframes wonkIn {
    to { font-variation-settings: 'SOFT' 100, 'WONK' 1; }
}
.block-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.75;
}

/* Line Illustrations */
.line-illust {
    display: block;
    width: 160px;
    margin: -20px auto 40px;
    position: relative;
    z-index: 1;
}
.draw-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.2s ease, stroke-width 0.2s ease;
}
.line-illust.visible .draw-line { stroke-dashoffset: 0; }
.line-illust:hover .draw-line { stroke-width: 2.5; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}
.footer-text {
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-label);
}

@media (max-width: 768px) {
    .art-block { max-width: 100%; }
    .offset-right, .offset-left { margin-left: 2%; margin-right: 2%; }
    .gallery-canvas { padding: 4rem 1.5rem; }
}
