/* ===========================================
   foryou.reviews — wabi-sabi ceramics studio
   =========================================== */

/* --- Custom Properties --- */
:root {
    --raw-bisque: #F6F0E8;
    --bisque-cream: #E8DDD4;
    --kiln-umber: #5C4033;
    --dark-clay: #3E2C23;
    --celadon-amber: #C4956A;
    --sandstone: #9B7E6B;
    --reduction-black: #2A1F1A;
    --shino-honey: #D4A574;
    --ease-organic: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--raw-bisque);
    color: var(--dark-clay);
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
    /* Breathing Texture - faint dot pattern like unglazed stoneware */
    background-image: radial-gradient(circle, rgba(155, 126, 107, 0.02) 1px, transparent 1px);
    background-size: 8px 8px;
}

/* --- Threshold Section --- */
#threshold {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#contour-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s var(--ease-organic);
}

#contour-lines.visible {
    opacity: 1;
}

.contour {
    fill: none;
    stroke: var(--celadon-amber);
    stroke-width: 1.5;
    opacity: 0;
    transition: opacity 2s var(--ease-organic);
}

.contour.visible {
    opacity: 0.03;
}

/* Staggered contour animation - center lines first, radiating outward */
.c1 { transition-delay: 0s; }
.c2 { transition-delay: 0.2s; }
.c3 { transition-delay: 0.1s; }
.c4 { transition-delay: 0.35s; }
.c5 { transition-delay: 0.15s; }
.c6 { transition-delay: 0.4s; }
.c7 { transition-delay: 0.25s; }
.c8 { transition-delay: 0.05s; }

#threshold-content {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: opacity 0.5s var(--ease-organic);
}

#site-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 64px;
    letter-spacing: 0.12em;
    color: var(--kiln-umber);
    margin-bottom: 24px;
    /* Subtle glow behind the site name using Shino Honey */
    text-shadow: 0 0 80px rgba(212, 165, 116, 0.15);
}

#site-name .letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 200ms var(--ease-organic);
}

#site-name .letter.visible {
    opacity: 1;
}

#subtitle {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sandstone);
    opacity: 0;
    transition: opacity 800ms var(--ease-organic);
}

#subtitle.visible {
    opacity: 1;
}

/* --- The Path --- */
#path {
    position: relative;
    padding: 40px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Kiln Marks --- */
.kiln-marks {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* Variable spacing and offset for each kiln mark cluster */
.km-1 { margin-left: -120px; padding: 60px 0 50px; }
.km-2 { margin-left: 80px; padding: 50px 0 70px; }
.km-3 { margin-left: -60px; padding: 70px 0 40px; }
.km-4 { margin-left: 100px; padding: 40px 0 60px; }
.km-5 { margin-left: -40px; padding: 50px 0 50px; }

/* --- Review Tiles --- */
.review-tile {
    position: relative;
    background: var(--bisque-cream);
    border: 1px solid rgba(196, 149, 106, 0.3);
    border-radius: var(--br-tl) var(--br-tr) var(--br-br) var(--br-bl);
    box-shadow: 0 2px 12px rgba(42, 31, 26, 0.06);
    max-width: 640px;
    width: 100%;
    padding: 48px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 700ms var(--ease-organic), transform 700ms var(--ease-organic);
    overflow: hidden;
}

.review-tile.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glaze Drip - top edge pseudo-element */
.review-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, rgba(196, 149, 106, 0.8), rgba(196, 149, 106, 0.2));
    border-radius: var(--br-tl) var(--br-tr) 0 0;
}

/* Alternate glaze direction on even tiles */
.tile-2::before,
.tile-4::before {
    background: linear-gradient(to left, rgba(196, 149, 106, 0.8), rgba(196, 149, 106, 0.2));
}

/* Organic offset for tiles - meandering path left-right oscillation */
.tile-1 { margin-left: -60px; }
.tile-2 { margin-left: 80px; transition-duration: 800ms; }
.tile-3 { margin-left: -40px; transition-duration: 650ms; }
.tile-4 { margin-left: 60px; transition-duration: 900ms; }
.tile-5 { margin-left: -80px; transition-duration: 750ms; }

.tile-category {
    display: block;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sandstone);
    margin-bottom: 16px;
}

.tile-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 32px;
    color: var(--kiln-umber);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.tile-body {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    color: var(--dark-clay);
    margin-bottom: 32px;
}

.tile-attribution {
    display: block;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--sandstone);
}

/* Kintsugi Lines */
.kintsugi-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* --- The Close --- */
#close {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    padding-top: 20vh;
    position: relative;
}

#closing-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 24px;
    color: var(--sandstone);
    text-align: center;
    transition: opacity 0.3s var(--ease-organic);
}

/* --- Scroll Progress Indicator --- */
#scroll-progress {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bisque-cream);
    border: 1px solid var(--celadon-amber);
    z-index: 100;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #site-name {
        font-size: 40px;
    }

    .review-tile {
        padding: 32px;
        max-width: 100%;
    }

    .tile-title {
        font-size: 26px;
    }

    .tile-body {
        font-size: 16px;
    }

    .tile-1, .tile-2, .tile-3, .tile-4, .tile-5 {
        margin-left: 0;
    }

    .km-1, .km-2, .km-3, .km-4, .km-5 {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    #site-name {
        font-size: 32px;
    }

    .review-tile {
        padding: 24px;
    }

    .tile-title {
        font-size: 22px;
    }

    .tile-body {
        font-size: 15px;
        line-height: 1.65;
    }
}
