/* ===================================================
   continu.st — styles.css
   Monochrome, meditative, single-column vertical scroll
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
    --rice-paper: #f7f5f2;
    --sumi-ink: #1c1c1c;
    --worn-stone: #6b6b6b;
    --silver-mist: #8a8a8a;
    --deep-charcoal: #2e2e2e;
    --fog-white: #f7f5f2cc;
    --graphite: #9a9a9a;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'EB Garamond', 'Georgia', serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--rice-paper);
    color: var(--sumi-ink);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
    position: fixed;
    right: 0;
    top: 0;
    width: 1px;
    height: 0%;
    background-color: var(--graphite);
    opacity: 0.3;
    z-index: 1000;
    transition: height 100ms linear;
}

/* --- Entry Screen --- */
.entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--rice-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    pointer-events: none;
}

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

.site-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--sumi-ink);
    opacity: 0;
    transform: translateY(12px);
}

.tagline {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    color: var(--silver-mist);
    margin-top: 40px;
    opacity: 0;
    transform: translateY(12px);
}

/* Entry animation states */
.site-name.animate-in {
    animation: fadeRise 800ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.tagline.animate-in {
    animation: fadeRise 600ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.entry-screen.animate-out {
    animation: entryFadeOut 800ms ease-in-out forwards;
}

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

@keyframes entryFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- Main Column --- */
.main-column {
    width: 38%;
    margin: 0 auto;
    padding-top: clamp(3rem, 8vh, 6rem);
    opacity: 0;
    transition: opacity 600ms ease-in-out;
}

.main-column.visible {
    opacity: 1;
}

/* --- Site Header --- */
.site-header {
    margin-bottom: clamp(6rem, 12vh, 10rem);
}

.header-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--sumi-ink);
    text-decoration: none;
    display: inline-block;
}

.header-name:hover {
    color: var(--deep-charcoal);
}

.header-tagline {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    color: var(--silver-mist);
    margin-top: 40px;
}

/* --- Content Sections --- */
.content-section {
    padding: clamp(6rem, 12vh, 10rem) 0;
    position: relative;
}

.content-section:first-of-type {
    padding-top: 0;
}

/* --- Content Blocks --- */
.content-block {
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    color: var(--sumi-ink);
}

/* --- Section Headings --- */
.section-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--sumi-ink);
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

/* --- Pull Quotes --- */
.pull-quote {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.5;
    letter-spacing: 0.03em;
    font-style: italic;
    color: var(--sumi-ink);
    margin-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--graphite);
    padding-left: clamp(1rem, 2vw, 1.8rem);
}

/* --- Section Dividers --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vh, 3rem) 0;
}

.divider-line {
    position: relative;
    height: 1px;
}

.divider-line::after {
    content: '';
    display: block;
    width: 20%;
    height: 1px;
    background-color: var(--worn-stone);
    opacity: 0.4;
    margin: 0 auto;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 600ms ease-out, opacity 400ms ease-out;
}

.divider-line.revealed::after {
    transform: scaleX(1);
}

.divider-dot {
    position: relative;
    height: 4px;
}

.divider-dot::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--worn-stone);
    opacity: 0.3;
    margin: 0 auto;
}

/* --- Images --- */
.image-container {
    width: 100%;
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

.placeholder-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(0.9) brightness(1.05);
    opacity: 0;
    transition: opacity 800ms ease, filter 1000ms ease;
}

.placeholder-image.landscape {
    aspect-ratio: 3 / 2;
}

.placeholder-image.portrait {
    aspect-ratio: 4 / 5;
}

.placeholder-image.image-revealed {
    opacity: 1;
    filter: grayscale(100%) contrast(0.9) brightness(1.05);
}

.image-caption {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    color: var(--silver-mist);
    margin-top: clamp(0.8rem, 1.5vh, 1.2rem);
}

/* --- Ensou Circle --- */
.ensou-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ensou-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ensou {
    width: 80px;
    height: 80px;
    opacity: 0.25;
}

#ensou-path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    transition: stroke-dashoffset 1200ms ease-in-out;
}

#ensou-path.drawn {
    stroke-dashoffset: 0;
}

/* --- Vertical Text Accent --- */
.vertical-accent-section {
    position: relative;
}

.vertical-accent {
    position: absolute;
    right: -3rem;
    top: clamp(8rem, 16vh, 12rem);
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--worn-stone);
    opacity: 0.15;
    user-select: none;
}

/* --- Links --- */
a {
    color: var(--sumi-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--graphite);
    transition: border-bottom-color 300ms ease;
}

a:hover {
    border-bottom-color: var(--sumi-ink);
    color: var(--deep-charcoal);
}

.header-name {
    border-bottom: none;
}

.header-name:hover {
    border-bottom: none;
}

/* --- Reveal Animation (scroll-triggered) --- */
.reveal-element {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
.site-footer {
    margin-top: clamp(8rem, 16vh, 14rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
    text-align: center;
}

.footer-text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    letter-spacing: 0.06em;
    color: var(--silver-mist);
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
    .main-column {
        width: 85%;
        padding: 0 clamp(1.2rem, 4vw, 2rem);
        padding-top: clamp(3rem, 8vh, 6rem);
    }

    .vertical-accent {
        right: -1.5rem;
        opacity: 0.1;
    }

    .pull-quote {
        font-size: clamp(1.4rem, 4vw, 2rem);
        margin-left: clamp(1rem, 2vw, 1.5rem);
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
    .main-column {
        width: 92%;
        padding: 0 clamp(0.8rem, 3vw, 1.2rem);
        padding-top: clamp(2rem, 6vh, 4rem);
    }

    .content-section {
        padding: clamp(4rem, 8vh, 7rem) 0;
    }

    .site-header {
        margin-bottom: clamp(4rem, 8vh, 7rem);
    }

    .vertical-accent {
        display: none;
    }

    .pull-quote {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        margin-left: 1rem;
        padding-left: 0.8rem;
    }
}
