/* p9r.st - Wabi-Sabi Ceramic Vessel */

:root {
    --clay: #E0D8D0;
    --glaze: #D4C8B8;
    --kiln: #3A3230;
    --text-body: #3A3230;
    --text-light: #E8E0D8;
    --crack: #A89888;
    --vessel-ghost: #B8A898;
    --glaze-sheen: #C8B8A0;
    --shadow: #2A2420;
}

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

body {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 2.0;
    color: var(--text-body);
    background-color: var(--clay);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    transition: background-color 1.5s ease;
    overflow-x: hidden;
}

/* Sections */
section {
    position: relative;
}

/* --- ENTRANCE --- */
#entrance {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entrance-space {
    height: 40vh;
}

.site-title {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: var(--text-body);
    text-align: center;
    margin-left: -5px;
}

.entrance-gap {
    height: 40vh;
}

/* Crack lines */
.crack-line {
    display: block;
    width: clamp(30%, 50%, 60%);
    height: 20px;
    margin: clamp(80px, 15vh, 120px) auto;
    overflow: visible;
}

.crack-line path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 2s ease;
}

.crack-line.visible path {
    stroke-dashoffset: 0;
}

.crack-light path {
    stroke: rgba(168, 152, 136, 0.6);
}

/* --- THE FORM --- */
#the-form {
    padding-bottom: 2rem;
}

.form-block {
    margin-bottom: clamp(80px, 15vh, 120px);
    padding: 0;
    position: relative;
}

.form-block.narrow {
    width: 80%;
}

.form-block p {
    color: var(--text-body);
}

/* --- THE GLAZE --- */
#the-glaze {
    position: relative;
    padding-top: clamp(80px, 15vh, 120px);
    padding-bottom: 2rem;
}

.vessel-watermark {
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    font-size: 15rem;
    color: var(--vessel-ghost);
    opacity: 0.08;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

.glazed {
    position: relative;
    z-index: 1;
}

.glazed::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* --- THE FIRING --- */
#the-firing {
    padding-top: clamp(80px, 15vh, 120px);
    padding-bottom: clamp(80px, 15vh, 120px);
}

.dark-text p {
    color: var(--text-light);
}

/* --- THE SETTLING --- */
#the-settling {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.settling-space {
    height: 20vh;
}

.settling-text {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 0.04em;
    color: var(--text-body);
    text-align: center;
}

.settling-end {
    height: 30vh;
}
