/* ============================================
   nonri.day - Drowned Cottagecore
   ============================================ */
:root {
    --frost-blue: #C8D8E4;
    --warm-parchment: #E8DCC8;
    --algae-green: #7BA68A;
    --deep-teal: #4A7C9B;
    --abyss-blue: #0B1026;
    --amber-glow: #C4944A;
    --midnight-navy: #0F1A30;
    --dusty-rose: #9B6B7A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: linear-gradient(180deg, var(--abyss-blue) 0%, var(--midnight-navy) 70%, var(--abyss-blue) 100%);
    color: var(--frost-blue);
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 450vh;
}

/* ==============================
   BUBBLE FIELD
   ============================== */
.bubble-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200, 216, 228, 0.08);
    background: radial-gradient(circle at 30% 30%, rgba(200, 216, 228, 0.06), transparent 70%);
    animation: bubbleRise var(--rise-duration) linear infinite;
    animation-delay: var(--rise-delay);
    opacity: 0.4;
}
@keyframes bubbleRise {
    0% { transform: translateY(100vh) translateX(0); opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100px) translateX(var(--drift-x)); opacity: 0; }
}

/* ==============================
   DIVING BELL
   ============================== */
.diving-bell {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ==============================
   DEPTH SECTIONS
   ============================== */
.depth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem) 0;
}
.depth--surface {
    min-height: 100vh;
    text-align: center;
}
.depth-marker {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--algae-green);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* Surface */
.surface-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--frost-blue);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.surface-sub {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--deep-teal);
    text-transform: lowercase;
    opacity: 0.6;
}
.descent-arrow {
    margin-top: 3rem;
    animation: arrowFloat 2s ease-in-out infinite;
}
@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Depth Content */
.depth-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    color: var(--frost-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 1.5em;
}
.depth-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.8;
    color: var(--frost-blue);
    opacity: 0.85;
    margin-bottom: 1rem;
}
.depth-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--dusty-rose);
    opacity: 0.5;
    font-style: italic;
}
.depth-quote {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--amber-glow);
    line-height: 1.6;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(196, 148, 74, 0.3);
    margin: 1.5rem 0;
    opacity: 0.8;
}

/* Glow Orbs */
.glow-orbs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}
.orb {
    border-radius: 50%;
    animation: orbPulse 4s ease-in-out infinite;
}
.orb--1 {
    width: 20px; height: 20px;
    background: radial-gradient(circle, rgba(123, 166, 138, 0.5), transparent 70%);
    animation-delay: 0s;
}
.orb--2 {
    width: 30px; height: 30px;
    background: radial-gradient(circle, rgba(74, 124, 155, 0.4), transparent 70%);
    animation-delay: 1.3s;
}
.orb--3 {
    width: 16px; height: 16px;
    background: radial-gradient(circle, rgba(196, 148, 74, 0.4), transparent 70%);
    animation-delay: 2.6s;
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 0.8; }
}

/* Floor */
.floor-domain {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--algae-green);
    margin-top: 2rem;
    opacity: 0.5;
}
.floor-note {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--deep-teal);
    margin-top: 0.5rem;
    opacity: 0.3;
}

/* ==============================
   TYPEWRITER CURSOR
   ============================== */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--algae-green);
    margin-left: 2px;
    animation: cursorBlink 0.8s ease-in-out infinite;
    vertical-align: text-bottom;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .diving-bell {
        max-width: 90vw;
    }
}
