/* PECULIAR RETRO VENTRILOQUISM STYLES */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Shippori+Mincho:wght@400;700&display=swap');

:root {
    --sepia-dark: #2a1f1a;
    --sepia-mid: #5c4a3d;
    --sepia-light: #8b7355;
    --parchment: #e8dcc4;
    --cream: #f5efe0;
    --rust: #8b4513;
    --faded-gold: #b8960c;
    --blood-red: #6b1c1c;
    --ink: #1a1412;
}

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

body {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    background: var(--parchment);
    background-image: 
        url('https://www.transparenttextures.com/patterns/old-map.png'),
        linear-gradient(180deg, var(--cream) 0%, var(--parchment) 50%, #d4c4a8 100%);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.8;
}

/* HEADER */
header {
    background: var(--sepia-dark);
    background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px double var(--faded-gold);
    position: relative;
    min-height: 160px; /* Min height instead of fixed */
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42, 31, 26, 0.85);
}

header h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--faded-gold);
    letter-spacing: 6px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

header .tagline {
    font-size: 1rem;
    color: var(--parchment);
    margin-top: 0.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* NAVIGATION */
nav {
    background: var(--ink);
    padding: 0;
    border-bottom: 2px solid var(--rust);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
}

nav li {
    position: relative;
}

nav a {
    color: var(--parchment);
    text-decoration: none;
    padding: 1rem 0;
    font-size: 0.9rem;
    display: block;
    width: 90px; /* FIXED WIDTH - layout trap */
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    border-left: 1px solid var(--sepia-mid);
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background: var(--blood-red);
    color: var(--faded-gold);
}

nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ink);
    width: 90px; /* FIXED WIDTH - layout trap */
    border: 1px solid var(--rust);
    z-index: 100;
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav .dropdown-content a {
    border-left: none;
    border-bottom: 1px solid var(--sepia-dark);
    font-size: 0.8rem;
    width: 90px; /* FIXED WIDTH - layout trap */
}

/* MAIN CONTENT */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* HERO WITH OVERLAPPING TEXT */
.page-hero {
    position: relative;
    margin-bottom: 2rem;
}

.page-hero img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: grayscale(100%) sepia(40%) contrast(1.1) brightness(0.85);
    border: 8px solid var(--sepia-dark);
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.5),
        0 10px 30px rgba(0,0,0,0.4);
}


/* OVERLAPPING LABEL - Layout trap */
.hero-label {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background: var(--blood-red);
    color: var(--cream);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 120px; /* FIXED MIN-WIDTH - layout trap */
    max-width: 160px; /* FIXED MAX-WIDTH - layout trap */
    text-align: center;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    overflow: hidden;
    white-space: nowrap;
}

.page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: var(--sepia-dark);
    text-align: center;
    margin: 2rem 0 1rem;
    position: relative;
}

.page-title::before,
.page-title::after {
    content: '✦';
    color: var(--rust);
    margin: 0 1rem;
    font-size: 0.8rem;
}

/* CONTENT BOX - Layout trap */
.content-box {
    background: var(--cream);
    border: 2px solid var(--sepia-light);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 5px 5px 0 var(--sepia-mid);
    min-height: 100px;
    max-height: 200px; /* FIXED MAX HEIGHT - layout trap */
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed var(--sepia-light);
    pointer-events: none;
}

.content-box p {
    font-size: 1rem;
    text-align: justify;
    color: var(--sepia-dark);
    position: relative;
    z-index: 1;
}

/* VINTAGE PHOTO GRID */
.page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-card {
    background: var(--cream);
    border: 3px solid var(--sepia-dark);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px;
}

.page-card:hover {
    transform: rotate(-1deg) scale(1.02);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.3);
}

.page-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: grayscale(100%) sepia(40%) contrast(1.1) brightness(0.85);
}

.page-card h3 {
    font-size: 0.9rem;
    padding: 0.6rem 0.4rem;
    text-align: center;
    background: var(--sepia-dark);
    color: var(--parchment);
    min-height: 45px; /* FIXED MIN HEIGHT - layout trap */
    max-height: 55px; /* FIXED MAX HEIGHT - layout trap */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SECTION DIVIDER */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: var(--rust);
    text-align: center;
    margin: 2.5rem 0 1rem;
    position: relative;
}

.section-title::before {
    content: '— ❈ —';
    display: block;
    color: var(--sepia-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* BREADCRUMB - Layout trap */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--sepia-mid);
    margin-bottom: 1rem;
    text-align: center;
    background: rgba(139, 115, 85, 0.2);
    padding: 0.5rem 1rem;
    max-width: 450px; /* FIXED MAX-WIDTH - layout trap */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--blood-red);
    text-decoration: none;
}

/* BUTTON - Layout trap */
.cta-button {
    display: inline-block;
    background: var(--sepia-dark);
    color: var(--faded-gold);
    padding: 0.8rem 0;
    text-decoration: none;
    font-size: 0.85rem;
    width: 150px; /* FIXED WIDTH - layout trap */
    text-align: center;
    border: 2px solid var(--faded-gold);
    margin: 1rem auto;
    transition: all 0.3s;
    overflow: hidden;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--blood-red);
}

