/* P36 LIVE - site styles
   Colours: red, black, white; yellow is only an accent (hover).
   Titles: Big Shoulders Stencil. Buttons: Special Elite. Text: Arial/Helvetica.
   Layout: homepage = full-screen photo; other pages = photo column on the left
   (logo + title), content on the right. On phones the photo column disappears. */

:root {
    --red: #c20e1a;
    --black: #111111;
    --white: #ffffff;
    --yellow: #f2d12a;
    --ground: #f4f2ee;   /* page background: plain warm white */
    --gutter: clamp(16px, 4vw, 48px);
    --title: 'Big Shoulders Stencil', 'Arial Narrow', sans-serif;
    --type: 'Special Elite', 'Courier New', monospace;
    --text: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--black);
    background: var(--ground);
}

img { max-width: 100%; height: auto; }

a { color: var(--red); }
a:hover, a:focus { color: var(--black); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--yellow); color: var(--black); padding: 8px 12px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top menu and footer ---------- */

.site-nav {
    position: relative; z-index: 2;
    background: var(--black);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 4px 24px;
    padding: 4px clamp(16px, 3vw, 40px);
}
.site-nav a { color: var(--white); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--yellow); }
.site-nav .brand { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.site-nav .brand img { display: none; width: 40px; height: 42px; object-fit: contain; }
.site-nav .brand span { font-family: var(--title); font-weight: 800; font-size: 24px; letter-spacing: 1px; line-height: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; font-family: var(--type); font-size: 15px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.site-nav li a { display: block; padding: 14px 0; }
.site-nav li a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.menu-toggle {
    display: none; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
    color: var(--white); font-family: var(--type); font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
}
.menu-toggle:hover, .menu-toggle:focus { color: var(--yellow); }

.site-footer {
    position: relative;
    background: var(--black); color: var(--white);
    padding: 12px var(--gutter);
    font-size: 13px; line-height: 1.5;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
}
.site-footer a { color: var(--white); }
.site-footer a:hover, .site-footer a:focus { color: var(--yellow); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Building blocks ---------- */

/* torn white paper behind a title or a card */
.paper { background: var(--white); color: var(--black); text-shadow: none; }
.torn { -webkit-mask-image: url(/img/ui/torn.png); mask-image: url(/img/ui/torn.png); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }

/* masking tape holding a poster */
.taped { position: relative; padding-top: 12px; display: block; }
.taped::before, .taped::after {
    content: ""; position: absolute; top: 0; width: 120px; height: 30px; z-index: 1;
    background: url(/img/ui/tape.png) center / 100% 100% no-repeat;
}
.taped::before { left: -20px; }
.taped::after { right: -20px; }
.taped img { display: block; width: 100%; }

.title {
    margin: 0;
    font-family: var(--title); font-weight: 800;
    line-height: .88; letter-spacing: 1px; text-transform: uppercase;
}
.title-xl { font-size: clamp(44px, 5vw, 64px); }
.title-l { font-size: clamp(34px, 3.4vw, 44px); }
.title-m { font-size: clamp(28px, 2.6vw, 34px); }
.title-s { font-size: 24px; line-height: .95; }
.title a { color: inherit; text-decoration: none; }
.title a:hover, .title a:focus { color: var(--red); }
.title-paper { display: inline-block; padding: 14px 24px 10px; max-width: 100%; }

.lead { font-size: 18px; line-height: 1.55; margin: 0; }
.date { margin: 0; font-weight: 700; color: var(--red); }

/* buttons: plain blocks, typewriter lettering */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 0 20px; border: 0; cursor: pointer;
    font-family: var(--type); font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; text-shadow: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover, .btn-red:focus { background: var(--black); color: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover, .btn-black:focus { background: var(--red); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover, .btn-white:focus { background: var(--red); color: var(--white); }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* background photos (originals; colour overlays are added in CSS) */
.bg-zine-red { background-image: url(/img/home2.jpg); }
.bg-zine { background-image: url(/img/mzine_copie.jpg); --side-dark: rgba(17, 17, 17, .62); --side-red: 0; }
.bg-corridor { background-image: url(/img/bg/corridor.jpg); background-position: center 45% !important; --side-dark: rgba(17, 17, 17, .38); --side-red: .25; }
.bg-posterwall { background-image: url(/img/bg/posterwall.jpg); background-position: center 30% !important; --side-dark: rgba(17, 17, 17, .2); --side-red: .6; }

/* ---------- Homepage: full-screen photo ---------- */

.home {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    color: var(--white); background-size: cover; background-position: center;
}
.home::before { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 17, .35); }
.home > * { position: relative; }
.home a { color: var(--white); }
.home a:hover, .home a:focus { color: var(--yellow); }
.home-main {
    flex: 1 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 40px; padding: 40px clamp(16px, 4vw, 72px) 56px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.home-logo { flex: 0 1 420px; min-width: 220px; }
.home-logo img { display: block; width: 100%; }
.home-side { flex: 0 1 520px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 18px; }
.home-side .buttons { justify-content: flex-end; }
.home-side .tagline { margin: 0; font-size: 18px; line-height: 1.5; }
.home .btn-white { color: var(--black); }
.home .btn:hover, .home .btn:focus { color: var(--white); }
.next { margin-top: 14px; align-self: stretch; display: flex; flex-direction: row-reverse; gap: 18px; padding: 20px 22px; }
.next img { display: block; width: 96px; height: 136px; object-fit: cover; }
.next-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.next-text p { margin: 0; font-size: 15px; }
.home .next a { color: var(--red); }
.home .next .title a { color: var(--black); }
.home .next a:hover, .home .next a:focus { color: var(--black); }
.home .next .title a:hover, .home .next .title a:focus { color: var(--red); }

/* ---------- Other pages: photo column + content column ---------- */

.split { display: flex; align-items: stretch; background-size: cover; background-position: center; background-attachment: fixed; }
.split-side {
    position: sticky; top: 0;
    flex: 1 1 40%; min-width: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 36px clamp(40px, 4vw, 96px) 28px;
    color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}
.split-side::before { content: ""; position: absolute; inset: 0; background: var(--side-dark, rgba(17, 17, 17, .35)); }
.split-side::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply; opacity: var(--side-red, 0); }
.split-side > * { position: relative; z-index: 1; max-width: 100%; }
.split-side a { color: var(--white); }
.split-side a:hover, .split-side a:focus { color: var(--yellow); }
.split-side .side-logo { align-self: center; display: block; margin-bottom: 8px; }
.split-side .side-logo img { display: block; width: 168px; }
.split-side .side-meta { margin: 0; font-size: 17px; font-weight: 700; }
.split-side .side-text { margin: 0; font-size: 18px; }
.split-side .btn-red { color: var(--white); margin-top: 6px; }
.split-side .btn-red:hover, .split-side .btn-red:focus { background: var(--white); color: var(--red); }
.split-side .photo-credit { margin-top: auto; font-size: 11px; opacity: .8; }

.split-main {
    flex: 0 1 60%; max-width: 980px; min-width: 0; min-height: 100vh;
    display: flex; flex-direction: column;
    background: rgba(244, 242, 238, .95);
}
.split-main main { padding: 40px clamp(24px, 4vw, 56px) 56px; width: 100%; }
.split-main .site-footer { margin-top: auto; }
.section { border-top: 2px solid var(--black); padding-top: 24px; margin-top: 52px; }
.breadcrumb { font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }

/* short laptop screens: smaller logo so the title still fits */
@media (max-height: 760px) {
    .split-side .side-logo img { width: 120px; }
}

/* ---------- Event lists ---------- */

.event-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.event-row + .event-row { border-top: 2px solid var(--black); padding-top: 40px; margin-top: 40px; }
.event-row .taped { flex: 0 0 230px; }
.event-row-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.event-row-text p { margin: 0; }
.event-row-text .venue { font-weight: 700; }
.event-row-text .summary { font-size: 16px; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head a { font-weight: 700; padding: 8px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--black); }
.card img, .card .no-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .no-image { background: var(--black); display: flex; align-items: center; justify-content: center; }
.card .no-image img { width: 44%; aspect-ratio: auto; }
.card .card-date { font-size: 14px; font-weight: 700; color: var(--red); }
.card:hover .title, .card:focus .title { color: var(--red); }
.empty { font-size: 18px; margin: 0; }

/* ---------- Event page ---------- */

.event-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.event-top .taped { flex: 0 0 250px; }
.event-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tickets { display: flex; flex-direction: column; gap: 8px; }
.tickets ul { list-style: none; margin: 0; padding: 0; }
.tickets li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px solid var(--black); }
.tickets .buttons { margin-top: 10px; }
.with { margin: 40px 0 0; line-height: 1.7; }
.past-note { margin: 0; font-weight: 700; }

/* poster: click for full screen */
.poster-zoom { position: relative; display: block; cursor: zoom-in; }
.zoom-badge {
    position: absolute; right: 8px; bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--black); color: var(--white);
}
.poster-zoom:hover .zoom-badge, .poster-zoom:focus .zoom-badge { background: var(--red); }
.lightbox {
    width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
    margin: 0; padding: 0; border: 0; background: transparent;
    cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(17, 17, 17, .94); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: fixed; top: 12px; right: 12px; z-index: 1; }

/* long_desc: free HTML written in the database */
.rich { margin-top: 40px; }
.rich p { margin: 0 0 14px; line-height: 1.65; }
.rich h3 { margin: 34px 0 12px; font-family: var(--title); font-weight: 800; font-size: 30px; line-height: .95; text-transform: uppercase; }
.rich h6 { margin: 18px 0 4px; font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--red); }
.rich ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.65; }
.rich img { display: block; margin: 14px 0; }

