@font-face {
  font-family: "Press";
  src: url("../fonts/press-start-2p-v16-latin-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #151515;
  --panel: #202020;
  --cream: #f1efe8;
  --muted: #aaa7a0;
  --coral: #ff3d5a;
  --pixel: "Press", "Courier New", monospace;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Anton", Impact, sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--cream); background: var(--black); font-family: var(--serif); }

/* ───────── Masthead (unchanged look) ───────── */
.history-masthead {
  position: relative; overflow: hidden;
  padding: clamp(28px, 3.5vw, 44px) 24px;
  border-bottom: 1px solid rgba(255, 61, 90, .5);
  background:
    linear-gradient(90deg, rgba(255, 61, 90, .12) 1px, transparent 1px),
    linear-gradient(rgba(255, 61, 90, .12) 1px, transparent 1px),
    linear-gradient(135deg, #282020, #151515 72%);
  background-size: 36px 36px, 36px 36px, auto;
}
.history-masthead-inner { position: relative; z-index: 1; width: min(1120px, 100%); margin: 0 auto; }
.history-kicker, .section-label, .entry-meta {
  font-family: var(--pixel); font-size: 8px; line-height: 1.8; letter-spacing: .04em; text-transform: uppercase;
}
.history-kicker { margin: 0 0 10px; color: var(--coral); }
.history-masthead h1 { margin: 0; color: #fff; font: 400 clamp(24px, 2.1vw, 30px)/1.15 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.history-masthead h1 span { color: var(--coral); }
.history-intro { max-width: 47ch; margin: 10px 0 0; color: rgba(241, 239, 232, .76); font-size: clamp(15px, 1.2vw, 17px); font-style: italic; line-height: 1.45; }

/* ───────── Entry base ─────────
   Markup: .entry-layout > .entry-head (meta + title) · .entry-art (.entry-cover + .event-gallery) · .entry-copy
   Each variant places those three blocks with grid-template-areas.
   Image colour treatment is NEVER set here — only inside a variant, per image role. */
.history-entry {
  --paper: #e8e4d9; --ink: #171717; --muted-ink: #5e5b55; --accent: #ff3d5a; --accent-ink: #b0185f;
  --card: rgba(255, 255, 255, .55); --line: rgba(0, 0, 0, .25);
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 24px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, .1) .55px, transparent .75px);
  background-size: 4px 4px;
}
.entry-layout { display: grid; gap: clamp(18px, 3vw, 34px); width: min(1000px, 100%); margin: 0 auto; }
.entry-head { grid-area: head; min-width: 0; }
.entry-art { grid-area: art; display: contents; }
.entry-copy { grid-area: copy; width: min(680px, 100%); min-width: 0; margin: 0 auto; }

.entry-cover, .event-thumb { position: relative; margin: 0; overflow: hidden; isolation: isolate; background: #222; }
.entry-cover img, .event-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-image { position: absolute; inset: 0; }
.event-gallery { display: grid; gap: 10px; margin: 0; }
.history-entry .event-gallery.event-gallery--single { grid-template-columns: minmax(0, 1fr); }
.history-entry .event-gallery.event-gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-thumb { aspect-ratio: 4 / 3; }
.cover-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(18px, 4vw, 30px)/1.5 var(--pixel); text-align: center; color: rgba(255, 255, 255, .9); }
.image-unavailable::before { color: rgba(255, 255, 255, .4); font: 8px var(--pixel); content: "IMAGE UNAVAILABLE"; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 0; color: var(--accent-ink); }
.entry-head h2 { margin: 8px 0 0; font: 400 clamp(24px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.entry-description { margin: 0; color: var(--ink); font: 500 clamp(16px, 1.25vw, 18px)/1.55 var(--serif); }
.entry-description + .entry-description { margin-top: .8em; }
.award-count { display: inline-flex; align-items: baseline; gap: 8px; margin: 18px 0 0; padding: 8px 10px; background: rgba(0, 0, 0, .07); border-left: 3px solid var(--accent); font-size: 13px; text-transform: uppercase; }
.award-count b { color: var(--accent-ink); font: 400 22px var(--display); }
.event-awards { margin-top: 24px; padding-top: 16px; border-top: 4px dashed var(--line); }
.section-label { display: flex; justify-content: space-between; margin: 0 0 11px; color: var(--accent-ink); }
.section-label span { color: var(--muted-ink); }
.award-list { display: grid; gap: 7px; }
.award-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: var(--ink); background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.award-item:hover { border-color: var(--accent); }
.award-mark { color: var(--accent-ink); font-size: 20px; }
.award-item b, .award-item small { display: block; }
.award-item b { font-size: 13px; }
.award-item small { margin-top: 2px; color: var(--muted-ink); font-size: 12px; }
.entry-rule { display: none; }

/* ═════════ 1 · OASIS — blue archive poster ═════════
   The full-width cover is followed by every available gallery image. */
.history-entry--poster { --paper: #dedad0; --accent: #4a9fe5; --accent-ink: #245c92; }
.history-entry--pastel-rose { --accent: #e9a8bb; --accent-ink: #754354; }
.history-entry--pastel-peach { --accent: #efb996; --accent-ink: #805339; }
.history-entry--pastel-butter { --accent: #e8d58a; --accent-ink: #71602d; }
.history-entry--pastel-mint { --accent: #9dcbb4; --accent-ink: #426b55; }
.history-entry--pastel-sage { --accent: #b4c39a; --accent-ink: #52613d; }
.history-entry--pastel-sky { --accent: #9dc8e2; --accent-ink: #3d627a; }
.history-entry--pastel-aqua { --accent: #91c9c5; --accent-ink: #3d6865; }
.history-entry--pastel-lavender { --accent: #b8addc; --accent-ink: #5e527e; }
.history-entry--pastel-lilac { --accent: #d0abd0; --accent-ink: #755374; }
.history-entry--pastel-coral { --accent: #eaa69a; --accent-ink: #794b43; }
.history-entry--bold-pink { --accent: #d81b60; --accent-ink: #971447; }
.history-entry--bold-orange { --accent: #f26a12; --accent-ink: #a93e00; }
.history-entry--bold-blue { --accent: #287ec0; --accent-ink: #164c75; }
.history-entry--poster .entry-layout { width: min(1120px, 100%); grid-template-areas: "head" "cover" "thumbs" "copy"; justify-items: center; }
.history-entry--poster .event-gallery { grid-area: thumbs; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 12px; }
.history-entry--poster .event-thumb { aspect-ratio: 1.15 / 1; border: 3px solid #111; background: #111; }
.history-entry--poster .cover-image { filter: grayscale(1) brightness(1.12) contrast(1.35); mix-blend-mode: multiply; }
.history-entry--poster .event-thumb img { filter: grayscale(1) brightness(1.12) contrast(1.35); }
.history-entry--poster .cover-image,
.history-entry--poster .event-thumb img { cursor: zoom-in; }
.image-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 56px 18px 18px;
  color: #fff;
  background: rgba(8, 8, 8, .97);
  border: 0;
}
.image-viewer[open] { display: grid; place-items: center; }
.image-viewer::backdrop { background: rgba(0, 0, 0, .9); }
.image-viewer img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-viewer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 10px 14px;
  color: #fff;
  background: #222;
  border: 1px solid rgba(255, 255, 255, .5);
  font: 12px var(--pixel);
  cursor: pointer;
}
.image-viewer-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.history-entry--poster .entry-head { position: relative; z-index: 0; width: 100%; text-align: center; }
.history-entry--poster .entry-meta { justify-content: center; color: #222; font: clamp(15px, 1.4vw, 18px)/1 var(--hand); text-transform: none; letter-spacing: 0; transform: rotate(-2deg); }
.history-entry--poster .entry-head h2 { margin-top: 10px; color: var(--accent); font: 400 clamp(30px, 4vw, 52px)/1 var(--display); letter-spacing: -.01em; }
.history-entry--poster .entry-cover { grid-area: cover; z-index: 1; width: 100%; aspect-ratio: 4 / 3; background: var(--accent); }
.history-entry--poster .entry-cover::after { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; background: var(--accent); mix-blend-mode: screen; opacity: .25; }

/* ═════════ 4 · INFERNO — red album collage ═════════
   LAYOUT : large main photo left, tilted white-border snapshots right, black star burst, title overlapping the bottom
   OVERLAY: photos stay IN COLOUR (no b/w); only a light red cast so they sit on the red page. */
.history-entry--collage { --paper: #d92a1f; --ink: #fff5ea; --muted-ink: #ffd9d2; --accent: #fff5ea; --accent-ink: #fff5ea; --card: rgba(0, 0, 0, .28); --line: rgba(255, 245, 234, .4); background-image: radial-gradient(rgba(0, 0, 0, .16) .55px, transparent .75px); }
.history-entry--collage .entry-layout { grid-template-areas: "art" "head" "copy"; }
.history-entry--collage .entry-art { display: grid; position: relative; isolation: isolate; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(10px, 2.5vw, 28px); }
.history-entry--collage .entry-art::before {
  position: absolute; z-index: -1; top: -6%; right: -2%; width: clamp(60px, 12vw, 120px); aspect-ratio: 1; content: ""; background: #111; pointer-events: none;
  clip-path: polygon(100% 50%, 63.9% 55.7%, 85.4% 85.4%, 55.7% 63.9%, 50% 100%, 44.3% 63.9%, 14.6% 85.4%, 36.1% 55.7%, 0 50%, 36.1% 44.3%, 14.6% 14.6%, 44.3% 36.1%, 50% 0, 55.7% 36.1%, 85.4% 14.6%, 63.9% 44.3%);
}
.history-entry--collage .entry-cover { aspect-ratio: 4 / 3; box-shadow: 8px 8px 0 rgba(0, 0, 0, .35); }
.history-entry--collage .entry-cover img { object-fit: contain; }
.history-entry--collage .event-gallery { grid-template-columns: 1fr 1fr; gap: clamp(10px, 2.5vw, 22px); }
.history-entry--collage .event-thumb { aspect-ratio: 1.1 / 1; border: 6px solid #fff5ea; border-bottom-width: 16px; background: #fff5ea; box-shadow: 5px 5px 0 rgba(0, 0, 0, .3); }
.history-entry--collage .event-thumb:nth-child(1) { transform: rotate(-4deg); }
.history-entry--collage .event-thumb:nth-child(2) { transform: rotate(3deg) translateY(10px); }
.history-entry--collage .event-thumb:nth-child(3) { transform: rotate(4deg); }
.history-entry--collage .event-thumb:nth-child(4) { transform: rotate(-3deg) translateY(-8px); }
.history-entry--collage .entry-cover::after, .history-entry--collage .event-thumb::after { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; background: #ff2a1a; mix-blend-mode: multiply; opacity: .18; }
.history-entry--collage .entry-head { position: relative; z-index: 3; }
.history-entry--collage .entry-head h2 { margin: 6px 0 0; color: #fff5ea; font: 700 clamp(34px, 4.5vw, 60px)/1 var(--serif); letter-spacing: -.02em; text-transform: lowercase; text-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }

/* Gallery: one continuous red page of photographs. */
html:has(.gallery-page) { background: #d92a1f; }
body.gallery-page { background: #d92a1f; }
.gallery-page .history-masthead { background: #d92a1f radial-gradient(rgba(0, 0, 0, .16) .55px, transparent .75px) 0 0 / 4px 4px; border-bottom: 1px solid rgba(255, 245, 234, .4); }
.gallery-page .history-masthead-inner { width: min(1180px, 100%); }
.gallery-page .history-kicker, .gallery-page .history-intro { color: #fff5ea; }
.gallery-page .history-masthead h1 span { color: #111; }
.gallery-filter { display: flex; align-items: center; gap: 12px; width: min(1180px, calc(100% - 48px)); margin: 22px auto 0; color: #fff5ea; font: 8px/1.8 var(--pixel); letter-spacing: .04em; text-transform: uppercase; }
.gallery-filter select { padding: 7px 10px; color: #fff5ea; background: #111; border: 1px solid #fff5ea; font: 14px var(--serif); cursor: pointer; }
.gallery-page .history-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.gallery-page .history-entry { padding: clamp(24px, 3.5vw, 44px) 0; background: none; border-bottom: 1px solid rgba(255, 245, 234, .35); overflow: visible; }
.gallery-page .history-entry:last-child { border-bottom: 0; }
.gallery-page .entry-layout { width: 100%; gap: clamp(14px, 2vw, 24px); }
.gallery-page .history-entry--collage .entry-layout { grid-template-areas: "head" "art"; }
.gallery-page .history-entry--collage .entry-art { display: block; }
.gallery-page .history-entry--collage .entry-art::before { top: -14px; right: -12px; width: clamp(44px, 5vw, 64px); }
.gallery-page .history-entry--collage .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.gallery-page .history-entry--collage .event-thumb { aspect-ratio: 4 / 3; border: 6px solid #fff5ea; border-bottom-width: 18px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .3); cursor: zoom-in; }
.gallery-page .history-entry--collage .event-gallery.event-gallery--single { grid-template-columns: minmax(0, 1fr); }
.gallery-page .history-entry--collage .event-gallery--single .event-thumb { aspect-ratio: 16 / 9; }
.gallery-page .history-entry--collage .event-thumb:nth-child(4n+1) { transform: rotate(-1.2deg); }
.gallery-page .history-entry--collage .event-thumb:nth-child(4n+2) { transform: rotate(1deg); }
.gallery-page .history-entry--collage .event-thumb:nth-child(4n+3) { transform: rotate(1.2deg); }
.gallery-page .history-entry--collage .event-thumb:nth-child(4n) { transform: rotate(-1deg); }
.gallery-page .history-entry--collage .event-thumb::after { opacity: .04; }
.gallery-page .history-entry--collage .entry-head h2 { font-size: clamp(30px, 3.2vw, 44px); }

/* BECON uses the same archive art direction, but larger image canvases. */
.becon-page .history-feed { width: min(1440px, calc(100% - 32px)); }
.becon-page .history-entry { padding: clamp(24px, 4vw, 64px) clamp(18px, 5vw, 72px); }
.becon-page .entry-layout { width: 100%; gap: clamp(18px, 3vw, 36px); }
.becon-page .entry-copy { width: min(980px, 100%); }
.becon-page .history-entry--collage .entry-art { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); }
.becon-page .history-entry--collage .entry-cover { aspect-ratio: 4 / 3; }
.becon-page .history-entry--collage .event-gallery { gap: clamp(12px, 2vw, 24px); }
.becon-page .history-entry--collage .event-thumb { aspect-ratio: 1.2 / 1; }

/* About page keeps the shared archive layout, using a darker palette. */
.about-page .history-feed { grid-template-columns: minmax(0, 1fr); }
.about-page .history-entry--poster { --paper: #292c35; --ink: #f1efe8; --muted-ink: #c2c1c4; --card: rgba(255,255,255,.08); --line: rgba(255,255,255,.28); }
.about-page .history-entry--poster .entry-description { color: var(--ink); }
.about-page .history-entry--poster .entry-meta { color: #d4deef; }
.about-page .history-entry--poster .entry-cover { background: #172a48; }
.about-page .history-entry--collage { --paper: #711a19; --ink: #fff5ea; --muted-ink: #f1c5bd; --card: rgba(0,0,0,.25); --line: rgba(255,245,234,.4); }
.about-page .history-entry--collage .entry-description { color: var(--ink); }
.about-page .history-entry--poster .cover-image { filter: grayscale(1) brightness(1.12) contrast(1.2); mix-blend-mode: normal; }
.about-page .history-entry--poster .entry-cover::after {
  display: block;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: .85;
}
.about-page .history-entry--collage .entry-cover img { filter: grayscale(1) brightness(1.12) contrast(1.2); }
.about-page .history-entry--collage .entry-cover::after {
  display: block;
  background: #ff2a1a;
  mix-blend-mode: color;
  opacity: .85;
}
.about-page .history-entry .event-thumb img { filter: grayscale(1) brightness(1.08) contrast(1.2); }
.about-page .history-entry .event-thumb::after { display: none; }
.about-page .archive { background: #0c0c0e; }

/* History cards sit side by side, so the red card stacks its photos to match the height of its neighbour. */
.history-page .history-entry--collage .entry-cover img { object-fit: cover; }
.history-page .history-entry .event-gallery--single .event-thumb { aspect-ratio: 21 / 9; }
@media (min-width: 900px) {
  .history-page .history-entry--collage .entry-art { grid-template-columns: minmax(0, 1fr); }
  .history-page .history-entry--collage .event-gallery:not(.event-gallery--pair, .event-gallery--single) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Closing note on About and BECON. */
.archive { --ink: var(--cream); --muted-ink: var(--muted); --card: var(--panel); --line: rgba(255, 61, 90, .45); --accent: var(--coral); --accent-ink: var(--coral); padding: clamp(32px, 5vw, 56px) 24px; }
.archive-inner { width: min(1000px, 100%); margin: 0 auto; }
.archive h2 { margin: 0 0 10px; color: #fff; font: 400 clamp(24px, 2.6vw, 34px)/1.1 var(--display); text-transform: uppercase; }
.archive p:not(.history-kicker) { max-width: 62ch; margin: 0 0 14px; color: rgba(241, 239, 232, .76); font-size: 17px; line-height: 1.55; }
.archive .award-item { max-width: 340px; }

/* ───────── State + responsive ───────── */
.history-state { width: min(880px, calc(100% - 40px)); margin: 54px auto; padding: 42px 22px; color: var(--cream); background: var(--panel); border: 1px solid rgba(255, 61, 90, .45); font: 400 18px/1.6 var(--serif); text-align: center; }
.history-state small { display: block; margin-top: 10px; color: var(--muted); font: 14px/1.6 var(--serif); }
.history-state button { margin-top: 18px; padding: 12px 16px; color: var(--black); background: var(--coral); border: 0; font: 8px var(--pixel); cursor: pointer; }

@media (min-width: 900px) {
  .gallery-page .history-entry--collage .entry-layout { grid-template-columns: 170px minmax(0, 1fr); grid-template-areas: "head art"; align-items: start; }

  .history-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
  }

  .history-entry {
    min-width: 0;
    padding: clamp(16px, 1.6vw, 22px) clamp(12px, 1.2vw, 18px);
  }

  .entry-layout { width: 100%; gap: 10px; }
  .entry-copy { width: 100%; }
  .history-feed > .history-entry:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .history-entry--poster .entry-layout { width: 100%; }
  .history-entry--poster .entry-head h2 { font-size: clamp(28px, 3vw, 40px); }
  .history-entry--poster .event-gallery { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .history-entry--poster .entry-cover { aspect-ratio: 4 / 3; }
  .history-entry--poster .event-thumb { aspect-ratio: 1.35 / 1; }

  .history-entry--collage .entry-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .history-entry--collage .entry-cover { aspect-ratio: 4 / 3; }
  .history-entry--collage .event-gallery { gap: 9px; }
  .history-entry--collage .event-thumb { border-width: 3px; border-bottom-width: 9px; }
  .history-entry--collage .entry-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
}

@media (min-width: 900px) {
  .becon-page .history-feed { grid-template-columns: minmax(0, 1fr); }
  .becon-page .history-entry--poster .entry-head h2 { font-size: clamp(32px, 4vw, 56px); }
  .becon-page .history-entry--poster .entry-cover { aspect-ratio: 16 / 9; }
  .becon-page .history-entry--poster .event-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px); }
  .becon-page .history-entry--poster .event-thumb { aspect-ratio: 4 / 3; }
}

@media (min-width: 900px) {
  .about-page .history-feed { grid-template-columns: minmax(0, 1fr); }
  .about-page .history-entry { padding: clamp(32px, 5vw, 72px) clamp(24px, 7vw, 100px); }
  .about-page .entry-layout { width: min(1180px, 100%); gap: clamp(20px, 3vw, 38px); }
  .about-page .entry-copy { width: min(1000px, 100%); }
  .about-page .history-entry--collage .entry-art { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 42px); }
  .about-page .history-entry--collage .entry-cover { aspect-ratio: 4 / 3; }
  .about-page .history-entry--collage .event-gallery { gap: clamp(12px, 2vw, 22px); }
  .about-page .history-entry--collage .event-thumb { aspect-ratio: 1.2 / 1; }
}

@media (max-width: 640px) {
  .gallery-page .history-feed, .gallery-filter { width: calc(100% - 32px); }
  .gallery-page .history-entry { padding: 24px 0; }
  .gallery-page .history-entry--collage .event-gallery { grid-template-columns: minmax(0, 1fr); }

  .history-entry { padding: 34px 18px; }
  .history-entry--collage .entry-art { grid-template-columns: 1fr; }
  .history-entry--poster .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .history-entry--poster .entry-cover { width: 100%; }
  .history-entry--poster .entry-head h2 { font-size: 32px; }
  .entry-meta { font-size: 7px; }
  .becon-page .history-entry { padding: 28px 16px; }
  .becon-page .history-entry--collage .entry-art { grid-template-columns: 1fr; }
  .becon-page .history-entry--poster .entry-cover { aspect-ratio: 4 / 3; }
  .becon-page .history-entry--poster .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
/* BECON logo, cropped to the artwork (the source file has wide white margins) */
.becon-mark{--s:72px;position:relative;flex:none;display:block;width:var(--s);height:var(--s);overflow:hidden;background:#fff;border:2px solid #f1efe8;box-shadow:4px 4px 0 #c4231a}
.becon-mark img{display:block;max-width:none;width:calc(var(--s) * 1.15);height:calc(var(--s) * 1.4375);margin:calc(var(--s) * -0.256) 0 0 calc(var(--s) * -0.048)}
.mast-title{display:flex;align-items:center;gap:clamp(12px,2vw,20px)}
.mast-title .becon-mark{--s:clamp(64px,7vw,88px)}
.mast-title h1{margin:0}

.becon-page .history-entry--collage .entry-cover img { object-fit: cover; }

.becon-page .history-masthead .history-intro{max-width:92ch}

/* BECON wrap poster, beside the closing text */
.becon-page .history-masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 17vw, 230px); grid-template-areas: "text poster"; column-gap: clamp(20px, 4vw, 56px); align-items: center; }
.becon-page .history-masthead-inner > *:not(.wrap-poster) { grid-column: 1; }
.wrap-poster { grid-column: 2; grid-row: 1 / span 4; margin: 0; background: #000; border: 2px solid var(--cream); box-shadow: 6px 6px 0 var(--coral); }
.wrap-poster img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .becon-page .history-masthead-inner { display: block; }
  .wrap-poster { width: min(60%, 240px); margin: 18px 0 0; }
}

/* the star always sits behind the pictures */
.history-entry--collage .entry-cover, .history-entry--collage .event-gallery { position: relative; z-index: 1; }

/* Gallery: every photo the same small size, four per row */
.gallery-page .history-entry--collage .event-gallery,
.gallery-page .history-entry--collage .event-gallery.event-gallery--single { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); padding: 8px; }
.gallery-page .history-entry--collage .event-thumb,
.gallery-page .history-entry--collage .event-gallery--single .event-thumb { aspect-ratio: 4 / 3; border-width: 5px; border-bottom-width: 14px; }
@media (max-width: 640px) {
  .gallery-page .history-entry--collage .event-gallery,
  .gallery-page .history-entry--collage .event-gallery.event-gallery--single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* on short rows the star would float away from the photos, so only show it on full rows */
.gallery-page .history-entry--collage .entry-art:not(:has(.event-thumb:nth-child(4)))::before { display: none; }

/* Gallery: dotted red background, photos in straight, even lines */
html:has(.gallery-page), body.gallery-page { background: #d92a1f radial-gradient(rgba(0, 0, 0, .3) 1.5px, transparent 1.8px) 0 0 / 16px 16px; }
.gallery-page .history-masthead { background: transparent; }
.gallery-page .history-entry--collage .event-thumb:nth-child(n) { transform: none; }
.gallery-page .history-entry--collage .event-gallery { align-items: start; }

/* Gallery page: black background with red dots */
html:has(.gallery-page), body.gallery-page { background: #000 radial-gradient(rgba(196, 35, 26, .75) 1.5px, transparent 1.8px) 0 0 / 16px 16px; }
.gallery-page .history-entry { border-bottom-color: rgba(196, 35, 26, .6); }

/* Gallery: year chips + lightbox navigation */
.gallery-chips { flex-wrap: wrap; gap: 8px; position: sticky; top: 46px; z-index: 20; padding: 10px 0; background: #d92a1f; }
.gallery-chip { padding: 8px 12px; color: #fff5ea; background: #111; border: 1px solid #fff5ea; font: 9px/1.2 var(--pixel); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.gallery-chip[aria-pressed="true"] { color: #111; background: #ffdf5e; }
.gallery-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.image-viewer-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 64px; margin-top: -32px; padding: 0; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .5); font: 34px/1 var(--serif); cursor: pointer; }
.image-viewer-nav[hidden] { display: none; }
.image-viewer-prev { left: 10px; }
.image-viewer-next { right: 10px; }
.image-viewer-count { position: absolute; left: 16px; top: 18px; margin: 0; font: 11px var(--pixel); color: #fff; }
@media (max-width: 640px) { .image-viewer-nav { width: 40px; height: 52px; margin-top: -26px; } }

/* History: the same cut-out collage in four colour sets (red is the default) */
.history-page .history-entry--collage { --star: #111; --tint: #ff2a1a; }
.history-page .history-entry--black { --paper: #121212; --ink: #fff5ea; --muted-ink: #b9c9c6; --accent: #2fd6c9; --accent-ink: #2fd6c9; --card: rgba(47, 214, 201, .1); --line: rgba(47, 214, 201, .55); --star: #2fd6c9; --tint: #12a398; background-image: radial-gradient(rgba(47, 214, 201, .22) .55px, transparent .75px); }
.history-page .history-entry--yellow { --paper: #111; --ink: #ffe03d; --muted-ink: #ffe03d; --accent: #ffe03d; --accent-ink: #ffe03d; --card: #1d1d1d; --line: #ff3d94; --star: #ff3d94; --tint: #ffe03d; background-image: radial-gradient(#ff3d94 1px, transparent 1.4px); background-size: 14px 14px; }
.history-page .history-entry--pink { --paper: #ff3d94; --ink: #000; --muted-ink: #000; --accent: #000; --accent-ink: #000; --card: rgba(255, 255, 255, .34); --line: #000; --star: #000; --tint: #ff3d94; }
.history-page .history-entry--collage .entry-art::before { background: var(--star); }
.history-page .history-entry--collage .entry-cover::after,
.history-page .history-entry--collage .event-thumb::after { background: var(--tint); }
.history-page .history-entry--black .entry-cover { box-shadow: 8px 8px 0 #0d8077; }
.history-page .history-entry--yellow .entry-cover { box-shadow: 8px 8px 0 #ff3d94; }
.history-page .history-entry--pink .entry-cover { box-shadow: 8px 8px 0 #000; }
.history-page .history-entry--black .entry-head h2 { color: #2fd6c9; text-shadow: 3px 3px 0 rgba(47, 214, 201, .25); }
.history-page .history-entry--yellow .entry-head h2 { color: #ffe03d; text-shadow: 3px 3px 0 #b3165c; }
/* a clear strip behind the text, so the dots do not run through the letters */
.history-page .history-entry--yellow :is(.entry-head h2, .entry-meta, .entry-description, .section-label) { width: fit-content; background: #111; box-shadow: 0 0 0 5px #111; }
.history-page .history-entry--yellow .section-label { width: auto; }
.history-page .history-entry--pink .entry-head h2 { color: #000; text-shadow: 3px 3px 0 #fff; }
.history-page :is(.history-entry--yellow, .history-entry--pink) :is(.entry-description, .award-item small) { font-weight: 700; }
/* tilted thumbnails no longer cover the date */
.history-page .history-entry--collage .entry-head { padding-top: 18px; }

/* History: compact recognitions, one to three columns depending on the card's width */
.history-page .event-awards { margin-top: 14px; padding-top: 10px; border-top-width: 2px; }
.history-page .section-label { align-items: center; margin-bottom: 8px; font-size: 10px; }
.history-page .award-pill { display: inline-block; margin: 0; padding: 4px 8px; color: var(--paper); background: var(--accent-ink); font: 10px/1.4 var(--pixel); text-transform: uppercase; }
.history-page p.award-pill { margin-top: 14px; }
.history-page .award-list { grid-template-columns: repeat(auto-fill, minmax(max(146px, 33.33% - 4px), 1fr)); gap: 6px; }
.history-page .award-item { min-width: 0; min-height: 46px; gap: 8px; padding: 4px 8px 4px 5px; }
.history-page .award-item > span:last-child { min-width: 0; }
.history-page .award-item b { font-size: 14px; line-height: 1.1; overflow-wrap: anywhere; }
.history-page .award-item small { margin-top: 1px; font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.award-avatar { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; color: var(--paper); background: var(--accent-ink); border-radius: 50%; font: 700 17px/1 var(--serif); text-transform: uppercase; }
.award-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* History header */
.history-page .history-masthead { padding: clamp(22px, 3vw, 40px) 24px; background: #151515; border-bottom: 0; }
.history-page .history-masthead-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; width: min(1180px, 100%); }
.history-page .history-masthead-inner > div { flex: 1 1 420px; }
.history-page .history-masthead h1 { color: #fff5ea; font-size: clamp(64px, 10vw, 132px); line-height: 1; text-shadow: clamp(4px, .6vw, 8px) clamp(4px, .6vw, 8px) 0 #d92a1f; }
.history-page .history-intro { max-width: 40ch; margin-top: 16px; color: #f1efe8; font-size: clamp(18px, 1.5vw, 21px); font-style: normal; font-weight: 600; }
.history-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.history-stats li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 16px; color: #000; background: #2fd6c9; font: 700 18px/1 var(--serif); }
.history-stats li:nth-child(2) { background: #f2b632; }
.history-stats li:nth-child(3) { padding: 0; background: #ff3d94; }
.history-stats b { font: 400 28px/1 var(--display); }
.history-stats a { display: flex; align-items: center; min-height: 52px; padding: 6px 16px; color: #000; }
.history-stats a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
