/* simulai.xyz - zen aesthetic, organic-flow, oversized typography */

:root {
    --sand-gray: #e8e2da;
    --stone-dark: #3a3632;
    --marble-cool: #8a8880;
    --ink-wash: #4a4640;
    --warm-cream: #f4f0ea;
    --subtle-sage: #7a8a74;
    --earth-rust: #8a6a52;
    --raked-line: #d4cec6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--sand-gray);
    color: var(--stone-dark);
    font-family: "Newsreader", Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.9;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.ja { font-family: "Noto Sans JP", "Newsreader", serif; font-weight: 300; letter-spacing: 0.08em; }

/* ============== HERO ============== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6vw;
    background:
        repeating-linear-gradient(
            85deg,
            transparent 0,
            transparent 7px,
            rgba(212, 206, 198, 0.18) 7px,
            rgba(212, 206, 198, 0.18) 8px
        ),
        var(--sand-gray);
    overflow: hidden;
}

.hero__center {
    text-align: center;
    position: relative;
}

.hero__char {
    font-family: "Noto Sans JP", "Instrument Serif", serif;
    font-weight: 300;
    font-size: clamp(140px, 22vw, 320px);
    line-height: 0.95;
    color: var(--stone-dark);
    margin-bottom: 28px;
    opacity: 0;
    animation: hero-in 1500ms ease-in 1000ms forwards;
}

@keyframes hero-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.hero__sub {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
    color: var(--marble-cool);
    letter-spacing: 0.18em;
    opacity: 0;
    animation: hero-in 1000ms ease-in 2500ms forwards;
}

/* ============== FLOW SECTIONS ============== */

.flow {
    position: relative;
    padding: 18vh 0;
    width: var(--width);
    margin-left: var(--offset);
    opacity: 0;
    filter: blur(1px);
    transition: opacity 800ms ease, filter 800ms ease;
}

.flow.is-in {
    opacity: 1;
    filter: blur(0);
}

.flow--marble {
    position: relative;
}

.flow--marble::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: 8vh -4vw;
    background:
        repeating-linear-gradient(
            128deg,
            transparent 0px,
            transparent 80px,
            rgba(58, 54, 50, 0.04) 80px,
            rgba(58, 54, 50, 0.04) 82px
        ),
        repeating-linear-gradient(
            115deg,
            transparent 0px,
            transparent 140px,
            rgba(58, 54, 50, 0.03) 140px,
            rgba(58, 54, 50, 0.03) 141px
        ),
        linear-gradient(135deg, var(--warm-cream) 0%, rgba(244, 240, 234, 0.7) 100%);
    z-index: -1;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(58, 54, 50, 0.04);
}

.shape-marker {
    width: 24px;
    height: 24px;
    margin-bottom: 36px;
    opacity: 0.85;
}

.shape-marker svg { width: 100%; height: 100%; display: block; }

.flow__small {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--marble-cool);
    margin-bottom: 18px;
    text-transform: lowercase;
}

.flow__lede {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.7;
    color: var(--stone-dark);
    font-style: italic;
    max-width: 38ch;
}

.flow__title {
    font-family: "Instrument Serif", "Newsreader", serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: 0.005em;
    color: var(--ink-wash);
    margin-bottom: 28px;
    max-width: 24ch;
}

.flow__body {
    color: var(--stone-dark);
    margin-bottom: 18px;
    max-width: 56ch;
}

.flow__body:last-child { margin-bottom: 0; }

/* ============== STUDY ============== */

.study {
    margin-top: 36px;
    border-top: 1px solid rgba(58, 54, 50, 0.18);
}

.study__row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(58, 54, 50, 0.12);
    align-items: baseline;
}

.study__num {
    font-family: "Noto Sans JP", serif;
    font-weight: 300;
    font-size: clamp(36px, 4vw, 56px);
    color: var(--ink-wash);
    line-height: 1;
    text-align: right;
    padding-right: 8px;
    border-right: 1px solid rgba(58, 54, 50, 0.18);
}

.study__title {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--ink-wash);
    margin-bottom: 8px;
    line-height: 1.15;
}

.study__body {
    color: var(--stone-dark);
    max-width: 50ch;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.85;
}

@media (max-width: 600px) {
    .study__row { grid-template-columns: 56px 1fr; gap: 18px; }
}

/* ============== FINAL ============== */

.flow--final {
    text-align: center;
    padding-top: 24vh;
    padding-bottom: 12vh;
}

.flow__char-small {
    font-family: "Noto Sans JP", serif;
    font-weight: 300;
    font-size: clamp(56px, 8vw, 110px);
    color: var(--ink-wash);
    margin-bottom: 22px;
    line-height: 1;
}

.flow__final-line {
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(18px, 1.8vw, 22px);
    color: var(--marble-cool);
    margin-bottom: 18px;
    letter-spacing: 0.08em;
}

.flow--final .flow__small {
    text-align: center;
    margin: 0 auto;
    max-width: 36ch;
    font-style: italic;
    color: var(--marble-cool);
    text-transform: none;
    letter-spacing: 0.08em;
}

/* ============== FOOTER ============== */

.footer {
    padding: 14vh 6vw 12vh;
    text-align: center;
    background:
        repeating-linear-gradient(
            85deg,
            transparent 0,
            transparent 7px,
            rgba(212, 206, 198, 0.18) 7px,
            rgba(212, 206, 198, 0.18) 8px
        ),
        var(--sand-gray);
}

.footer__line {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(58, 54, 50, 0.4), transparent);
    margin: 0 auto 36px;
}

.footer__name {
    font-family: "Noto Sans JP", serif;
    font-weight: 300;
    font-size: clamp(48px, 6vw, 80px);
    color: var(--stone-dark);
    line-height: 1;
    margin-bottom: 22px;
}

.footer__sig {
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
    color: var(--marble-cool);
    letter-spacing: 0.12em;
}

/* ============== RESPONSIVE FLOW WIDTHS ============== */

@media (max-width: 800px) {
    .flow {
        width: 88% !important;
        margin-left: 6% !important;
    }
}