.venue-block { display: flex; flex-direction: column; gap: 14px; }
.venue-block address { font-style: normal; line-height: 1.6; }
.map { height: 280px; background: var(--white); border: 2px solid var(--black); }

/* plain content (about, venue, booking, 404) */
.page h2 { font-family: var(--title); font-weight: 800; font-size: 30px; line-height: .95; text-transform: uppercase; margin: 36px 0 12px; }
.page p { max-width: 70ch; }
.booking-widget { background: var(--white); padding: 16px; }

/* ---------- Phones and small tablets: no photo column ---------- */

@media (max-width: 900px) {
    body { font-size: 16px; }

    .site-nav .brand img { display: block; }

    /* hamburger menu */
    .menu-toggle { display: inline-flex; }
    .site-nav nav { flex-basis: 100%; }
    .js .site-nav nav { display: none; }
    .js .site-nav.open nav { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 8px; }
    .site-nav li a { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
    .site-nav li a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }

    /* homepage: smaller logo so the title and next event show without scrolling */
    .home-main { padding-top: 24px; gap: 24px; }
    .home-logo { flex: 0 0 auto; width: min(240px, 58vw); min-width: 0; margin: 0 auto; }

    .split { display: block; background-image: none !important; }
    .split-side {
        position: static; height: auto; overflow: visible;
        padding: 24px var(--gutter) 0; gap: 8px;
        color: var(--black); text-shadow: none;
        min-width: 0; max-width: none;
    }
    .split-side::before, .split-side::after, .split-side .side-logo, .split-side .photo-credit, .split-side .side-cta { display: none; }
    .split-side a { color: var(--red); }
    .split-side .torn { -webkit-mask-image: none; mask-image: none; background: none; padding: 0; }
    .split-side .side-meta { font-size: 15px; }
    .split-side .side-date { color: var(--red); }
    .split-main { min-height: 0; max-width: none; background: none; }
    .split-main main { padding: 24px var(--gutter) 40px; }

    .event-row .taped, .event-top .taped { flex: 0 1 300px; }
    .taped::before { left: -8px; }
    .taped::after { right: -8px; }
}

@media (max-width: 640px) {
    .home-side, .next-text { align-items: flex-start; text-align: left; }
    .home-side .buttons { justify-content: flex-start; }
    .next { flex-direction: row; }
}
