/* ============================================================
   simai.dev — styles.css
   Palette: Paper Bone #F2EDE3 | Sumi Ink #1C1C18 | Ember Clay #C45C26
            Pale Ember #E8C4A0 | Ash Veil #D9D3C7 | Deep Char #2E2B24
   Fonts: Cormorant Garamond 300 | EB Garamond 400 | Courier Prime 400
   Motifs: ma negative-space | brutalist lines | celestial stars | typewriter
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #F2EDE3;
    color: #1C1C18;
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ---- Star Field (Fixed Constellation in Negative Space) ---- */
#star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: fixed;
    display: block;
    background-color: #E8C4A0;
    opacity: 0.4;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}

.star-focal {
    width: 18px;
    height: 18px;
    opacity: 0.45;
}

.star-accent {
    width: 10px;
    height: 10px;
    opacity: 0.38;
}

.star-scatter {
    width: 6px;
    height: 6px;
    opacity: 0.30;
}

/* ---- Hero Section ---- */
.section-hero {
    position: relative;
    min-height: 128vh;
    background-color: #F2EDE3;
    /* Raked lines texture — stone garden evocation */
    background-image: repeating-linear-gradient(
        15deg,
        transparent,
        transparent 23px,
        rgba(217, 211, 199, 0.12) 23px,
        rgba(217, 211, 199, 0.12) 24px
    );
    z-index: 1;
}

/* ---- Site Header / Domain Anchor ---- */
#site-header {
    position: absolute;
    top: 0;
    left: 18%;
    padding-top: 28px;
    z-index: 10;
}

#domain-name {
    display: block;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: #1C1C18;
}

#catalogue {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#catalogue a {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: #1C1C18;
    text-decoration: none;
    transition: color 200ms ease;
}

#catalogue a:hover {
    color: #C45C26;
}

/* ---- Structural Rule Line ---- */
#structural-rule {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1C1C18;
    z-index: 5;
}

/* ---- Celestial Arc SVG ---- */
#celestial-arc {
    position: absolute;
    top: 0;
    right: 0;
    width: 440px;
    height: 440px;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 2;
    pointer-events: none;
}

#celestial-arc.visible {
    opacity: 1;
}

/* ---- Typewriter Zone ---- */
#typewriter-zone {
    position: absolute;
    top: 72vh;
    left: 18%;
    width: 460px;
    z-index: 10;
}

.koan {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 56px;
    line-height: 1.25;
    color: #1C1C18;
    max-width: 420px;
}

/* ---- Cursor Block ---- */
.cursor-block {
    display: inline-block;
    width: 2px;
    height: 14px;
    background-color: #C45C26;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1.2s step-end infinite;
}

.cursor-block.stopped {
    animation: none;
    opacity: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Content Sections ---- */
.content-section {
    position: relative;
    min-height: 128vh;
    z-index: 1;
}

.content-column {
    position: absolute;
    top: 28vh;
    left: 18%;
    width: 460px;
    max-width: 460px;
}

/* ---- Micro Labels ---- */
.micro-label {
    display: block;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2E2B24;
    margin-bottom: 20px;
}

/* ---- Section Titles ---- */
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 38px;
    line-height: 1.2;
    color: #1C1C18;
    text-transform: lowercase;
    margin-bottom: 32px;
}

/* ---- Pull Quotes ---- */
.pull-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: 26px;
    line-height: 1.35;
    color: #2E2B24;
    margin-bottom: 36px;
    border: none;
    padding: 0;
}

/* ---- Body Text ---- */
.body-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.85;
    color: #2E2B24;
}

.body-text p {
    margin-bottom: 22px;
}

.body-text em {
    font-style: italic;
}

/* ---- Section Divider (Ash Veil line) ---- */
.content-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #D9D3C7;
}

/* ---- Section Void ---- */
.section-void {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---- Contact / Footer Section ---- */
.section-contact {
    position: relative;
    min-height: 64vh;
    z-index: 1;
    border-top: 1px solid #D9D3C7;
}

.section-contact .content-column {
    top: 18vh;
}

.contact-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-line {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #2E2B24;
    line-height: 1.6;
}

.contact-line a {
    color: #1C1C18;
    text-decoration: none;
    transition: color 200ms ease;
}

.contact-line a:hover {
    color: #C45C26;
}

.contact-year {
    color: #D9D3C7;
    margin-top: 16px;
}

/* ---- Scroll-triggered fade for content sections ---- */
.content-section .content-column {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.content-section .content-column.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Section contact always visible ---- */
.section-contact .content-column {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-contact .content-column.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---- No rounded corners, no shadows anywhere ---- */
* {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ---- Responsive: mobile fallback ---- */
@media (max-width: 768px) {
    #site-header {
        left: 24px;
    }

    #typewriter-zone {
        left: 24px;
        width: calc(100vw - 48px);
    }

    .koan {
        font-size: 36px;
    }

    .content-column {
        left: 24px;
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
    }

    #celestial-arc {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 28px;
    }

    .pull-quote {
        font-size: 20px;
    }

    .body-text {
        font-size: 16px;
    }
}