/* TWO COLUMN LAYOUT - Layout trap */
.two-columns {
    display: grid;
    grid-template-columns: 180px 1fr; /* FIXED NARROW COLUMN - layout trap */
    gap: 1rem;
    margin: 1.5rem 0;
}

.two-columns .side-image {
    position: relative;
}

.two-columns .side-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(100%) sepia(40%) contrast(1.1) brightness(0.85);
    border: 4px solid var(--sepia-dark);
}

.two-columns .side-text {
    background: var(--cream);
    padding: 1rem;
    border: 1px solid var(--sepia-light);
    font-size: 0.9rem;
}

/* VINTAGE STAMP - Layout trap */
.stamp {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px; /* FIXED WIDTH - layout trap */
    height: 70px; /* FIXED HEIGHT - layout trap */
    border: 3px solid var(--blood-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--blood-red);
    transform: rotate(-15deg);
    background: rgba(248, 240, 227, 0.9);
    text-align: center;
    padding: 5px;
    overflow: hidden;
    line-height: 1.2;
}

/* EVENT CALENDAR */
.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px; /* FIXED WIDTH - layout trap */
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.event-calendar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    background: var(--cream);
    border: 2px solid var(--sepia-light);
    box-shadow: 3px 3px 0 var(--sepia-mid);
    overflow: hidden;
}

.event-date {
    width: 80px; /* FIXED WIDTH - layout trap */
    min-width: 80px;
    background: var(--blood-red);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-details {
    padding: 1rem;
    flex: 1;
    overflow: hidden;
}

.event-details h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    color: var(--sepia-dark);
    margin-bottom: 0.3rem;
    white-space: nowrap; /* NOWRAP - layout trap */
    overflow: hidden;
}

.event-details p {
    font-size: 0.85rem;
    color: var(--sepia-mid);
    white-space: nowrap; /* NOWRAP - layout trap */
    overflow: hidden;
}

/* MONTH CALENDAR */
.month-calendar {
    background: var(--cream);
    border: 2px solid var(--sepia-light);
    box-shadow: 3px 3px 0 var(--sepia-mid);
    padding: 1rem;
    width: 280px; /* FIXED WIDTH - layout trap */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sepia-light);
}

.calendar-month {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--sepia-dark);
}

.nav-arrow {
    color: var(--rust);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.weekday {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--rust);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sepia-light);
}

.day-cell {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
    color: var(--sepia-dark);
    cursor: pointer;
}

.day-cell:hover {
    background: var(--parchment);
}

.day-cell.other {
    color: var(--sepia-light);
}

.day-cell.has-event {
    background: var(--blood-red);
    color: var(--cream);
    font-weight: bold;
    border-radius: 50%;
}

/* OVERLAP SECTION - Layout trap */
.overlap-section {
    display: flex;
    margin: 2rem 0;
    gap: 0;
}

.overlap-text {
    width: 50%; /* 50/50 split - layout trap */
    background: var(--cream);
    border: 2px solid var(--sepia-light);
    padding: 1.5rem;
    box-shadow: 3px 3px 0 var(--sepia-mid);
}

.overlap-text h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: var(--sepia-dark);
    margin-bottom: 1rem;
    white-space: nowrap; /* NOWRAP - layout trap */
    overflow: hidden;
}

.overlap-text p {
    font-size: 0.95rem;
    color: var(--sepia-mid);
    line-height: 1.7;
    white-space: nowrap; /* NOWRAP - layout trap */
    overflow: hidden;
}

.overlap-image {
    width: 50%; /* 50/50 split - layout trap */
}

.overlap-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    filter: grayscale(100%) sepia(40%) contrast(1.1) brightness(0.85);
    border: 4px solid var(--sepia-dark);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.image-caption {
    display: block;
    background: var(--sepia-dark);
    color: var(--faded-gold);
    text-align: center;
    padding: 0.4rem;
    font-size: 0.8rem;
    white-space: nowrap; /* NOWRAP - layout trap */
    overflow: hidden;
}

/* FOOTER */
footer {
    background: var(--sepia-dark);
    background-image: url('https://www.transparenttextures.com/patterns/dark-leather.png');
    border-top: 3px double var(--faded-gold);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    color: var(--parchment);
    font-size: 0.85rem;
    opacity: 0.8;
}

footer .ornament {
    color: var(--faded-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* DECORATIVE CORNERS */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '❧';
    position: absolute;
    color: var(--sepia-light);
    font-size: 1.5rem;
}

.corner-decoration::before {
    top: -10px;
    left: -10px;
}

.corner-decoration::after {
    bottom: -10px;
    right: -10px;
    transform: rotate(180deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav a {
        width: 75px; /* FIXED WIDTH - layout trap */
        padding: 0.8rem 0;
        font-size: 0.75rem;
    }
    
    .two-columns {
        grid-template-columns: 140px 1fr;
    }
    
    header h1 {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}
