/* ============================================================
   rinji.net — 臨時 — Wabi-sabi Kintsugi Design
   Colors: #f7f3ed (rice paper), #2c2c2c (ink stone),
           #b8943e (kintsugi gold), #6b8f71 (patina green),
           #9c8572 (weathered clay), #fafaf7 (cloud white)
   Fonts: Cormorant Garamond (display), Noto Serif JP (body),
          Zen Kaku Gothic New (accent)
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #f7f3ed;
    color: #2c2c2c;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    line-height: 2.0;
    letter-spacing: 0.03em;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Vignette Fixed Overlays --- */
.vignette-top,
.vignette-bottom {
    position: fixed;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    z-index: 100;
}

.vignette-top {
    top: 0;
    background: linear-gradient(to bottom, #f7f3ed 0%, transparent 100%);
}

.vignette-bottom {
    bottom: 0;
    background: linear-gradient(to top, #f7f3ed 0%, transparent 100%);
}

/* --- Stepping Stones Side Navigation --- */
.stepping-stones {
    position: fixed;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 50;
}

.stone-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: #9c8572;
    opacity: 0.4;
    z-index: -1;
}

.stone {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #9c8572;
    border: 1.5px solid #b8943e;
    margin: 18px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    position: relative;
}

.stone::after {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #9c8572;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.stone:hover {
    background-color: #b8943e;
    transform: scale(1.3);
}

.stone:hover::after {
    opacity: 1;
}

.stone.active {
    background-color: #b8943e;
}

/* --- Main Column --- */
.main-column {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* --- Sections --- */
.section {
    position: relative;
    padding: 15vh 0;
    overflow: visible;
}

/* Ink wash texture backgrounds via CSS radial gradients */
.section-intro {
    background:
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(44,44,44,0.03) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 70%, rgba(44,44,44,0.025) 0%, transparent 70%);
}

.section-nature {
    background:
        radial-gradient(ellipse 70% 50% at 30% 40%, rgba(44,44,44,0.03) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 75% 65%, rgba(44,44,44,0.02) 0%, transparent 70%);
}

.section-practice {
    background:
        radial-gradient(ellipse 55% 45% at 65% 35%, rgba(44,44,44,0.025) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 25% 60%, rgba(44,44,44,0.03) 0%, transparent 70%);
}

.section-kintsugi {
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(184,148,62,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(44,44,44,0.02) 0%, transparent 70%);
}

.section-contact {
    background:
        radial-gradient(ellipse 70% 60% at 40% 50%, rgba(44,44,44,0.025) 0%, transparent 70%);
}

/* --- Kanji Watermarks --- */
.kanji-watermark {
    position: absolute;
    top: 50%;
    left: -20%;
    transform: translateY(-50%);
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 20vw;
    color: #2c2c2c;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.kanji-watermark--right {
    left: auto;
    right: -20%;
    transform: translateY(-50%);
}

/* --- Section Content Blocks --- */
.section-content {
    position: relative;
    z-index: 1;
}

.section-content--offset-left {
    margin-left: -2rem;
    padding-left: 2rem;
}

.section-content--offset-right {
    margin-left: 2rem;
}

/* --- Scroll Reveal --- */
.reveal-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

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

/* --- Typography --- */
.eyebrow {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #9c8572;
    text-transform: lowercase;
    margin-bottom: 1.2rem;
}

.display-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #2c2c2c;
    margin-bottom: 2rem;
    font-style: italic;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.25;
    letter-spacing: 0em;
    color: #2c2c2c;
    margin-bottom: 1.8rem;
    font-style: italic;
}

.body-text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    font-size: 1.125rem;
    line-height: 2.0;
    letter-spacing: 0.03em;
    color: #2c2c2c;
    margin-bottom: 1.4rem;
}

.body-text em {
    font-style: italic;
    color: #9c8572;
    font-weight: 300;
}

.jp-text {
    font-size: 1rem;
    color: #9c8572;
    letter-spacing: 0.06em;
}

/* --- Pull Quote --- */
.pull-quote {
    border-left: 1px solid #b8943e;
    padding: 1.2rem 0 1.2rem 2rem;
    margin: 2.5rem 0 2.5rem -0.5rem;
    position: relative;
}

.pull-quote::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #b8943e 20%, #b8943e 80%, transparent);
}

.pull-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: #2c2c2c;
    font-style: italic;
}

/* --- Kintsugi SVG Lines --- */
.kintsugi-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    margin-bottom: -2px;
}

.kintsugi-svg {
    display: block;
    overflow: visible;
}

.kintsugi-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: none;
}

.kintsugi-path.is-drawn {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2000ms ease-in-out;
}

/* --- Kintsugi Ornament (inline) --- */
.kintsugi-ornament {
    margin-top: 2.5rem;
    opacity: 0.7;
}

.kintsugi-ornament-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.kintsugi-ornament-path.is-drawn {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2000ms ease-in-out;
}

/* --- Full-Width Interruptions --- */
.interruption {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.interruption--kanji {
    height: 12vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8vw;
    overflow: hidden;
}

.interruption-kanji {
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    font-size: 20vw;
    color: #2c2c2c;
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.interruption--band {
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #9c8572 20%, #9c8572 80%, transparent 100%);
    opacity: 0.3;
    margin: 6vh 0;
}

.interruption--band-alt {
    background: linear-gradient(to right, transparent 0%, #b8943e 30%, #b8943e 70%, transparent 100%);
    opacity: 0.2;
}

/* --- Contact --- */
.contact-links {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-link {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: #9c8572;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
    color: #6b8f71;
    border-bottom-color: #6b8f71;
}

.contact-sep {
    color: #9c8572;
    opacity: 0.5;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* --- Footer --- */
.site-footer {
    padding: 8vh 0 15vh;
    text-align: center;
    position: relative;
}

.footer-kintsugi {
    margin-bottom: 3rem;
    overflow: hidden;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #9c8572;
    font-style: italic;
    margin-bottom: 0.6rem;
}

.footer-meta {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #9c8572;
    opacity: 0.6;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal-block {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .kintsugi-path {
        stroke-dashoffset: 0;
        transition: none;
    }

    .kintsugi-ornament-path {
        stroke-dashoffset: 0;
        transition: none;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .stepping-stones {
        display: none;
    }

    .main-column {
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 10vh 0;
    }

    .section-content--offset-left,
    .section-content--offset-right {
        margin-left: 0;
    }

    .kanji-watermark {
        font-size: 40vw;
        opacity: 0.03;
    }

    .body-text {
        font-size: 1rem;
    }

    .pull-quote {
        padding-left: 1.2rem;
        margin-left: 0;
    }
}
