/* mujun.cafe - Philosophical Cafe / 矛盾 */
/* Cottagecore warmth meets dark-academia rigor */

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

:root {
    --cream: #f5f0e5;
    --warm-tan: #d4c4a8;
    --gold: #d4a957;
    --leather: #b0946b;
    --dark-brown: #2a2019;
    --forest-green: #3a4a2a;
    --slate-blue: #2a3a4a;
    --wine: #4a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--dark-brown);
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ========== WINDOW SEAT - HERO ========== */

.window-seat {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--slate-blue);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.raindrop {
    position: absolute;
    top: -10px;
    width: 1px;
    height: 15px;
    background: linear-gradient(to bottom, transparent, rgba(212, 196, 168, 0.3));
    animation: rainFall linear infinite;
}

@keyframes rainFall {
    from { transform: translateY(-10px); }
    to { transform: translateY(100vh); }
}

.window-condensation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 50%,
        transparent 30%,
        rgba(42, 58, 74, 0.4) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.window-content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    animation: fadeInSlow 2s ease 0.5s forwards;
}

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

.window-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--cream);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.3rem;
}

.window-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    color: var(--warm-tan);
    opacity: 0.8;
}

/* ========== CHALKBOARD MENU ========== */

.chalkboard {
    background: var(--dark-brown);
    padding: 4rem 2rem;
    position: relative;
}

.chalkboard::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid var(--leather);
    opacity: 0.2;
    pointer-events: none;
}

.chalkboard-inner {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.chalkboard-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.chalk-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--cream);
    text-align: center;
    margin-bottom: 2rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.menu-name {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--cream);
    white-space: nowrap;
}

.menu-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(245, 240, 229, 0.2);
    min-width: 20px;
    margin-bottom: 4px;
}

.menu-desc {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--warm-tan);
    opacity: 0.6;
}

.chalk-note {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.3;
    text-align: center;
    margin-top: 2rem;
}

/* ========== BOOKSHELF ========== */

.bookshelf {
    background: var(--cream);
    padding: 4rem 2rem;
    border-top: 3px solid var(--warm-tan);
    border-bottom: 3px solid var(--warm-tan);
}

.bookshelf-inner {
    max-width: 700px;
    margin: 0 auto;
}

.shelf-heading {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--dark-brown);
    margin-bottom: 2rem;
    text-align: center;
}

.book-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.book-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(212, 196, 168, 0.15);
    border-left: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.book-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.book-spine {
    width: 8px;
    min-height: 100%;
    border-radius: 2px;
    flex-shrink: 0;
}

.book-title {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.book-excerpt {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.82rem, 1.3vw, 0.92rem);
    line-height: 1.8;
    color: var(--dark-brown);
    opacity: 0.7;
}

/* ========== NAPKIN NOTES ========== */

.napkin-section {
    background: var(--warm-tan);
    padding: 5rem 2rem;
    position: relative;
}

.napkin-scatter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.napkin {
    background: var(--cream);
    padding: 2rem;
    position: relative;
    box-shadow: 2px 3px 10px rgba(42, 32, 25, 0.1);
}

.napkin-1 { transform: rotate(-2deg); }
.napkin-2 { transform: rotate(1.5deg); }
.napkin-3 { transform: rotate(-1deg); }
.napkin-4 { transform: rotate(3deg); }

.napkin-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--dark-brown);
    line-height: 1.6;
}

/* Coffee ring stains */
.coffee-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(176, 148, 107, 0.15);
    pointer-events: none;
}

.ring-1 {
    width: 80px;
    height: 80px;
    top: -15px;
    right: -10px;
}

.ring-2 {
    width: 60px;
    height: 60px;
    bottom: -10px;
    left: 10px;
}

.ring-3 {
    width: 100px;
    height: 100px;
    top: 5px;
    left: -20px;
    opacity: 0.7;
}

/* ========== CAFE TABLE / FOOTER ========== */

.cafe-table {
    background: var(--dark-brown);
    padding: 4rem 2rem;
    text-align: center;
}

.table-surface {
    max-width: 400px;
    margin: 0 auto;
}

.closing-thought {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.table-domain {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.table-hours {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--leather);
    opacity: 0.4;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
    .napkin-scatter {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .menu-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .menu-dots {
        display: none;
    }
}
