/* === miris.day — Japanese-minimal sketchbook === */

:root {
    --sumi: #2d2a26;
    --indigo: #3d4a5c;
    --clay: #a89279;
    --celadon: #b8cfc9;
    --cream: #f7f1e8;
    --flax: #c8a87c;
    --vermilion: #d4764e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--sumi);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Washi texture overlay */
#washi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8vh 8vw;
}

.section-inner {
    max-width: 600px;
    width: 100%;
}

.offset-right {
    margin-left: auto;
    margin-right: 12vw;
}

.offset-left {
    margin-right: auto;
    margin-left: 12vw;
}

/* === Threshold === */
#threshold {
    height: 100vh;
    flex-direction: column;
}

.threshold-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.enso-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ensoReveal 3s ease-out 0.5s forwards;
}

.logo-text {
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.12em;
    color: var(--sumi);
    opacity: 0;
    animation: fadeIn 2s ease-out 1.5s forwards;
    position: relative;
    z-index: 1;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    letter-spacing: 0.2em;
    color: var(--clay);
    text-transform: lowercase;
    opacity: 0;
    animation: fadeIn 2s ease-out 2.2s forwards;
}

.scroll-hint {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 2s ease-out 3s forwards, gentleBob 3s ease-in-out 5s infinite;
}

.scroll-kanji {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.2rem;
    color: var(--clay);
    opacity: 0.4;
}

/* === Section Numbers & Titles === */
.section-number {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--clay);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.08em;
    color: var(--sumi);
    margin-bottom: 2.5rem;
}

/* === Today's Sketch === */
.sketch-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sketch-art {
    opacity: 0.85;
}

.sketch-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.9;
    color: var(--indigo);
    max-width: 420px;
    opacity: 0.7;
}

/* === Studio Notes === */
.notes-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.note-card {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid var(--clay);
    opacity: 0.25;
}

.note-card.visible {
    opacity: 1;
    border-left-color: var(--clay);
}

.enso-small {
    position: absolute;
    top: -10px;
    right: -20px;
}

.note-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--sumi);
    margin-bottom: 0.5rem;
}

.note-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--clay);
    letter-spacing: 0.05em;
}

/* === Color Study === */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.swatch-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--swatch-color);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.swatch:hover .swatch-circle {
    transform: scale(1.2);
}

.swatch-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--clay);
    letter-spacing: 0.06em;
}

.study-caption {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--indigo);
    opacity: 0.6;
    max-width: 400px;
    line-height: 1.8;
}

/* === Process Timeline === */
.process-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--clay), transparent);
    opacity: 0.3;
}

.timeline-entry {
    position: relative;
    padding-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--vermilion);
    background: var(--cream);
    transform: translateX(0.5px);
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--clay);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--sumi);
    max-width: 380px;
}

/* === Seal === */
.section-seal {
    min-height: 80vh;
    flex-direction: column;
}

.seal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.enso-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hanko {
    width: 56px;
    height: 56px;
    border: 2px solid var(--vermilion);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hanko-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    color: var(--vermilion);
    font-weight: 600;
}

.seal-message {
    font-family: 'Shippori Mincho', serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    letter-spacing: 0.06em;
    color: var(--sumi);
    opacity: 0.7;
    text-align: center;
    position: relative;
    z-index: 1;
}

.seal-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--clay);
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* === Floating Ensō === */
.enso-float {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.enso-float-1 {
    top: 15vh;
    right: 5vw;
}

.enso-float-2 {
    top: 55vh;
    left: -3vw;
}

.enso-float-3 {
    bottom: 10vh;
    right: 15vw;
}

/* === Animations === */
@keyframes ensoReveal {
    0% {
        opacity: 0;
        stroke-dashoffset: 600;
    }
    100% {
        opacity: 0.35;
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gentleBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Scroll reveal base */
.section-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* === Responsive === */
@media (max-width: 768px) {
    .offset-right,
    .offset-left {
        margin-left: auto;
        margin-right: auto;
        padding: 0 6vw;
    }

    .section {
        padding: 6vh 5vw;
    }

    .color-swatches {
        gap: 1.2rem;
    }

    .enso-float {
        display: none;
    }
}
