/* gabs.cafe - Wabi-Sabi Ceramic Cafe */

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

:root {
    --warm-linen: #F5F0E8;
    --warm-ceramic: #E8DFD0;
    --dark-wood: #3A302A;
    --coffee-brown: #5C4A3A;
    --warm-brass: #8B7355;
    --stain-ring: #D4C4B0;
    --pure-white: #FFFFFF;
}

body {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.8;
    background: var(--warm-linen);
    color: var(--coffee-brown);
    overflow-x: hidden;
}

/* ==================== HERO ==================== */
#hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-linen);
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    width: 50vmin;
    height: 50vmin;
    background: var(--warm-ceramic);
    border-radius: 50%;
    animation: blobMorph 12s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 42% 58% 63% 37% / 48% 52% 44% 56%; }
    50% { border-radius: 58% 42% 37% 63% / 52% 48% 56% 44%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-gabs {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--coffee-brown);
    display: block;
    line-height: 1.1;
    opacity: 0;
    transition: opacity 800ms ease;
}

body.loaded .hero-gabs {
    opacity: 1;
}

.hero-cafe {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--warm-brass);
    display: block;
    opacity: 0;
    transition: opacity 400ms ease 800ms;
}

body.loaded .hero-cafe {
    opacity: 1;
}

/* ==================== MENU BOARD ==================== */
#menu {
    background: var(--dark-wood);
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 600ms ease, transform 600ms ease;
}

#menu.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-board {
    max-width: 600px;
    margin: 0 auto;
}

.menu-heading {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--warm-ceramic);
    text-align: center;
    margin-bottom: 2rem;
}

.menu-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.2rem;
}

.item-name {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-ceramic);
    white-space: nowrap;
}

.leader {
    flex-grow: 1;
    border-bottom: 1px dotted var(--warm-brass);
    margin: 0 12px;
    min-width: 20px;
}

.item-price {
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    color: var(--warm-ceramic);
    white-space: nowrap;
}

/* ==================== CONVERSATION CARDS ==================== */
#conversations {
    padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
    background: var(--warm-linen);
}

.card-scatter {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    justify-content: center;
}

.conv-card {
    flex: 1 1 280px;
    max-width: 320px;
    background: var(--pure-white);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.06), -1px 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    opacity: 0;
    transition: opacity 400ms ease, background-color 200ms ease, transform 200ms ease;
    cursor: default;
}

.conv-card.visible {
    opacity: 1;
}

.conv-card:hover {
    transform: translateY(1px) !important;
}

.card-heading {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--coffee-brown);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--warm-brass);
}

/* ==================== CERAMIC RINGS ==================== */
#rings {
    padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
    background: var(--warm-linen);
    display: flex;
    justify-content: center;
}

.ring-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.coffee-ring {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1s ease;
}

.coffee-ring.drawn {
    stroke-dashoffset: 0;
}

.ring-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    fill: var(--coffee-brown);
    opacity: 0;
    transition: opacity 500ms ease 1s;
}

.ring-text.visible {
    opacity: 1;
}

/* ==================== FOOTER ==================== */
#footer {
    background: var(--dark-wood);
    padding: 2rem;
    text-align: center;
}

.footer-text {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--stain-ring);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .card-scatter {
        flex-direction: column;
        align-items: center;
    }

    .conv-card {
        transform: none !important;
    }
}
