/* sora.market — a market of emptiness
 * Palette: warm gray-browns within a narrow band
 * Background #F5F2ED, Text primary #2A2725, Text secondary #8A857C
 * Line element #4A4540 (40% opacity), Shell stroke #6B6358
 * Kanji accent #3A3530, Fade zone #E8E4DE
 */

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

html,
body {
    background-color: #F5F2ED;
    color: #2A2725;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

.scroll {
    display: block;
    width: 100%;
}

.alcove {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Generic block (fade target) */
.block {
    position: absolute;
}

.fade {
    opacity: 0;
    transition: opacity 800ms ease-in;
}

.fade.is-visible {
    opacity: 1;
}

/* Typography */
.domain {
    font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 32px;
    color: #2A2725;
    letter-spacing: 0.01em;
}

.domain--small {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #8A857C;
    margin-top: 32px;
}

.annotation {
    font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #8A857C;
    margin-top: 24px;
}

.meditation {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 2.0;
    color: #2A2725;
    max-width: 320px;
}

.kanji {
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    font-weight: 300;
    font-size: 120px;
    line-height: 1;
    letter-spacing: 0;
    color: #3A3530;
}

/* Alcove 1: Name — golden ratio placement
 * 61.8% from top, 38.2% from left
 */
.alcove--name .block--name {
    top: 61.8%;
    left: 38.2%;
    width: 280px;
}

/* Alcove 2: Question — right-aligned at 72% from left, 45% from top */
.alcove--question .block--question {
    top: 45%;
    left: 72%;
    transform: translateX(-100%);
    max-width: 320px;
    text-align: right;
}

.alcove--question .meditation {
    text-align: right;
}

/* Alcove 3: Threshold */
.alcove--threshold .threshold-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 120px;
    background-color: #4A4540;
    opacity: 0.4;
    transform: translate(-50%, -50%);
}

.alcove--threshold .block--threshold-left {
    top: 50%;
    left: 25%;
    transform: translateY(-50%);
    max-width: 240px;
}

.alcove--threshold .block--threshold-right {
    top: 50%;
    left: 70%;
    transform: translateY(-50%);
    max-width: 240px;
}

/* Alcove 4: Vessel — center */
.alcove--vessel .block--vessel {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    text-align: center;
}

.alcove--vessel .shell {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 200px;
}

.alcove--vessel .vessel-text {
    margin: 40px auto 0;
    max-width: 280px;
    text-align: center;
}

/* Alcove 5: Market — center, kanji + small domain */
.alcove--market .block--market {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.alcove--market .kanji {
    margin: 0 auto;
}

.alcove--market .fade-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background: linear-gradient(to bottom, rgba(245, 242, 237, 0) 0%, #E8E4DE 100%);
    pointer-events: none;
}

/* Selection styling — keep within the warm palette */
::selection {
    background-color: #E8E4DE;
    color: #2A2725;
}
