/* martial.quest - Japanese Zen Portfolio */
/* Colors: #1A202C, #2D3748, #4A5568, #718096, #94A3B8, #F7F6F3 */
/* Fonts: Noto Serif JP, Noto Sans JP */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    color: #4A5568;
    background: #F7F6F3;
    overflow-x: hidden;
}

/* Rice paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.008) 2px,
            rgba(0, 0, 0, 0.008) 4px
        );
    pointer-events: none;
    z-index: 1000;
}

/* Vertical Brush Stroke Line */
.brush-line {
    position: fixed;
    left: 8%;
    top: 0;
    width: 4px;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

#brushPath {
    stroke-dasharray: 3200;
    stroke-dashoffset: 3200;
    opacity: 0.4;
}

#brushPath.drawn {
    animation: drawBrush 3s ease-in-out forwards;
}

@keyframes drawBrush {
    to {
        stroke-dashoffset: 0;
    }
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Opening Void */
.void-section {
    min-height: 100vh;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 0 15vh 8%;
}

.title-container {
    opacity: 0;
}

.title-container.visible {
    animation: slowFadeIn 2s ease-in forwards;
}

@keyframes slowFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.site-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 72px;
    color: #1A202C;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.site-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 18px;
    color: #718096;
    letter-spacing: 0.15em;
    margin-top: 8px;
}

/* Breathing Sections */
.breathing-section {
    min-height: 100vh;
}

.breathing-section-half {
    min-height: 50vh;
}

/* Martial Art Sections */
.art-section {
    min-height: 100vh;
    padding: 10vh 8% 10vh calc(8% + 60px);
    align-items: flex-start;
}

.art-content {
    max-width: 640px;
}

.art-header {
    margin-bottom: 40px;
}

.art-origin {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #94A3B8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.mono-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

.art-name {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 56px;
    color: #1A202C;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.art-name-latin {
    display: block;
    font-size: 36px;
    color: #2D3748;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.art-body {
    margin-bottom: 48px;
}

.art-philosophy {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 18px;
    color: #2D3748;
    line-height: 1.9;
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 1px solid #94A3B8;
}

.art-description {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.8;
}

.art-meta {
    display: flex;
    gap: 48px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 10px;
    color: #94A3B8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.meta-value {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 14px;
    color: #2D3748;
}

/* Closing Section */
.closing-void {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.closing-content {
    text-align: center;
}

.closing-text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 18px;
    color: #718096;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.closing-kanji {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: 120px;
    color: #1A202C;
    opacity: 0.15;
    line-height: 1;
}

/* Fade Reveal Animation */
.fade-reveal {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-reveal.visible {
    opacity: 1;
}

/* Hover on art sections - subtle background shift */
.art-section {
    transition: background-color 0.8s ease;
}

.art-section:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    background: #2D3748;
    opacity: 0.3;
    z-index: 100;
    transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 42px;
    }

    .art-name {
        font-size: 36px;
    }

    .art-name-latin {
        font-size: 24px;
    }

    .art-section {
        padding: 10vh 6% 10vh calc(6% + 40px);
    }

    .void-section {
        padding-left: 6%;
    }

    .brush-line {
        left: 4%;
    }

    .art-meta {
        flex-direction: column;
        gap: 24px;
    }

    .art-philosophy {
        font-size: 16px;
    }

    .closing-kanji {
        font-size: 80px;
    }
}
