/* gabs.cafe - 1970s Tokyo Kissaten */
:root {
    --obsidian: #0A0A0A;
    --espresso: #141210;
    --aged-gold: #B8963E;
    --burnished-copper: #8B6914;
    --parchment: #D4C5A9;
    --tarnished-brass: #8B7D63;
    --cordovan: #4A2C2A;
    --amber-glow: #D4A76A;
}

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

body {
    font-family: 'EB Garamond', serif;
    background-color: var(--obsidian);
    color: var(--parchment);
    overflow-x: hidden;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.leather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background: repeating-conic-gradient(var(--cordovan) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
    mix-blend-mode: overlay;
}

.gold-progress {
    position: fixed;
    top: 0;
    right: 1.5rem;
    width: 2px;
    height: 0%;
    background-color: var(--aged-gold);
    opacity: 0.6;
    z-index: 100;
    transition: height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.gold-motes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.mote {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--aged-gold), transparent);
}

.sip-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.sip {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.sip-content {
    max-width: 680px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.sip-content-center {
    text-align: center;
}

.sip-content-narrow {
    max-width: 520px;
}

.sip-content p {
    margin-bottom: 1.618rem;
    color: var(--parchment);
    opacity: 0.85;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: var(--aged-gold);
    min-height: 1.2em;
}

.hero-cursor {
    display: inline-block;
    width: 1px;
    height: 0.8em;
    background-color: var(--aged-gold);
    vertical-align: middle;
    opacity: 0;
}

.hero-cursor.blink {
    animation: cursorBlink 1.06s step-end infinite;
}

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

.hero-subtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--parchment);
    opacity: 0;
    margin-top: 2.618rem;
    transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.hero-subtitle.visible {
    opacity: 0.7;
}

.sip-rule {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    border-top: 1px dashed var(--aged-gold);
    opacity: 0.2;
}

.sip-rule-top { top: 2rem; }
.sip-rule-bottom { bottom: 2rem; }

.glyph-hex {
    display: block;
    font-size: 0.85rem;
    color: var(--tarnished-brass);
    margin-bottom: 1.618rem;
    letter-spacing: 0.2em;
}

/* Sip 3: Deeper background */
.sip-3 {
    background-color: var(--espresso);
}

/* Sip 4: The Pour */
.pour-sentence {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: var(--aged-gold);
    min-height: 2em;
    margin-bottom: 2.618rem;
}

.pour-line {
    display: block;
    margin: 0 auto;
    max-width: 80%;
}

.pour-line line {
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

/* Sip 6: Gold word interaction */
.gold-word {
    color: var(--aged-gold);
    opacity: 1;
    cursor: default;
    transition: letter-spacing 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    position: relative;
}

.gold-word:hover {
    letter-spacing: 0.12em;
}

/* Sip 7: Exit */
.exit-domain {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--parchment);
    opacity: 0.7;
    margin-bottom: 1.618rem;
}

.exit-timestamp {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tarnished-brass);
}

.typed-block {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.typed-block.revealed {
    opacity: 1;
}

@media (max-width: 768px) {
    .sip-content {
        width: 88%;
    }
    .sip-content-narrow {
        max-width: none;
    }
}
