@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'); 
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/jetbrains-mono-v24-latin-700.woff2') format('woff2'); 
}

/* Libre Baskerville (Regular, Italic, Bold) */
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/libre-baskerville-v24-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/libre-baskerville-v24-latin-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/libre-baskerville-v24-latin-700.woff2') format('woff2');
}

/* --- VARIABLES --- */
:root {
    --bg-color: #e6e6e6;
    --text-color: #050505;
    
    /* Colors */
    /* CHANGED: Darkened from #ff3300 to #d62b00 for WCAG AA Contrast compliance */
    --accent: #d62b00; 
    
    --font-main: 'JetBrains Mono', monospace;
    --font-display: 'Libre Baskerville', serif;
    
    --border-thick: 3px solid var(--text-color);
}

/* --- BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
}

h1, h2, h3 { text-transform: uppercase; line-height: 1.1; }
a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; transition: 0.2s; }
a:hover { border-color: var(--accent); color: var(--accent); }

/* --- HERO --- */
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    /* Extra padding bottom to prevent overlap on mobile */
    padding-bottom: 4rem; 
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 13vw, 8rem);
    font-weight: 700;
    /* Increased line-height for more space between names */
    line-height: 0.9; 
    margin-bottom: 2rem;
    /* Removed Drop Shadow */
    text-shadow: none; 
}

.hero-subtitle {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 5px 10px;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 5px 5px 0px color-mix(in srgb, var(--accent), transparent 30%);
}

.btn-shop {
    display: inline-block;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    /* Hard shadow using your accent color */
    box-shadow: 4px 4px 0px var(--accent); 
    transition: all 0.2s ease;
}

.btn-shop:hover {
    /* Inverts to the accent color on hover for a satisfying click feel */
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    /* Moves the button up and left slightly, expanding the shadow */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-color); 
}

/* --- IMAGE STACK --- */
.image-area {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-stack {
    position: relative;
    width: 300px;
    height: 400px;
    cursor: pointer;
}

.polaroid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: auto;
    background: #fff;
    padding: 10px 10px 40px 10px;
    border: 1px solid #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    transform-origin: center center;
}

/* Stack Logic */
.image-stack .polaroid:nth-child(1) { z-index: 1; }
.image-stack .polaroid:nth-child(2) { z-index: 2; }
.image-stack .polaroid:nth-child(3) { z-index: 3; }
.image-stack .polaroid:nth-child(4) { z-index: 4; }

