/* bada.coffee - japanese zen portfolio */
/* Colors: Deep Roast #1a1612, Crema #f5ede0, Ocean #3a5a6e, Copper #a0522d, Steam rgba(245,237,224,0.15), Salt #c8c0b4, Sand #d4c5a9, Abyss #0d0b08 */

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

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

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    color: #f5ede0;
    background: linear-gradient(to bottom, #1a1612 0%, #1a1816 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
}

/* ============================================
   The Pour Line (page spine)
   ============================================ */

.pour-line-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.pour-line-svg {
    display: block;
    width: 1px;
    height: 100%;
}

/* ============================================
   Steam / Mist
   ============================================ */

.steam-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.steam-particle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 237, 224, 0.05) 0%, transparent 70%);
    animation: steamRise 12s ease-in infinite;
    opacity: 0;
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.05;
    }
    80% {
        opacity: 0.02;
    }
    100% {
        transform: translateY(-300px) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   Sections - General
   ============================================ */

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    padding: 4rem 2rem;
}

/* ============================================
   Fade Reveal
   ============================================ */

.fade-reveal {
    opacity: 0;
    transition: opacity 1500ms ease;
}

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

/* ============================================
   Hero Section - The Pour
   ============================================ */

.hero {
    min-height: 100vh;
    background: transparent;
    position: relative;
}

.pour-line-hero {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 50vh;
    width: 1px;
    overflow: visible;
}

.hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: 0.15em;
    color: #f5ede0;
    margin-top: 5vh;
    text-align: center;
    position: relative;
    z-index: 4;
}

.hero-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: #c8c0b4;
    letter-spacing: 0.25em;
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0;
    animation: subtitleFade 2s ease 3.5s forwards;
}

@keyframes subtitleFade {
    to {
        opacity: 1;
    }
}

/* ============================================
   Tasting Sections
   ============================================ */

.tasting-section {
    min-height: 100vh;
    padding: 10vh 2rem;
    gap: 2rem;
}

.section-word {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2rem, 6vw, 5rem);
    color: #f5ede0;
    letter-spacing: 0.1em;
    text-align: center;
}

.section-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #c8c0b4;
    max-width: 28ch;
    text-align: center;
}

/* ============================================
   Color Swatch
   ============================================ */

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    opacity: 0.7;
}

/* ============================================
   Bean/Shell Motif
   ============================================ */

.bean-shell {
    margin-top: 2rem;
}

.bean-shell-closing {
    margin-top: 3rem;
}

/* ============================================
   Wave Separators
   ============================================ */

.wave-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 3;
}

.wave-separator svg {
    max-width: 80%;
}

/* ============================================
   Tide Table Section
   ============================================ */

.tide-section {
    min-height: 100vh;
    padding: 10vh 2rem;
    gap: 2rem;
}

.tide-instruction {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: #c8c0b4;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

.tide-scroll-wrapper {
    width: 90vw;
    max-width: 900px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 237, 224, 0.1) transparent;
}

.tide-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.tide-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.tide-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(245, 237, 224, 0.15);
    border-radius: 2px;
}

.tide-chart-container {
    width: 2400px;
    height: 300px;
    position: relative;
}

.tide-chart {
    width: 100%;
    height: 100%;
}

.tide-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    fill: #c8c0b4;
    text-anchor: middle;
    opacity: 0.6;
    font-weight: 300;
}

.tide-point {
    cursor: pointer;
}

.tide-point circle {
    transition: r 400ms ease, opacity 400ms ease;
}

.tide-point:hover circle {
    r: 8;
    opacity: 1;
}

/* Tide Tooltip */
.tide-tooltip {
    position: absolute;
    background: #0d0b08;
    border: 1px solid rgba(200, 192, 180, 0.2);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 400ms ease;
    z-index: 10;
    max-width: 220px;
}

.tide-tooltip.active {
    opacity: 1;
}

.tooltip-name {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #f5ede0;
}

.tooltip-roast {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #a0522d;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tooltip-notes {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #c8c0b4;
    line-height: 1.6;
}

/* ============================================
   Closing Section
   ============================================ */

.closing-section {
    min-height: 80vh;
    gap: 1.5rem;
}

.closing-text {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #f5ede0;
    text-align: center;
    letter-spacing: 0.05em;
}

.closing-subtext {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: #c8c0b4;
    letter-spacing: 0.25em;
    opacity: 0.6;
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    .tide-scroll-wrapper {
        width: 95vw;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-text {
        max-width: 90vw;
    }
}
