:root {
    --bg: #0c0c0c;
    --surface: #1c1c1c;
    --surface-2: #262626;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --accent: #e8a33d;
    --accent-ink: #0c0c0c;
    --danger: #ff6b6b;
    --success: #5fd38d;
    --radius: 6px;
    --gutter: clamp(16px, 4vw, 40px);
    --font-display: "Oswald", "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background: var(--bg); /* also colours overscroll/bounce areas and what Safari samples */
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.15;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; color: var(--accent); }

a { color: var(--accent); }
img, video { max-width: 100%; display: block; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; }

.button {
    display: inline-block;
    padding: .8em 1.6em;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-ink);
    font: 700 1rem var(--font-display);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.button.outline { background: transparent; color: var(--accent); }
.button.small { padding: .45em 1em; font-size: .9rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem var(--gutter);
    background: var(--bg); /* solid: Safari tints its address bar from this */
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    text-decoration: none;
    font: 700 1.15rem var(--font-display);
    text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a:not(.button) {
    color: var(--text);
    text-decoration: none;
    font: 500 1rem var(--font-display);
    text-transform: uppercase;
}
.site-nav a:not(.button):hover { color: var(--accent); }

@media (max-width: 640px) {
    .brand span { display: none; }
    .site-nav { gap: .75rem; }
    .site-nav a:not(.button) { font-size: .85rem; }
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(90vh, 900px);
    overflow: hidden;
    text-align: center;
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .65));
}
.hero-content { position: relative; z-index: 1; padding: var(--gutter); }
.hero-logo {
    width: clamp(120px, 18vw, 420px);
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 24px rgb(0 0 0 / .6));
}
.tagline {
    font: 500 clamp(1rem, 2.5vw, 1.4rem) var(--font-display);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin: 0 0 2rem;
}

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) var(--gutter); max-width: 1200px; margin: 0 auto; }
.section.narrow { max-width: 760px; }
.section.wide { max-width: 1600px; }

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.service {
    background: var(--surface);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.service p { margin: 0; color: var(--muted); }

/* Gallery: CSS columns masonry; width/height attrs prevent layout shift */
.gallery { columns: 4 260px; column-gap: 10px; margin-bottom: 2rem; }
.gallery-item {
    display: block;
    margin-bottom: 10px;
    break-inside: avoid;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.gallery-item.is-extra { display: none; }
.gallery.show-all .gallery-item.is-extra { display: block; }
.gallery-item img { width: 100%; height: auto; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* Videos: YouTube thumbnail facade, swapped for the player on click */
/* 1 per row on phones, 2 on tablets/laptops, 3 on large screens */
.videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 700px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1500px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video { margin: 0; }
.video figcaption { margin-top: .6rem; }
.video-embed {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.video-embed img, .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover; /* YouTube thumbnails are 4:3 with letterbox bars */
}
.video-embed .play {
    position: absolute; /* corner, not centre: the thumbnails have band names across the middle */
    right: 12px;
    bottom: 12px;
    width: 68px;
    height: 48px;
    border-radius: 12px;
    background: rgb(0 0 0 / .7);
    transition: background .2s;
}
.video-embed .play::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    translate: 3px 0;
}
.video-embed:hover .play, .video-embed:focus-visible .play { background: var(--accent); }

/* Credits */
.credits { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .credits { grid-template-columns: 1fr; } }
.artist-list, .event-list { list-style: none; padding: 0; margin: 0; }
.artist-list { columns: 2 260px; column-gap: 2rem; }
.artist-list li, .event-list li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--surface-2); }
.artist-list .muted { display: block; font-size: .85rem; }

/* Contact form */
.contact-form { display: grid; gap: 1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--surface-2);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .button { justify-self: start; }
.field-error { color: var(--danger); font-weight: 400; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem; border-radius: var(--radius); }
.notice.success { background: rgb(95 211 141 / .12); color: var(--success); }
.notice.error:not(:empty) { background: rgb(255 107 107 / .12); color: var(--danger); }
.notice.error ul { margin: 0; padding-left: 1.2rem; }
.validation-summary-valid { display: none; }

/* Footer */
.site-footer { padding: 3rem var(--gutter); text-align: center; background: var(--surface); }
.footer-brand { font: 700 1.3rem var(--font-display); text-transform: uppercase; margin: 0; }
.social { list-style: none; display: flex; justify-content: center; gap: 1.5rem; padding: 0; }

/* Lightbox */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / .92);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
    position: absolute;
    border: 0;
    background: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: 1rem;
    cursor: pointer;
}
.lightbox-close { top: 0; right: 0; }
.lightbox-prev { left: 0; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 0; top: 50%; translate: 0 -50%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gallery-item.is-extra { display: none; }
.gallery.show-all .gallery-item.is-extra { display: block; }
.gallery-item img { transition: none; }
}

/* Admin: inquiries inbox */
.admin { max-width: 900px; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.tabs a {
    padding: .4rem .9rem;
    border-radius: var(--radius);
    color: var(--muted);
    text-decoration: none;
    background: var(--surface);
}
.tabs a.active { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.inquiry {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.inquiry.done { border-left-color: var(--surface-2); opacity: .7; }
.inquiry.highlight { outline: 2px solid var(--accent); }
.inquiry header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.inquiry header div { display: flex; gap: .75rem; flex-wrap: wrap; align-items: baseline; }
.inquiry time { color: var(--muted); font-size: .85rem; }
.inquiry-message { white-space: pre-wrap; overflow-wrap: anywhere; margin: .75rem 0 1rem; }
.inquiry footer { display: flex; gap: .5rem; flex-wrap: wrap; }
.inquiry form { margin: 0; }
.button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
