/* monopole.one - Minimalist Japanese Aesthetic */

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

/* Custom Properties */
:root {
    --warm-white: #F8F6F2;
    --ink-black: #1A1A1A;
    --ink-mid: #4A4A4A;
    --ink-light: #8A8A8A;
    --wash-gray: #C0C0C0;
    --paper-warm: #F0EDE8;
    --enso-stroke: #2A2A2A;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--warm-white);
    color: var(--ink-mid);
    font-family: 'Noto Serif', serif;
    font-weight: 300;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Single-Column Constraint */
.content-section,
.closing {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 48px);
}

/* Hero / Opening Viewport */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--warm-white);
}

.hero-enso {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 30vw, 360px);
    height: clamp(200px, 30vw, 360px);
    opacity: 0.08;
    pointer-events: none;
}

.enso-hero {
    width: 100%;
    height: 100%;
}

.logotype {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--ink-black);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: logotypeFadeIn 1.5s ease forwards;
    animation-delay: 0.3s;
    position: relative;
    z-index: 1;
}

.scroll-hint {
    position: absolute;
    bottom: clamp(30px, 5vh, 60px);
    opacity: 0;
    animation: hintFadeIn 1s ease forwards;
    animation-delay: 3s;
}

.scroll-hint .annotation {
    display: block;
}

/* Headings */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--ink-black);
    letter-spacing: 0.03em;
    margin-bottom: 1.5em;
}

/* Body Text */
.body-text {
    color: var(--ink-mid);
    margin-bottom: 3em;
}

/* Annotations */
.annotation {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(10px, 0.7vw, 12px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.annotation-light {
    color: var(--wash-gray);
    margin-top: 0.8em;
}

/* Fade-Reveal Sections */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Section Spacing (Ma) */
.content-section {
    margin-bottom: 15vh;
}

/* Enso Dividers */
.enso-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15vh;
    padding: 5vh 0;
}

.enso-marker {
    width: clamp(50px, 6vw, 80px);
    height: clamp(50px, 6vw, 80px);
}

.enso-final {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
}

/* Enso Path Animation */
.enso-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease;
}

.section.visible .enso-path {
    stroke-dashoffset: 0;
}

/* Hero Enso Animation */
.enso-hero-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawEnso 2s ease forwards;
    animation-delay: 0.8s;
}

/* Ink-Wash Illustrations */
.inkwash-illustration {
    margin: 3em 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.section.visible .inkwash-illustration {
    opacity: 1;
}

.inkwash-svg {
    width: 100%;
    height: auto;
    max-height: 200px;
}

/* Closing / Footer */
.closing {
    text-align: center;
    padding-top: 5vh;
    padding-bottom: 15vh;
}

.closing .annotation {
    display: block;
}

/* Keyframe Animations */
@keyframes logotypeFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hintFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

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

/* Selection Style */
::selection {
    background-color: var(--paper-warm);
    color: var(--ink-black);
}

/* Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--warm-white);
}

::-webkit-scrollbar-thumb {
    background: var(--wash-gray);
    border-radius: 2px;
}

/* Responsive - Maintain Stillness */
@media (max-width: 768px) {
    .content-section {
        margin-bottom: 10vh;
    }

    .enso-divider {
        margin-bottom: 10vh;
        padding: 3vh 0;
    }

    .inkwash-svg {
        max-height: 150px;
    }
}
