/* ==========================================================================
   rironbusou.net -- Ethereal Asymmetric Archive
   Palette (Earth-Tones):
     Warm Clay   #E8DCC8 -- background
     Dark Earth  #3A2E22 -- headings
     Rich Soil   #5C4A3A -- body text
     Terracotta  #C4663A -- primary accent
     Olive       #6B7A4E -- secondary accent
     Soft Sand   #F5EFE0 -- card surfaces
   Fonts: Inter (display), Lato (body)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #5C4A3A;
    background-color: #E8DCC8;
    overflow-x: hidden;
}

/* --- Hidden SVG Defs --- */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #3A2E22;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.6em;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: #C4663A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6B7A4E;
}

/* --- Header --- */
#site-header {
    padding: 6rem 2rem 4rem;
    text-align: left;
    padding-left: 8%;
}

.site-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #3A2E22;
    letter-spacing: -0.02em;
    margin-bottom: 0.3em;
}

.site-tagline {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #6B7A4E;
    font-style: italic;
    font-weight: 400;
}

/* --- Wave Dividers --- */
.wave-divider {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave-divider--1 {
    margin-top: -1px;
}

.wave-divider--2 {
    margin-bottom: -1px;
}

.wave-divider--3 {
    margin-top: -1px;
}

.wave-divider--4 {
    margin-bottom: -1px;
}

.wave-divider--5 {
    margin-top: -1px;
}

/* --- Content Sections --- */
.content-section {
    padding: 4rem 5% 4rem;
}

.content-section:nth-child(odd) {
    background-color: #E8DCC8;
}

.content-section:nth-child(even) {
    background-color: #F5EFE0;
}

/* Override wave-adjacent sections for seamless bg */
#archive-intro {
    background-color: #F5EFE0;
}

#collection {
    background-color: #E8DCC8;
}

#observations {
    background-color: #F5EFE0;
}

#ephemera {
    background-color: #E8DCC8;
}

#about {
    background-color: #F5EFE0;
}

/* --- Asymmetric Grid --- */
.asymmetric-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-variant-a {
    grid-template-columns: 2fr 1fr 1fr;
}

.grid-variant-b {
    grid-template-columns: 1fr 1fr 2fr;
}

/* --- Cards --- */
.card {
    background-color: #F5EFE0;
    border-radius: 50% 20% 40% 30% / 30% 40% 20% 50%;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-radius 0.6s ease;
    overflow: hidden;
}

/* Override card bg on #F5EFE0 sections */
#archive-intro .card,
#observations .card,
#about .card {
    background-color: #E8DCC8;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(58, 46, 34, 0.15);
    border-radius: 40% 30% 50% 20% / 20% 50% 30% 40%;
}

.card-inner {
    padding: 2.5rem 2rem;
}

/* --- Vintage Photography Filter --- */
.vintage-photo {
    filter: sepia(0.3) contrast(0.9) brightness(1.1);
}

/* --- Block sizes --- */
.block-large {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.block-small {
    min-height: 200px;
    display: flex;
    align-items: center;
}

/* --- About Block --- */
.about-block {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background-color: #E8DCC8;
    border-radius: 30% 50% 20% 40% / 40% 20% 50% 30%;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-radius 0.6s ease;
}

.about-block:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(58, 46, 34, 0.12);
    border-radius: 50% 20% 40% 30% / 30% 40% 20% 50%;
}

/* --- Accent highlights --- */
.card h3 {
    color: #C4663A;
}

.about-block h2 {
    color: #C4663A;
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
#site-footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #3A2E22;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #E8DCC8;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .asymmetric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .block-large {
        grid-column: span 2;
    }

    #site-header {
        padding: 4rem 2rem 3rem;
        padding-left: 5%;
    }
}

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

    .block-large {
        grid-column: span 1;
    }

    .content-section {
        padding: 3rem 4% 3rem;
    }

    .card {
        border-radius: 30% 15% 25% 20% / 20% 25% 15% 30%;
    }

    .card:hover {
        border-radius: 25% 20% 30% 15% / 15% 30% 20% 25%;
    }

    .about-block {
        border-radius: 20% 30% 15% 25% / 25% 15% 30% 20%;
        padding: 2rem 1.5rem;
    }

    #site-header {
        padding: 3rem 1.5rem 2rem;
        text-align: center;
        padding-left: 1.5rem;
    }

    .wave-divider svg {
        height: 40px;
    }
}