.image-stack .polaroid:last-child:hover {
    transform: scale(1.02) rotate(0deg) !important;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.polaroid img {
    width: 100%; height: auto; display: block;
    pointer-events: none;
    /* Added to prevent CLS */
    aspect-ratio: 1 / 1; 
}

.click-hint {
    position: absolute; bottom: -50px; font-size: 0.8rem; opacity: 0.6;
    animation: bounce 2s infinite;
    pointer-events: none;
    background: var(--bg-color); /* Readability background */
    padding: 0 5px;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Swipe Animations (Left and Right) */
.fly-out-left { animation: throwLeft 0.6s forwards cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none; }
.fly-out-right { animation: throwRight 0.6s forwards cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none; }

@keyframes throwLeft {
    to { transform: translate(-150%, 50px) rotate(-45deg); opacity: 0; }
}
@keyframes throwRight {
    to { transform: translate(150%, 50px) rotate(45deg); opacity: 0; }
}

.img-credit {
    position: absolute; bottom: 5px; right: 10px; font-size: 0.7rem; color: #444444;
}

/* --- ABOUT --- */
.section { padding: 6rem 1rem; border-top: var(--border-thick); }
.container { max-width: 900px; margin: 0 auto; }

.about-text { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; }
.about-text p { margin-bottom: 2rem; }
.highlight { background: color-mix(in srgb, var(--accent), black 10%); color: #fff; font-style: italic; padding: 0 5px; }

/* --- DATES --- */
.date-controls {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.date-title { font-size: 3rem; }

.switch-container { display: flex; border: 2px solid var(--text-color); }

.switch-btn {
    background: transparent; border: none; padding: 10px 20px;
    font-family: var(--font-main); font-weight: bold; cursor: pointer; font-size: 1rem;
    transition: background 0.2s;
}
.switch-btn:hover { background: #ddd; }
.switch-btn.active { background: var(--accent); color: #fff; }

.gig-list { list-style: none; }
.hidden-list { display: none; }
.active-list { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.gig-item {
    display: grid; grid-template-columns: 140px 1fr; padding: 1rem 0;
    border-bottom: 1px dashed #999; align-items: baseline;
}
.gig-item:hover {
    background: #fff; padding-left: 10px; border-bottom: 1px solid var(--accent);
    transition: padding 0.2s;
}
.gig-date { font-weight: 700; color: var(--text-color); }
.gig-venue { text-transform: uppercase; }

.date-note { font-size: 0.8rem; opacity: 0.7; margin-top: 1rem; font-style: italic;}

/* --- COMMISSIONS FORM --- */
.commission-section {
    background: #fff; border: var(--border-thick); padding: 3rem; margin-top: 4rem;
    box-shadow: 10px 10px 0px var(--text-color); 
}
.commission-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.commission-intro { margin-bottom: 2rem; font-family: var(--font-display); }

.brutalist-form { display: grid; gap: 1.5rem; }
.form-group label { display: block; font-weight: bold; margin-bottom: 0.5rem; text-transform: uppercase; font-size: 0.9rem; }
.form-input {
    width: 100%; padding: 15px; border: 2px solid var(--text-color);
    font-family: var(--font-main); background: var(--bg-color); font-size: 1rem; outline: none; transition: all 0.2s;
}
.form-input:focus { border-color: var(--accent); background: #fff; }
.btn-submit {
    background: var(--text-color); color: #fff; border: none; padding: 15px;
    font-family: var(--font-main); font-weight: bold; text-transform: uppercase; cursor: pointer; font-size: 1.1rem; margin-top: 1rem; transition: transform 0.1s;
}
.btn-submit:hover { 
    background: var(--accent); 
    color: #fff; /* Keeps the text white on hover */
    transform: translate(-2px, -2px); 
    box-shadow: 4px 4px 0px var(--text-color); 
}

/* --- MUSIC --- */
/* Add intro block style */
.music-intro {
    margin-bottom: 3rem;
    max-width: 600px;
}
.music-intro h2 { font-size: 3rem; margin-bottom: 1rem; }
.music-intro p { font-family: var(--font-display); font-size: 1.1rem; }

.music-wrapper { display: grid; grid-template-columns: 1fr 1fr; border: var(--border-thick); }
.music-box { padding: 3rem; min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; }
.music-box:first-child { border-right: var(--border-thick); }

/* Colors for Music */
.music-box.classic { border-top: 5px solid var(--accent); }
.music-box.techno { background: #111; color: #eee; border-top: 5px solid var(--accent); }

.music-type { border: 1px solid currentColor; padding: 5px; font-size: 0.7rem; display: inline-block; margin-bottom: 1rem; }
.music-box h3 { font-size: 2.5rem; margin-bottom: 1rem; }

.btn-spotify {
    border: 1px solid currentColor; padding: 15px; display: flex; justify-content: space-between; font-weight: bold; text-transform: uppercase; transition: transform 0.2s;
}
.btn-spotify:hover { transform: translate(-3px, -3px); }

/* Specific hover colors */
.classic .btn-spotify:hover { background: var(--accent); color: #fff; box-shadow: 3px 3px 0 var(--text-color); border-color: var(--accent); }
.techno .btn-spotify:hover { background: var(--accent); color: #fff; box-shadow: 3px 3px 0 #fff; border-color: var(--accent); }

/* --- BOOK & FOOTER --- */
.book-section { background: var(--text-color); color: var(--bg-color); text-align: center; padding: 6rem 1rem; }

.scrolling-text { 
    opacity: 0.5; white-space: nowrap; overflow: hidden; font-size: 0.8rem;
    margin-bottom: 0.5rem; 
}
.book-section h2 { 
    font-size: 3rem; 
    color: var(--accent); 
    margin-bottom: 1rem; /* Reduced Spacing */
}
.book-sub {
    font-family: 'JetBrains Mono', monospace; 
    letter-spacing: 2px;
    margin-top: 0;
}

footer { padding: 2rem; border-top: var(--border-thick); display: flex; justify-content: space-between; font-size: 0.9rem; }
.footer-links a { margin-left: 20px; text-decoration: underline; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding-top: 4rem; text-align: center; }
    /* Increase margin to avoid overlap with click hint */
    .image-area { margin-top: 2rem; height: 400px; margin-bottom: 3rem; }
    
    .music-wrapper { grid-template-columns: 1fr; }
    .music-box:first-child { border-right: none; border-bottom: var(--border-thick); }
    
    .gig-item { grid-template-columns: 1fr; gap: 5px; }
    
    .date-controls { flex-direction: column; align-items: flex-start; }
    
    footer { flex-direction: column; gap: 2rem; }
    
    /* CHANGED: Better touch targets for footer links on mobile */
    .footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
    .footer-links a { margin-left: 0; margin-right: 0; padding: 5px 0; }
    
    .commission-section { padding: 1.5rem; box-shadow: 5px 5px 0px var(--text-color); }
}