:root {
    --bg-color: #f4f4f5;
    --text-main: #18181b;
    --accent: #ff4d4d;
    --dot-color: #d4d4d8;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--dot-color) 2px, transparent 2px);
    background-size: 30px 30px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Scrolling Marquee */
.marquee-container {
    background: var(--text-main);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem 3rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--accent);
    font-family: 'Caveat', cursive;
    font-size: 5rem;
    display: inline-block;
    transform: rotate(-5deg);
}

.hero p {
    font-size: 1.2rem;
    color: #52525b;
    margin-top: -10px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.bento-card {
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform-style: preserve-3d; /* For the JS tilt effect */
    transition: box-shadow 0.3s ease;
}

.bento-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bento-card.large { grid-column: span 2; grid-row: span 2; }
.bento-card.medium { grid-column: span 2; grid-row: span 1; }
.bento-card.small { grid-column: span 1; grid-row: span 1; }

/* Block Colors */
.bg-yellow { background: #fde047; }
.bg-dark { background: #18181b; color: #fff; }
.bg-blue { background: #bae6fd; }

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.bento-card:hover .card-bg {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    box-sizing: border-box;
}

.bottom-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.center-align {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: table;
    margin-bottom: 10px;
}

.badge.outline {
    background: transparent;
    border: 2px solid currentColor;
}

.bento-card h2 { font-size: 2.5rem; margin: 0; }
.bento-card h3 { font-size: 1.5rem; margin: 0; }
.bento-card p { font-size: 1.1rem; opacity: 0.9; margin: 5px 0 0; }

.handwriting {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem !important;
    transform: rotate(-2deg);
}

.mini-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mini-gallery img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid white;
    transform: rotate(calc(var(--rot, 0) * 1deg));
}

.mini-gallery img:nth-child(1) { --rot: -5; }
.mini-gallery img:nth-child(2) { --rot: 3; }
.mini-gallery img:nth-child(3) { --rot: -2; }

/* Archive List */
.archive-section {
    max-width: 800px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.archive-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.trip-row {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e4e4e7;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.2s, padding-left 0.2s;
    border-radius: 12px;
}

.trip-row:hover {
    background: #fff;
    padding-left: 2rem;
}

.trip-row .year {
    color: #a1a1aa;
    width: 80px;
}

.trip-row .name {
    flex-grow: 1;
}

.trip-row .arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.trip-row:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Grid for mobile */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-card { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 250px; }
}
