/* mujun.works — Wabi-Sabi Ceramicist Studio */

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

:root {
    --cream: #ede4d4;
    --kiln-ash: #d8cfc0;
    --sand: #e3d5c1;
    --clay: #a67c52;
    --gold: #c4956a;
    --earth: #7a6b57;
    --ash-dark: #5c4f40;
    --charcoal: #3b2f20;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: 'Lora', serif;
    font-size: 17px;
    line-height: 1.85;
    overflow-x: hidden;
}

/* SVG defs hidden */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Section base */
.section {
    position: relative;
    padding: 80px 24px;
    max-width: 700px;
    margin: 0 auto;
}

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

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

/* Section heading */
.section-heading {
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 40px;
}

/* Kiln Door Section */
#kiln-door {
    min-height: 100vh;
    max-width: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.crackle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, var(--kiln-ash) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, var(--kiln-ash) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, var(--sand) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 50%, var(--kiln-ash) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, var(--sand) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 70%, var(--kiln-ash) 0%, transparent 60%);
    background-color: var(--cream);
}

.kiln-cracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crack {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    opacity: 0.4;
}

.crack.animate {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.5s ease-out;
}

.crack-2.animate {
    transition-delay: 0.3s;
}

.crack-3.animate {
    transition-delay: 0.6s;
}

.kiln-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.kiln-content.visible {
    opacity: 1;
}

.kiln-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.kiln-subtitle {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--earth);
}

/* Philosophy */
#philosophy {
    padding: 120px 24px;
}

.wobble-card {
    padding: 32px;
    position: relative;
    clip-path: url(#wobble-clip);
    background: var(--kiln-ash);
}

.philosophy-text {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.85;
}

.philosophy-source {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--earth);
    letter-spacing: 0.05em;
}

/* Works */
#works {
    max-width: 800px;
    padding: 120px 24px;
}

.work-piece {
    margin-bottom: 60px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.work-piece.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-piece.offset-right {
    margin-left: auto;
}

.work-piece.offset-left {
    margin-right: auto;
}

.work-card {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.work-texture {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 4px;
}

.texture-1 {
    background:
        radial-gradient(circle at 30% 40%, var(--clay) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, var(--gold) 0%, transparent 35%),
        linear-gradient(135deg, var(--sand), var(--kiln-ash));
}

.texture-2 {
    background:
        radial-gradient(circle at 50% 50%, var(--earth) 0%, transparent 50%),
        linear-gradient(180deg, var(--kiln-ash), var(--sand));
}

.texture-3 {
    background:
        linear-gradient(45deg, var(--kiln-ash) 25%, transparent 25%),
        linear-gradient(-45deg, var(--sand) 25%, transparent 25%),
        radial-gradient(circle at 50% 50%, var(--gold) 0%, transparent 30%),
        var(--cream);
}

.work-info {
    flex: 1;
}

.work-title {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.work-desc {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--ash-dark);
    line-height: 1.7;
    margin-bottom: 8px;
}

.work-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--earth);
    letter-spacing: 0.05em;
}

/* Kintsugi Interlude */
#kintsugi {
    max-width: none;
    width: 100%;
    padding: 80px 24px;
    text-align: center;
}

.kintsugi-path {
    width: 80%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

.gold-line {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 2.5s ease-in-out;
}

.gold-line.animate {
    stroke-dashoffset: 0;
}

.kintsugi-text {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
}

/* Process */
#process {
    padding: 120px 24px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-marker {
    font-size: 0.8rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 6px;
}

.step-text {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.8;
}

/* Footer */
#site-footer {
    padding: 40px 24px;
    border-top: 1px solid var(--kiln-ash);
    max-width: 700px;
    margin: 60px auto 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.footer-philosophy {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--earth);
}

/* Responsive */
@media (max-width: 768px) {
    .section.offset-left,
    .section.offset-right {
        margin-left: auto;
        margin-right: auto;
    }

    .work-card {
        flex-direction: column;
    }

    .work-texture {
        width: 100%;
        height: 120px;
    }

    .work-piece.offset-right,
    .work-piece.offset-left {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
