/* ============================================
   nfth.ing - Holographic Greeting Card
   ============================================ */
:root {
    --blush-pink: #FBBCB8;
    --dusty-mauve: #8A7B82;
    --lavender-mist: #E0D8F0;
    --cream-white: #FFF8F0;
    --warm-peach: #F5E6D3;
    --charcoal-plum: #3A3238;
    --mint-accent: #A8E6CF;
    --rose-cream: #FDE8E0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--cream-white);
    color: var(--charcoal-plum);
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==============================
   GRAIN OVERLAY
   ============================== */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    mix-blend-mode: multiply;
}
.grain-overlay svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==============================
   SIDEBAR
   ============================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: rgba(255, 248, 240, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(138, 123, 130, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}
.sidebar-brand {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal-plum);
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--dusty-mauve);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.nav-item.active {
    color: var(--charcoal-plum);
}
.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lavender-mist);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-item.active .nav-dot {
    background: linear-gradient(135deg, var(--blush-pink), var(--lavender-mist), var(--mint-accent));
    box-shadow: 0 0 6px rgba(168, 230, 207, 0.4);
}

/* ==============================
   CONTENT
   ============================== */
.content {
    margin-left: 220px;
}

/* ==============================
   THING SECTIONS
   ============================== */
.thing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem);
    position: relative;
}
.thing:nth-child(odd) {
    background: var(--cream-white);
}
.thing:nth-child(even) {
    background: var(--rose-cream);
}
.thing-inner {
    max-width: 600px;
    position: relative;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.thing-inner.visible, #thing1 .thing-inner {
    opacity: 1;
    transform: translateY(0);
}
#thing1 .thing-inner {
    opacity: 1;
    transform: translateY(0);
}

.thing-number {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--lavender-mist);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.thing-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    color: var(--charcoal-plum);
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.thing-title--hero {
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    background: linear-gradient(135deg, var(--charcoal-plum), var(--dusty-mauve), var(--blush-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.thing-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--dusty-mauve);
    text-transform: lowercase;
    opacity: 0.6;
}
.thing-text {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.85;
    color: var(--charcoal-plum);
}

/* ==============================
   FLOATING ELEMENTS
   ============================== */
.float-element {
    position: absolute;
    pointer-events: none;
}
.float--circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 188, 184, 0.3), rgba(224, 216, 240, 0.3), rgba(168, 230, 207, 0.3));
    animation: floatDrift 8s ease-in-out infinite;
}
.float--ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(224, 216, 240, 0.4);
    animation: floatDrift 10s ease-in-out infinite reverse;
}
.float--blob {
    width: 100px;
    height: 100px;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.2), rgba(224, 216, 240, 0.2));
    animation: floatDrift 12s ease-in-out infinite;
}
.float--diamond {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(251, 188, 184, 0.2), rgba(168, 230, 207, 0.2));
    transform: rotate(45deg);
    animation: floatDrift 9s ease-in-out infinite;
}
@keyframes floatDrift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, -6px); }
    50% { transform: translate(-4px, 8px); }
    75% { transform: translate(6px, 3px); }
}

/* ==============================
   HOLO CARD
   ============================== */
.holo-card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(224, 216, 240, 0.4);
    background: rgba(255, 248, 240, 0.5);
    position: relative;
    overflow: hidden;
}
.holo-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(251, 188, 184, 0.1),
        rgba(224, 216, 240, 0.15),
        rgba(168, 230, 207, 0.1),
        rgba(251, 188, 184, 0.1)
    );
    background-size: 300% 300%;
    animation: holoShift 6s ease-in-out infinite;
}
@keyframes holoShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.holo-label {
    position: relative;
    z-index: 2;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--dusty-mauve);
    text-transform: uppercase;
}

/* ==============================
   THING 6: DOMAIN
   ============================== */
.thing-domain {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dusty-mauve);
    letter-spacing: 0.05em;
    margin-top: 2rem;
    opacity: 0.5;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .content {
        margin-left: 0;
    }
}
