/* ==========================================================================
   MISMUN 2026 — "Liberty"
   Punk-zine / newspaper-collage system: torn paper, halftone, tape,
   ransom-note lettering, starburst stickers.
   ========================================================================== */

:root {
  /* palette — pulled from the logo and collage artwork */
  --black: #09070f;
  --ink: #110e24;
  --ink-2: #1a1736;
  --ink-3: #26224c;
  --indigo: #363489;
  --violet: #5d58b8;
  --lavender: #a69ee6;
  --lilac: #d4cef5;
  --paper: #ece8f3;
  --newsprint: #efe6d3;
  --magenta: #d1357f;
  --magenta-d: #a3215b;
  --gold: #f4c13b;
  --flame: #f0892c;
  --peach: #e9b183;
  --text: #ece9f7;
  --muted: #b9b3da;
  /* "Meet the team" poster colours from @mismunqa */
  --admin: #6343cf;
  --salmon: #ee8f8c;
  --teal: #187a77;
  --butter: #f1e8a1;
  --pink: #c23d73;
  --mint: #7fd5a3;
  --tag-pink: #f4b3cb;
  --cream: #f2ead8;
  --poster-purple: #4b2c7f;

  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-slab: "Alfa Slab One", Rockwell, Georgia, serif;
  --f-marker: "Permanent Marker", "Anton", Impact, sans-serif;
  --f-cond: "Roboto Serif", "Playfair Display", Georgia, serif;
  --f-black: "UnifrakturMaguntia", "Old English Text MT", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --star: polygon(50% 0.6%, 57.1% 9.8%, 66.5% 4.6%, 69.7% 15.9%, 81.6% 12.3%, 78.4% 26.1%, 92.8% 25.3%, 86.5% 36.7%, 99.1% 41.3%, 89.8% 50%, 97.2% 58.3%, 87.2% 63.5%, 92% 74.3%, 77.7% 73.2%, 81.9% 88%, 70.3% 85.2%, 67% 96.6%, 56.8% 88.8%, 50% 97.3%, 43.7% 85.6%, 33.8% 94.5%, 29.8% 84.9%, 19.8% 86%, 18.8% 76.2%, 8.7% 73.9%, 14.2% 63%, 1.5% 58.6%, 10.4% 50%, 3.4% 41.8%, 14.3% 37%, 7.3% 25.4%, 20.9% 25.6%, 19.6% 13.7%, 30.6% 16.4%, 33.3% 4%, 43.2% 11.5%);
  --tape-shape: polygon(0 12%, 4% 0, 96% 0, 100% 14%, 97% 32%, 100% 50%, 97% 68%, 100% 86%, 96% 100%, 4% 100%, 0 88%, 3% 68%, 0 50%, 3% 32%);

  /* grain + distress textures */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .07 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --distress: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  --halftone: radial-gradient(circle, rgba(9, 7, 15, .55) 1.05px, transparent 1.6px) 0 0 / 6px 6px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: hidden;
}
/* fixed collage wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(17, 14, 36, .9), rgba(17, 14, 36, .96)),
    url("../img/collage-square.webp") center / cover;
}
/* photocopy grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: var(--grain);
  opacity: .14;
  mix-blend-mode: overlay;
}
main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--gold); color: var(--black); padding: .6em 1em;
  font: 400 1rem/1 var(--f-display); text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }
::selection { background: var(--magenta); color: #fff; }

/* ---------- torn edges (mask tiles) ---------- */
.torn-b {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 17px) no-repeat, url("../img/torn-bottom.svg") bottom / 400px 18px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 17px) no-repeat, url("../img/torn-bottom.svg") bottom / 400px 18px repeat-x;
}
.torn-t {
  -webkit-mask: url("../img/torn-top.svg") top / 400px 18px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 17px) no-repeat;
          mask: url("../img/torn-top.svg") top / 400px 18px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 17px) no-repeat;
}
.torn-tb {
  -webkit-mask:
    url("../img/torn-top.svg") var(--tx, 0) 0 / 400px 18px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 34px) no-repeat,
    url("../img/torn-bottom.svg") var(--bx, 120px) 100% / 400px 18px repeat-x;
          mask:
    url("../img/torn-top.svg") var(--tx, 0) 0 / 400px 18px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 34px) no-repeat,
    url("../img/torn-bottom.svg") var(--bx, 120px) 100% / 400px 18px repeat-x;
}

/* ---------- paper scraps ---------- */
.shell {
  position: relative;
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .55));
}
.shell.taped::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -12px;
  left: 50%;
  width: 104px;
  height: 30px;
  margin-left: -52px;
  background: rgba(240, 229, 196, .82);
  clip-path: var(--tape-shape);
  transform: rotate(var(--tr, -5deg));
}
.scrap {
  position: relative;
  background: var(--grain-paper), var(--paper);
  color: var(--ink);
  padding: clamp(26px, 3.2vw, 38px) clamp(20px, 3vw, 34px);
}
.scrap--news { background: var(--grain-paper), var(--newsprint); }
.scrap--lav { background: var(--grain-paper), var(--lavender); }
.scrap--gold { background: var(--grain-paper), var(--gold); }
.scrap--magenta { background: var(--grain-paper), var(--magenta); color: #fff; }
.scrap--ink { background: var(--grain), var(--ink-2); color: var(--text); }
.scrap--black { background: var(--grain), var(--black); color: #fff; }
.scrap--violet { background: var(--grain-paper), var(--admin); color: #fff; }
.scrap--teal { background: var(--grain-paper), var(--teal); color: #fff; }
.scrap--pink { background: var(--grain-paper), var(--pink); color: #fff; }
.scrap--butter { background: var(--grain-paper), var(--butter); }
.scrap--cream {
  background:
    var(--grain-paper),
    radial-gradient(ellipse at 84% 12%, rgba(150, 105, 40, .13), transparent 38%),
    radial-gradient(ellipse at 12% 88%, rgba(150, 105, 40, .1), transparent 42%),
    var(--cream);
}
.scrap p:last-child { margin-bottom: 0; }

.halftone { position: relative; }
.halftone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--halftone);
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
}

/* ---------- type pieces ---------- */
.label {
  display: block;
  width: fit-content;
  margin: 0 0 .7rem;
  font: 400 .95rem/1.2 var(--f-type);
  letter-spacing: .05em;
  color: var(--gold);
}
.label--dark { color: var(--magenta-d); }
.h2 {
  font: 400 clamp(2.2rem, 5.2vw, 3.6rem)/.98 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0 0 1.1rem;
}
.h3 {
  font: 400 clamp(1.5rem, 3vw, 2rem)/1 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 .7rem;
}
.lede {
  font: 400 clamp(1.05rem, 2vw, 1.25rem)/1.5 var(--f-type);
  color: var(--lilac);
  max-width: 46ch;
  margin: 0;
}
.type { font-family: var(--f-type); }

/* black torn strip behind white lettering, like the "Save the date" poster */
.strip {
  display: inline-block;
  background: var(--black);
  color: #fff;
  padding: .12em .26em .1em;
  -webkit-mask:
    url("../img/torn-top.svg") 0 0 / 300px 10px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 18px) no-repeat,
    url("../img/torn-bottom.svg") 90px 100% / 300px 10px repeat-x;
          mask:
    url("../img/torn-top.svg") 0 0 / 300px 10px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 18px) no-repeat,
    url("../img/torn-bottom.svg") 90px 100% / 300px 10px repeat-x;
}
.distress {
  display: inline-block;
  -webkit-mask: var(--distress) 0 0 / 260px 260px;
          mask: var(--distress) 0 0 / 260px 260px;
}

/* cut-out label chip ("MISMUN is BACK") */
.chip {
  display: inline-block;
  background: #fff;
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  padding: .38em .6em .32em;
  font: 400 1rem/1 var(--f-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: rotate(var(--r, -2deg));
}
.chip small { font-family: var(--f-type); font-size: .8em; text-transform: lowercase; letter-spacing: 0; }
.chip--gold { background: var(--gold); }
.chip--magenta { background: var(--magenta); color: #fff; }
.chip--ink { background: var(--black); color: var(--paper); border-color: var(--paper); box-shadow: 3px 3px 0 var(--magenta); }

/* ransom-note lettering (built by main.js from [data-ransom]) */
.ransom { font-size: clamp(2.3rem, 9vw, 5.8rem); line-height: 1.12; }
.ransom__vis { display: flex; flex-wrap: wrap; gap: .14em .32em; }
.ransom .w { display: inline-flex; white-space: nowrap; }
.ransom .l {
  display: inline-block;
  margin: 0 .012em;
  padding: .05em .1em .02em;
  line-height: 1;
  box-shadow: .045em .05em 0 rgba(0, 0, 0, .6);
}
.l.v1 { background: var(--paper); color: var(--ink); font-family: var(--f-serif); font-weight: 900; }
.l.v2 { background: var(--black); color: var(--paper); font-family: var(--f-display); font-size: .94em; padding-inline: .14em; }
.l.v3 { background: var(--magenta); color: #fff; font-family: var(--f-slab); font-size: .9em; }
.l.v4 { background: var(--gold); color: var(--black); font-family: var(--f-display); font-size: .94em; padding-inline: .14em; }
.l.v5 { background: var(--lavender); color: var(--ink); font-family: var(--f-serif); font-style: italic; font-weight: 900; }
.l.v6 { background: var(--newsprint); color: var(--ink); font-family: var(--f-type); font-size: 1.02em; }
.l.v7 { background: var(--mint); color: var(--ink); font-family: var(--f-slab); font-size: .9em; }
.l.v8 { background: #fff; color: var(--magenta-d); font-family: var(--f-marker); font-size: .92em; }
.ransom--sm { font-size: clamp(1.7rem, 4vw, 2.4rem); }

/* starburst sticker */
.star-wrap { filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .55)); display: inline-block; }
.star {
  width: var(--size, 150px);
  aspect-ratio: 1;
  clip-path: var(--star);
  background: var(--grain-paper), var(--gold);
  color: var(--black);
  display: grid;
  place-content: center;
  text-align: center;
  font: 400 calc(var(--size, 150px) * .2)/.95 var(--f-display);
  text-transform: uppercase;
  transform: rotate(var(--r, -8deg));
}
.star small { display: block; font: 400 .5em/1.2 var(--f-type); text-transform: none; }
.star--paper { background: var(--grain-paper), var(--paper); }
.star--magenta { background: var(--grain-paper), var(--magenta); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.3em .8em;
  border: 3px solid var(--black);
  background: var(--magenta);
  color: #fff;
  box-shadow: 5px 5px 0 var(--black);
  font: 400 1.12rem/1 var(--f-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--black); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--black); }
.btn--paper { background: var(--paper); color: var(--black); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 5px 5px 0 var(--magenta); }
.btn[aria-disabled="true"] {
  background: #403b62;
  color: #c5bfe6;
  cursor: not-allowed;
  box-shadow: 5px 5px 0 var(--black);
  transform: none;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  padding-bottom: 14px;
  background: var(--grain), var(--black);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { height: 50px; width: auto; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .6)); }
.brand__name { font: 400 1.55rem/1 var(--f-display); letter-spacing: .05em; color: #fff; }
.brand__year {
  display: inline-block;
  margin-left: .35rem;
  padding: .28em .42em .22em;
  background: var(--gold);
  color: var(--black);
  font: 400 .78rem/1 var(--f-display);
  letter-spacing: .06em;
  transform: rotate(-7deg) translateY(-2px);
}
.nav ul { display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: .62em .72em .56em;
  color: var(--lilac);
  font: 400 1rem/1 var(--f-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s, background-color .15s, transform .15s;
}
.nav a:hover { color: #fff; background: var(--ink-3); transform: rotate(-1.5deg); }
.nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--magenta);
  transform: rotate(-2.5deg);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .6em .85em .55em;
  border: 2px solid #000;
  background: var(--paper);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--magenta);
  font: 400 1rem/1 var(--f-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(2deg);
}
.menu-btn__bars { display: grid; gap: 4px; }
.menu-btn__bars span { display: block; width: 20px; height: 3px; background: var(--black); }
.menu-btn__bars span:nth-child(2) { width: 14px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 14px var(--gutter) 40px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(9, 7, 15, .8), rgba(9, 7, 15, .93)),
    url("../img/collage-square.webp") center / cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.menu__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin: auto 0;
  padding: 28px 0;
  list-style: none;
}
.menu__list a {
  display: inline-block;
  padding: .12em .3em .08em;
  background: var(--paper);
  color: var(--black);
  box-shadow: 5px 5px 0 #000;
  font: 400 clamp(2.2rem, 10vw, 3.4rem)/1 var(--f-display);
  text-transform: uppercase;
  text-decoration: none;
  transform: rotate(var(--r, -2deg));
}
.menu__list li:nth-child(3n+2) a { background: var(--lavender); }
.menu__list li:nth-child(3n) a { background: var(--newsprint); }
.menu__list a[aria-current="page"] { background: var(--gold); }
.menu__foot { font-family: var(--f-type); color: var(--lilac); }
.menu__foot a { color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  margin-top: -14px;
  padding: clamp(64px, 9vw, 120px) 0 clamp(70px, 8vw, 110px);
  background:
    linear-gradient(180deg, rgba(17, 14, 36, .35) 0%, rgba(17, 14, 36, .55) 55%, rgba(17, 14, 36, .9) 100%),
    url("../img/collage-wide.webp") var(--hero-pos, center) / cover;
}
.page-hero .chip { margin-bottom: 1.1rem; }
.page-hero .ransom { margin: 0 0 1.1rem; }
.page-hero__star { position: absolute; right: max(var(--gutter), calc(50% - 560px)); bottom: 46px; }
@media (max-width: 720px) {
  .page-hero { background-image: linear-gradient(180deg, rgba(17, 14, 36, .45), rgba(17, 14, 36, .92)), url("../img/collage-wide-sm.webp"); }
  .page-hero__star { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tight { padding-top: clamp(28px, 4vw, 48px); }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.section__head p { color: var(--muted); margin: 0; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* ---------- HOME ---------- */
.hero {
  position: relative;
  margin-top: -14px;
  padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 12vw, 160px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 50%, rgba(17, 14, 36, .15), rgba(17, 14, 36, .8) 72%),
    linear-gradient(180deg, transparent 60%, rgba(17, 14, 36, .85)),
    url("../img/collage-wide.webp") center / cover;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.hero__logo { position: relative; }
.hero__logo img {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .6));
  animation: float 8s ease-in-out infinite;
}
.hero__star { position: absolute; right: 0; bottom: 4%; }
.hero__title { margin: .5em 0 .55em -.15em; transform: rotate(-1.2deg); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
  font: 400 1.08rem/1.4 var(--f-type);
  color: var(--lilac);
}
.hero__meta li::before { content: "✦ "; color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.1rem; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@media (max-width: 860px) {
  .hero { background-image: radial-gradient(ellipse at 50% 30%, rgba(17, 14, 36, .2), rgba(17, 14, 36, .85) 75%), linear-gradient(180deg, transparent 60%, rgba(17, 14, 36, .85)), url("../img/collage-wide-sm.webp"); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo img { max-width: 320px; }
  .hero__star { right: 0; bottom: -2%; }
  .hero__star .star, .hero__star .star4 { --size: 104px !important; }
}

/* countdown strip */
.countdown { position: relative; z-index: 5; margin-top: clamp(-110px, -9vw, -70px); }
.countdown .scrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.countdown__title { margin: 0; font: 400 clamp(1.6rem, 3.4vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; }
.countdown__units { display: flex; gap: clamp(10px, 2.4vw, 26px); margin: 0; }
.countdown__unit { text-align: center; min-width: 3.6ch; }
/* white paper number chips, like the "03 12 2026 to 04 12 2026" reel */
.countdown__unit span {
  display: block;
  padding: .12em .2em .04em;
  background: var(--grain-paper), #f7f5f9;
  color: var(--black);
  font: 800 clamp(2.3rem, 5.8vw, 4rem)/1 var(--f-cond);
  font-stretch: 70%;
  font-variation-settings: "wdth" 70;
  font-variant-numeric: lining-nums tabular-nums;
  box-shadow: 3px 3px 0 var(--magenta);
}
.countdown__unit:nth-child(even) span { transform: rotate(2deg); }
.countdown__unit:nth-child(odd) span { transform: rotate(-1.5deg); }
.countdown__unit small { display: block; margin-top: .45rem; font: 400 .85rem/1 var(--f-type); text-transform: uppercase; letter-spacing: .08em; }

/* page tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 3.4vw, 40px);
}
.tile { display: block; text-decoration: none; transition: transform .2s ease; }
.tile:hover, .tile:focus-visible { transform: rotate(0deg) translateY(-5px); }
.tile .scrap { display: flex; flex-direction: column; min-height: 200px; }
.tile__num { align-self: flex-start; }
.tile__title { margin: .55rem 0 .45rem; font: 400 clamp(2rem, 3.6vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; }
.tile__desc { margin: 0 0 auto; font-size: 1rem; line-height: 1.5; }
.tile__go { margin-top: 1.1rem; font: 400 1rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.tile__go::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .2s; }
.tile:hover .tile__go::after { transform: translateX(6px); }

/* instagram band */
.ig-band {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 15, .92) 0%, rgba(9, 7, 15, .7) 60%, rgba(9, 7, 15, .4)),
    url("../img/collage-wide.webp") 70% 40% / cover;
}
.ig-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.ig-band__handle { display: block; margin: 1rem 0 .8rem; text-decoration: none; }
.ig-band p { color: var(--lilac); max-width: 44ch; margin: 0; }

/* ---------- ABOUT ---------- */
.photo {
  background: #f5f2f8;
  padding: 12px 12px 46px;
}
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font: 400 .95rem/1.3 var(--f-type);
  color: var(--ink);
}
.photo { position: relative; margin: 0; }
.photo--square img { aspect-ratio: 1; }
.logo-panel { position: relative; padding: clamp(18px, 3vw, 30px); }
.logo-panel img { width: 100%; max-width: 440px; margin-inline: auto; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.facts li { padding: .85rem 0; border-bottom: 2px solid var(--ink); }
.facts dt, .facts .k { display: block; font: 400 .85rem/1.2 var(--f-type); color: var(--magenta-d); text-transform: uppercase; letter-spacing: .06em; }
.facts .v { display: block; font: 400 1.35rem/1.15 var(--f-display); text-transform: uppercase; }
.facts a { text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.theme-quote { text-align: center; }
.theme-quote .label { margin-inline: auto; }
.theme-quote .h2 { font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .95; }
.theme-quote .lede { margin: 1.4rem auto 0; }

/* ---------- TEAM ---------- */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 3vw, 34px); }
.person { width: 208px; transition: transform .2s ease; }
.person:hover { transform: rotate(0) translateY(-4px); }
.person .scrap { padding: 12px 12px 20px; text-align: center; }
.person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-3);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
/* purple wash + halftone only on the "Photo soon" placeholders; real photos keep their colour */
.person__photo--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--violet);
  mix-blend-mode: multiply;
  opacity: .55;
  pointer-events: none;
}
.person__photo--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--halftone);
  opacity: .45;
  pointer-events: none;
}
.person__photo--empty {
  background: url("../img/collage-square.webp") var(--bp, 30% 40%) / 340% auto;
}
.person__photo--empty img { display: none; }
.person__silhouette { position: absolute; z-index: 3; inset: auto 0 0 0; width: 78%; margin: 0 auto; color: var(--black); opacity: .9; }
.person__tag {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: .3em .45em .2em;
  background: var(--paper);
  color: var(--black);
  font: 400 .72rem/1 var(--f-type);
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.person__name { margin: .9rem 0 .5rem; font: 400 1.45rem/1.05 var(--f-display); text-transform: uppercase; }
.person__role {
  display: inline-block;
  padding: .38em .6em .3em;
  background: var(--black);
  color: var(--paper);
  font: 400 .84rem/1.25 var(--f-type);
}
.person--sec .person__role { background: var(--magenta); color: #fff; }
@media (max-width: 560px) {
  .people { gap: 22px 16px; }
  .person { width: calc(50% - 8px); }
  .person__name { font-size: 1.2rem; }
  .person__role { font-size: .76rem; }
}

/* Secretariat: five identical cards, sized so all five sit in one row on desktop
   (5 x 196px + 4 gaps fits the poster); they wrap evenly (3 + 2, then 2 + 2 + 1) on smaller screens */
.people--sec { align-items: stretch; container-type: inline-size; }
.person--sec { width: 196px; min-height: 335px; } /* min-height keeps wrapped rows the same height too */
.person--sec > .scrap { display: flex; flex-direction: column; height: 100%; }
.person--sec .person__name { margin-bottom: auto; font-size: 1.4rem; }
.person--sec .person__role { align-self: center; margin-top: .6rem; font-size: .8rem; }
.person--sec .person__tag { font-size: .66rem; white-space: nowrap; }
@media (max-width: 560px) {
  /* two per row: photo is 4:5 of the card width, plus room for a 2-line name and 3-line role */
  .person--sec { width: calc((100% - 16px) / 2); min-height: calc(1.25 * ((100cqw - 16px) / 2 - 24px) + 134px); }
  .person--sec .person__name { font-size: 1.2rem; }
  .person--sec .person__role { font-size: .72rem; }
}

/* tabs (team + schedule) */
.tabs { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 2.2rem; }
.tab {
  padding: .72em 1.15em .66em;
  border: 2px solid #000;
  background: var(--ink-3);
  color: var(--lilac);
  box-shadow: 3px 3px 0 #000;
  font: 400 1.1rem/1 var(--f-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(var(--r, 0deg));
  transition: background-color .15s, color .15s, transform .15s;
}
.tab:hover { color: #fff; transform: rotate(0deg) translateY(-2px); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--black); box-shadow: 4px 4px 0 var(--magenta); }
.tab-panel[hidden] { display: none; }
.team-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.2rem; margin-bottom: 1.8rem; }
.team-head .h3 { margin: 0; }
.team-head p { margin: 0; font-family: var(--f-type); color: var(--lilac); }

/* full-team drop-down under the head cards */
.roster { max-width: 900px; margin: clamp(34px, 5vw, 56px) auto 0; }
.roster + .roster { margin-top: 26px; }
.roster__toggle {
  display: flex;
  align-items: center;
  gap: .6rem 1rem;
  padding: .85em 1.1em .8em;
  border: 3px solid var(--black);
  background: var(--grain-paper), var(--paper);
  color: var(--black);
  box-shadow: 5px 5px 0 var(--magenta);
  font: 400 clamp(1.1rem, 2.4vw, 1.35rem)/1 var(--f-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.roster__toggle::-webkit-details-marker { display: none; }
.roster__toggle:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--magenta); }
.roster__count {
  margin-left: auto;
  padding: .35em .5em .25em;
  background: var(--black);
  color: var(--paper);
  font: 400 .8rem/1 var(--f-type);
  letter-spacing: .03em;
  text-transform: none;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.roster__icon { position: relative; flex: none; width: 1.3rem; height: 1.3rem; background: var(--magenta); }
.roster__icon::before, .roster__icon::after {
  content: "";
  position: absolute;
  inset: 50% 22% auto;
  height: 3px;
  margin-top: -1.5px;
  background: #fff;
  transition: transform .2s ease;
}
.roster__icon::after { transform: rotate(90deg); }
.roster[open] .roster__icon::after { transform: rotate(0deg); }
.roster[open] .roster__toggle { box-shadow: 3px 3px 0 var(--magenta); transform: none; }
.roster__body { margin-top: 14px; animation: roster-in .32s ease-out; }
.roster__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: member;
  columns: 3 220px;
  column-gap: 2rem;
}
.roster__body .committee__label { margin: 0; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.roster__list li {
  position: relative;
  break-inside: avoid;
  padding: .55rem 0 .55rem 2.3rem;
  border-bottom: 1px dashed rgba(17, 14, 36, .45);
  counter-increment: member;
  font: 400 .98rem/1.3 var(--f-type);
}
.roster__list li::before {
  content: counter(member, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .5rem;
  padding: .18em .3em .1em;
  background: var(--black);
  color: var(--paper);
  font: 400 .78rem/1 var(--f-display);
  transform: rotate(-4deg);
}
.roster__list li:nth-child(3n+2)::before { background: var(--magenta); color: #fff; }
/* the folded list opens downwards */
@keyframes roster-in {
  from { clip-path: inset(0 0 100% 0); translate: 0 -10px; }
  to { clip-path: inset(0); }
}
@media (max-width: 560px) {
  .roster__toggle { flex-wrap: wrap; }
  .roster__count { margin-left: 0; order: 3; }
  .roster__icon { margin-left: auto; }
}

/* ---------- COMMITTEES ---------- */
.notice { display: flex; align-items: center; gap: 1.2rem; margin-bottom: clamp(30px, 4vw, 48px); }
.notice p { margin: 0; font-family: var(--f-type); color: var(--lilac); max-width: 52ch; }
.committees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(26px, 3.4vw, 42px);
}
.committee .scrap { height: 100%; }
.committee__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.committee__abbr { font: 400 clamp(2.2rem, 4vw, 2.8rem)/1 var(--f-display); text-transform: uppercase; }
.committee__num { flex: none; }
.committee__name { margin: 1rem 0 .3rem; font: 400 1.35rem/1.15 var(--f-serif); font-weight: 900; }
.committee__focus { margin: 0; font: 400 .95rem/1.35 var(--f-type); color: #3a3560; }
/* head + deputy chair */
.chairs { margin: 1.1rem 0 1.3rem; padding: .2rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.chair { display: grid; grid-template-columns: 7.2rem 1fr; align-items: baseline; gap: .2rem .8rem; padding: .55rem 0; }
.chair + .chair { border-top: 1px dashed rgba(17, 14, 36, .45); }
.chair dt { font: 400 .78rem/1.2 var(--f-type); letter-spacing: .06em; text-transform: uppercase; color: var(--magenta-d); }
.chair dd { margin: 0; font: 400 1.2rem/1.15 var(--f-display); text-transform: uppercase; }
.chair__school {
  display: inline-block;
  margin-left: .3rem;
  padding: .22em .4em .14em;
  background: var(--tag-pink);
  color: var(--black);
  font: 800 .72rem/1 var(--f-cond);
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  letter-spacing: .04em;
  vertical-align: .2em;
  transform: rotate(-2deg);
}
.committee__tba { margin: 0; padding-top: .55rem; border-top: 2px solid var(--ink); color: rgba(17, 14, 36, .6); font-style: italic; }
.committee__label { margin: 0 0 .6rem; font: 400 .85rem/1 var(--f-type); text-transform: uppercase; letter-spacing: .08em; color: var(--magenta-d); }
.issues { margin: 0; padding: 0; list-style: none; counter-reset: issue; border-top: 2px solid var(--ink); }
.issues li {
  position: relative;
  padding: .7rem 0 .7rem 2.6rem;
  border-bottom: 1px dashed rgba(17, 14, 36, .45);
  counter-increment: issue;
  line-height: 1.4;
}
.issues li::before {
  content: counter(issue, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .62rem;
  padding: .18em .3em .1em;
  background: var(--magenta);
  color: #fff;
  font: 400 .85rem/1 var(--f-display);
  transform: rotate(-4deg);
}
.issue__report {
  display: block;
  width: fit-content;
  margin-top: .35rem;
  font: 400 .85rem/1.2 var(--f-type);
  letter-spacing: .03em;
  color: var(--magenta-d);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.issue__report::after { content: " \2192"; content: " \2192" / ""; }
.issue__report:hover { color: var(--ink); }
.committee--tba .scrap { opacity: .9; }
.committee--tba .issues li { color: rgba(17, 14, 36, .6); font-style: italic; }

/* ---------- SCHEDULE ---------- */
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem; margin-bottom: 1.6rem; }
.day-head .h3 { margin: 0; }
.day-head p { margin: 0; font-family: var(--f-type); color: var(--lilac); }
.timeline { display: grid; gap: 16px; max-width: 820px; margin: 0; padding: 0; list-style: none; }
.slot { display: grid; grid-template-columns: 116px 1fr; filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .5)); transform: rotate(var(--r, 0deg)); }
.slot__time {
  display: grid;
  place-items: center;
  padding: .9rem .6rem;
  background: var(--grain), var(--black);
  color: var(--gold);
  font: 400 1.35rem/1 var(--f-display);
  letter-spacing: .04em;
  text-align: center;
}
.slot__body {
  padding: 1rem 1.2rem;
  background: var(--grain-paper), var(--paper);
  color: var(--ink);
  border-left: 3px dashed var(--ink);
}
.slot:nth-child(3n+2) .slot__body { background: var(--grain-paper), var(--newsprint); }
.slot:nth-child(3n) .slot__body { background: var(--grain-paper), var(--lilac); }
.slot__title { margin: 0; font: 400 1.35rem/1.1 var(--f-display); text-transform: uppercase; }
.slot__note { margin: .3rem 0 0; font-size: .98rem; color: #3a3560; }
@media (max-width: 520px) {
  .slot { grid-template-columns: 84px 1fr; }
  .slot__time { font-size: 1.1rem; }
}

/* ---------- RESOURCES ---------- */
/* research reports: one committee card each, a button per issue */
.reports {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: clamp(26px, 3.4vw, 42px);
}
.report .scrap { height: 100%; }
.report__icon { flex: none; width: 46px; height: 46px; color: var(--magenta); }
.report__issues { margin-top: 1.2rem; }
.report__issues li { padding-block: .9rem 1.05rem; }
.report__issues li::before { top: .92rem; }
.report__issue { margin: 0 0 .8rem; font-weight: 600; line-height: 1.4; }
.report .btn { font-size: .95rem; padding: .62em .95em .58em; }
.glossary { columns: 2 300px; column-gap: clamp(28px, 4vw, 56px); margin: 0; }
.glossary div { break-inside: avoid; padding: .9rem 0; border-bottom: 1px dashed rgba(17, 14, 36, .45); }
.glossary dt { font: 400 1.3rem/1.1 var(--f-display); text-transform: uppercase; margin-bottom: .3rem; }
.glossary dd { margin: 0; line-height: 1.5; }

/* ---------- next page link ---------- */
.next { padding: 0 0 clamp(56px, 8vw, 96px); }
.next .wrap { display: flex; justify-content: flex-end; }
.next a { display: block; width: min(100%, 420px); text-decoration: none; transition: transform .2s ease; }
.next a:hover { transform: rotate(0) translateX(4px); }
.next .scrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 28px; }
.next__k { display: block; font: 400 .9rem/1 var(--f-type); }
.next__v { display: block; margin-top: .35rem; font: 400 clamp(1.9rem, 4vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; }
.next__arrow { font: 400 2.6rem/1 var(--f-display); transition: transform .2s; }
.next a:hover .next__arrow { transform: translateX(6px); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 64px 0 28px;
  background: var(--grain), var(--black);
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
}
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__brand img { width: 84px; height: auto; }
.footer__name { margin: 0; font: 400 1.7rem/1 var(--f-display); color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.footer__tag { margin: .4rem 0 0; font: 400 .95rem/1.4 var(--f-type); }
.footer__h { margin: 0 0 .8rem; font: 400 1rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.footer__links { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: .45rem 1.6rem; }
.footer__links a, .footer__contact a { color: var(--lilac); text-decoration: none; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 4px; }
.footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.footer__contact li { display: flex; gap: .55rem; align-items: center; }
.footer__contact svg { width: 18px; height: 18px; color: var(--magenta); flex: none; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.4rem;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px dashed rgba(212, 206, 245, .25);
  font: 400 .88rem/1.4 var(--f-type);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pieces matched to the @mismunqa Instagram posts
   ========================================================================== */

/* torn black paper patch behind the letter cards ("SAVE THE DATE" posts).
   The patch is its own layer, so its rough edges never clip the letters. */
.ink {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: max(24px, .3em) max(26px, .4em) max(26px, .32em);
}
.ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain), var(--black);
  -webkit-mask:
    url("../img/torn-top.svg") 30px 0 / 400px 18px repeat-x,
    url("../img/torn-bottom.svg") 170px 100% / 400px 18px repeat-x,
    url("../img/torn-left.svg") 0 60px / 18px 400px repeat-y,
    url("../img/torn-right.svg") 100% 230px / 18px 400px repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 34px) calc(100% - 34px) no-repeat;
          mask:
    url("../img/torn-top.svg") 30px 0 / 400px 18px repeat-x,
    url("../img/torn-bottom.svg") 170px 100% / 400px 18px repeat-x,
    url("../img/torn-left.svg") 0 60px / 18px 400px repeat-y,
    url("../img/torn-right.svg") 100% 230px / 18px 400px repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 34px) calc(100% - 34px) no-repeat;
}

/* white letter cards with a scratchy hand-drawn outline (built by main.js from [data-cards]) */
.cards { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1; }
.cards__vis { display: flex; flex-wrap: wrap; gap: .16em .34em; }
.cards .w { display: inline-flex; gap: .07em; }
.lc {
  position: relative;
  display: inline-block;
  min-width: .6em;
  padding: .08em .1em .05em;
  background: var(--grain-paper), #f7f5f9;
  color: #121018;
  font-family: var(--f-cond);
  font-weight: 800;
  font-stretch: 58%;
  font-variation-settings: "wdth" 58;
  text-align: center;
  text-transform: uppercase;
}
.lc::before, .lc::after { content: ""; position: absolute; border: 0 solid #0b0910; pointer-events: none; }
.lc::before { inset: -.04em -.03em; border-width: 1.5px; transform: rotate(var(--o1, 1deg)); }
.lc::after { inset: .03em -.04em -.03em -.03em; border-top-width: 1.5px; border-bottom-width: 1.5px; transform: rotate(var(--o2, -1deg)); }
.theme-quote .ink { margin: .2rem 0 .4rem; }
.theme-quote .cards__vis { justify-content: center; }
/* stack the words as a centred poster block so the patch hugs the letters */
.hero__title .cards__vis { flex-direction: column; align-items: center; gap: .14em; }

/* "MISMUN is BACK" label boxes */
.labels { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em; margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.lb {
  display: inline-block;
  padding: .24em .4em .16em;
  border: 2px solid var(--black);
  background: #fff;
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  font: 900 1em/1 var(--f-body);
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  transform: rotate(var(--r, -1.5deg));
}
.lb:nth-child(3) { --r: 1.5deg; }
.lb--plain { align-self: flex-end; padding: 0 .1em; border: 0; background: none; color: #fff; box-shadow: none; font-size: .74em; }

/* date chips: 03 12 2026 to 04 12 2026 */
.datechips { margin: 0 0 1.3rem; }
.datechips__vis { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.dc {
  padding: .3em .42em .2em;
  background: var(--grain-paper), #f7f5f9;
  color: var(--black);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .65);
  font: 700 1.3rem/1 var(--f-cond);
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  font-variant-numeric: lining-nums;
  transform: rotate(var(--r, 0deg));
}
.dc--to { padding: 0 .15rem; background: none; box-shadow: none; color: #fff; font: 900 1.1rem/1 var(--f-body); }

/* 4-point paper star sticker ("DEC 3–4") */
.star4-wrap {
  display: inline-block;
  filter: drop-shadow(1.5px 0 0 #2a2346) drop-shadow(-1.5px 0 0 #2a2346) drop-shadow(0 1.5px 0 #2a2346) drop-shadow(0 -1.5px 0 #2a2346) drop-shadow(5px 6px 0 rgba(0, 0, 0, .5));
}
.star4 {
  display: grid;
  place-content: center;
  width: var(--size, 160px);
  aspect-ratio: 1;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  background: var(--grain-paper), linear-gradient(135deg, #fbfafd 10%, #d9d5e1 45%, #f4f2f7 62%, #c9c4d3 92%);
  color: var(--poster-purple);
  font: 700 calc(var(--size, 160px) * .15)/.92 var(--f-cond);
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(var(--r, 8deg));
}
.star4 > span { display: block; width: min-content; margin-inline: auto; }
.star4 small { display: block; margin-top: .2em; font-size: .62em; letter-spacing: .06em; }

/* sprinkled white stars + scribble doodles (added by main.js to [data-stars]) */
.stars { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.st { position: absolute; width: var(--sz); height: var(--sz); color: #fff; transform: translate(-50%, -50%) rotate(var(--rot)); }
.st svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.st--o svg { fill: none; stroke: var(--lavender); stroke-width: 1.6; }
.scribble {
  position: absolute;
  width: clamp(110px, 15vw, 210px);
  aspect-ratio: 220 / 140;
  background: var(--scribble, var(--lilac));
  opacity: .6;
  -webkit-mask: url("../img/scribble.svg") center / contain no-repeat;
          mask: url("../img/scribble.svg") center / contain no-repeat;
}
[data-stars] > .wrap { position: relative; z-index: 1; }
.page-hero__star { z-index: 1; }

/* pink circled number sticker */
.numdot {
  display: inline-grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: var(--tag-pink);
  color: var(--black);
  font: 700 .9rem/1 var(--f-cond);
  font-variant-numeric: lining-nums;
}

/* pink paper tag in condensed serif capitals ("TECHTEAM DREAMTEAM") */
.tag {
  display: inline-block;
  padding: .24em .45em .14em;
  background: var(--grain-paper), var(--tag-pink);
  color: var(--black);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
  font: 800 clamp(1rem, 2.2vw, 1.3rem)/1 var(--f-cond);
  font-stretch: 70%;
  font-variation-settings: "wdth" 70;
  letter-spacing: .02em;
  text-transform: uppercase;
  transform: rotate(var(--r, -1.5deg));
}

/* rough marker + dry-brush lettering ("MEET THE TEAM / ADMIN") */
.brush {
  display: inline-block;
  color: var(--black);
  font: 400 clamp(4rem, 13vw, 8.6rem)/.92 var(--f-marker);
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: -.05em .02em 0 #fff, .035em -.025em 0 #fff;
  -webkit-mask: var(--distress) 0 0 / 200px 200px;
          mask: var(--distress) 0 0 / 200px 200px;
}

/* ---------- team posters ---------- */
.team-poster {
  --tp: #6b4ad8;
  --tp-burst: var(--salmon);
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(44px, 5vw, 68px);
  background:
    var(--grain),
    radial-gradient(circle, rgba(0, 0, 0, .16) 1px, transparent 1.5px) 0 0 / 5px 5px,
    var(--tp);
  color: var(--black);
}
.team-poster--tech { --tp: #25928e; --tp-burst: var(--butter); }
.team-poster--press { --tp: #d64b84; --tp-burst: var(--mint); }
.team-poster .scribble { --scribble: var(--black); opacity: .85; }
.team-poster__burst {
  position: absolute;
  left: 50%;
  top: -2%;
  width: min(620px, 96%);
  aspect-ratio: 1.35;
  background: var(--tp-burst);
  clip-path: polygon(50% 0%, 58% 34%, 90% 8%, 68% 44%, 100% 56%, 64% 62%, 80% 97%, 52% 70%, 26% 100%, 37% 64%, 0% 72%, 31% 49%, 4% 20%, 40% 34%);
  transform: translateX(-50%) rotate(-8deg);
}
.team-poster .stars { z-index: 1; }
.team-poster__head, .team-poster .people, .team-poster .roster { position: relative; z-index: 2; }
.team-poster__head { margin-bottom: clamp(30px, 4vw, 48px); text-align: center; }
.team-poster__year {
  display: inline-block;
  padding: .2em .35em .12em;
  background: var(--black);
  color: #fff;
  font: 900 1.35rem/1 var(--f-body);
  transform: rotate(-3deg);
}
.team-poster__meet { display: block; width: fit-content; margin: .7rem auto 0; font: 400 clamp(1.7rem, 4.6vw, 3rem)/1 var(--f-marker); text-transform: uppercase; transform: rotate(-2deg); }
.team-poster__name { margin: .05em 0 .1em; }
.team-poster__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem .8rem; margin: .4rem 0 0; }
.team-poster__tags .tag:nth-child(2) { --r: 1.8deg; }
.team-poster__blurb {
  display: inline-block;
  max-width: 46ch;
  margin: 1.2rem auto 0;
  padding: .55em .8em .45em;
  background: var(--grain-paper), var(--newsprint);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
  color: var(--black);
  font: 400 .98rem/1.45 var(--f-type);
  transform: rotate(.6deg);
}
.team-poster .person__role {
  background: var(--tag-pink);
  color: var(--black);
  font: 800 .9rem/1.2 var(--f-cond);
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.person__num { position: absolute; z-index: 4; right: 8px; bottom: 8px; }
.team-poster .roster__toggle { box-shadow: 5px 5px 0 var(--black); }
.team-poster .roster__toggle:hover { box-shadow: 7px 7px 0 var(--black); }
.team-poster .roster[open] .roster__toggle { box-shadow: 3px 3px 0 var(--black); }
.tab[data-team="admin"][aria-selected="true"] { background: var(--admin); color: #fff; box-shadow: 4px 4px 0 var(--salmon); }
.tab[data-team="tech"][aria-selected="true"] { background: var(--teal); color: #fff; box-shadow: 4px 4px 0 var(--butter); }
.tab[data-team="press"][aria-selected="true"] { background: var(--pink); color: #fff; box-shadow: 4px 4px 0 var(--mint); }

/* ---------- schedule: cream "Save the date" notebook poster ---------- */
.dayposter { max-width: 960px; }
.dayposter__paper { padding: clamp(30px, 4.5vw, 54px) clamp(18px, 4.5vw, 56px) clamp(34px, 4.5vw, 54px) clamp(50px, 7vw, 90px); }
.dayposter__paper::before { /* notebook punch holes */
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: clamp(14px, 2.4vw, 28px);
  width: 16px;
  background: radial-gradient(circle, var(--ink) 0 5.5px, rgba(0, 0, 0, .22) 6px, transparent 7.5px) 50% 0 / 16px 32px repeat-y;
}
.dayposter__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: .4rem;
  padding-bottom: 1.2rem;
  border-bottom: 4px double var(--poster-purple);
}
.dayposter__mast { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin: 0 0 .5rem; color: var(--poster-purple); font: 400 1rem/1.2 var(--f-type); }
.blackletter { font: 400 1.75rem/1 var(--f-black); }
.dayposter__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; margin: 0; color: var(--poster-purple); }
.dp-slab { font: 400 clamp(3.2rem, 9vw, 6rem)/.9 var(--f-slab); text-transform: uppercase; }
.dp-type { font: 400 clamp(3rem, 8.4vw, 5.6rem)/.9 var(--f-type); text-transform: uppercase; }
.dayposter .star4-wrap { margin-right: clamp(0px, 2vw, 20px); }
.tt { width: 100%; border-collapse: collapse; }
.tt th {
  padding: 1rem .9rem .6rem 0;
  border-bottom: 2px solid var(--ink);
  color: var(--poster-purple);
  font: 400 .85rem/1 var(--f-type);
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
}
.tt td { padding: .9rem .9rem .9rem 0; border-bottom: 1px dashed rgba(17, 14, 36, .4); vertical-align: middle; }
.tt tr:last-child td { border-bottom: 0; }
.tt__time {
  width: 1%;
  white-space: nowrap;
  color: var(--poster-purple);
  font: 800 1.2rem/1.1 var(--f-cond);
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-variant-numeric: lining-nums;
}
.tt__what { color: var(--ink); font: 400 clamp(1.2rem, 2.4vw, 1.45rem)/1.1 var(--f-display); text-transform: uppercase; }
.tt__note { display: block; margin-top: .25rem; color: #3a3560; font: 400 .95rem/1.4 var(--f-body); text-transform: none; }
.tt__where { width: 1%; white-space: nowrap; }
.tt__loc {
  display: inline-block;
  padding: .3em .5em .2em;
  background: var(--tag-pink);
  color: var(--black);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  font: 800 .92rem/1.1 var(--f-cond);
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  letter-spacing: .03em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.tt__loc--main-hall { background: var(--butter); }
.tt__loc--committee-rooms { background: var(--lavender); }
.tt__loc--sixth-form-centre { background: var(--mint); }
@media (max-width: 640px) {
  .tt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tt, .tt tbody { display: block; }
  .tt tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem .8rem; padding: .9rem 0; border-bottom: 1px dashed rgba(17, 14, 36, .4); }
  .tt tr:last-child { border-bottom: 0; }
  .tt td { display: block; width: auto; padding: 0; border: 0; }
  .tt__time { grid-column: 1 / -1; }
  .tt__where { white-space: normal; text-align: right; }
}

/* ---------- Big 5: "Meet the Big 5" poster on the Liberty collage ---------- */
.sec-poster {
  --pad-x: clamp(16px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) var(--pad-x) 0;
  background:
    var(--halftone),
    linear-gradient(180deg, rgba(17, 14, 36, .5), rgba(17, 14, 36, .82)),
    url("../img/collage-wide.webp") 30% 40% / cover;
  color: #fff;
}
.sec-poster .stars { z-index: 1; }
.sec-poster__head, .sec-poster .people, .sec-poster__stage { position: relative; z-index: 2; }
.sec-poster__burst { /* gold burst, same spiky edge as the logo badge */
  position: absolute;
  left: 50%;
  top: 0;
  width: min(540px, 94%);
  aspect-ratio: 1;
  background: var(--grain-paper), var(--gold);
  clip-path: var(--star);
  transform: translate(-50%, -14%) rotate(-6deg);
}
.sec-poster__head { margin-bottom: clamp(30px, 4vw, 48px); text-align: center; }
.sec-poster__meet {
  display: block;
  width: fit-content;
  margin: .7rem auto .3rem;
  color: var(--black);
  font: 400 clamp(1.7rem, 4.6vw, 3rem)/1 var(--f-marker);
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.sec-poster__title { font-size: clamp(3.4rem, 10vw, 6.4rem); transform: rotate(-1.5deg); }
.sec-poster__title .cards__vis { justify-content: center; }
.tag--gold { background: var(--grain-paper), var(--gold); }
.sec-poster .tag { font-size: clamp(1.1rem, 2.6vw, 1.5rem); }
/* the cards stand on a torn black stage */
.sec-poster .people--sec { --sec-gap: clamp(12px, 1.8vw, 22px); gap: var(--sec-gap); padding-bottom: 6px; }
/* on mid-size screens the five cards shrink together so they still fit one row */
@container (min-width: 800px) and (max-width: 1083px) {
  .person--sec { width: calc((100cqw - 4 * var(--sec-gap)) / 5); }
}
.sec-poster__stage {
  height: 46px;
  margin: -22px calc(-1 * var(--pad-x)) 0;
  background: var(--grain), var(--black);
  -webkit-mask: url("../img/torn-top.svg") 60px 0 / 400px 18px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 17px) no-repeat;
          mask: url("../img/torn-top.svg") 60px 0 / 400px 18px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 17px) no-repeat;
}
.sec-poster .person--sec .person__role {
  background: var(--gold);
  color: var(--black);
  font-family: var(--f-cond);
  font-weight: 800;
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.person--sec .person__num { background: var(--gold); font-size: .8rem; }

/* small screens: tuck decorations out of the way of the content */
@media (max-width: 860px) {
  .hero .scribble, .page-hero .scribble { display: none; }
}
@media (max-width: 640px) {
  .dayposter .star4-wrap { position: absolute; top: 16px; right: 10px; }
  .dayposter .star4 { --size: 80px !important; }
  .dayposter__head > div:first-child { padding-right: 92px; }
  .team-poster .scribble, .sec-poster .scribble { display: none; }
  .datechips__vis { gap: .3rem; }
  .dc { font-size: 1.05rem; }
  .dc--to { font-size: .95rem; }
}

/* ==========================================================================
   Spray paint + paste-up transitions
   Paint gets sprayed on, paper gets slapped on. main.js adds the fx- classes;
   html.fx (set in each page's <head>) is off for reduced-motion visitors.
   The masks are film strips, one frame per step: .claude/spray-sprites.py
   ========================================================================== */

/* sprayed line with drips under section headings */
.h2__paint { position: relative; display: inline-block; padding-bottom: .38em; }
.h2__paint::after {
  content: "";
  position: absolute;
  left: -.08em;
  right: -.14em;
  bottom: -.02em;
  height: .46em;
  background: var(--magenta);
  -webkit-mask: url("../img/spray-stroke.webp") 0 0 / 100% 100% no-repeat;
          mask: url("../img/spray-stroke.webp") 0 0 / 100% 100% no-repeat;
}

/* nothing static shows until main.js has tagged it; the <head> timer is the fallback */
html.fx:not(.fx-go) :is(.hero__logo, .hero__copy, .page-hero .wrap, .page-hero__star) { visibility: hidden; }
.fx-wait { opacity: 0 !important; }

.fx-fill {
  -webkit-mask: url("../img/spray-fill.webp") 0 0 / 1600% 100% no-repeat;
          mask: url("../img/spray-fill.webp") 0 0 / 1600% 100% no-repeat;
  animation: fx-spray .72s steps(16, jump-none) var(--fx-d, 0ms) both;
}
.fx-sweep {
  -webkit-mask: url("../img/spray-sweep.webp") 0 0 / 1200% 100% no-repeat;
          mask: url("../img/spray-sweep.webp") 0 0 / 1200% 100% no-repeat;
  animation: fx-spray .5s steps(12, jump-none) var(--fx-d, 0ms) both;
}
/* these two already have a mask, so the spray sits on top of it */
.brush.fx-sweep {
  -webkit-mask: url("../img/spray-sweep.webp") 0 0 / 1200% 100% no-repeat, var(--distress) 0 0 / 200px 200px;
          mask: url("../img/spray-sweep.webp") 0 0 / 1200% 100% no-repeat, var(--distress) 0 0 / 200px 200px;
}
.scribble.fx-sweep {
  -webkit-mask: url("../img/spray-sweep.webp") 0 0 / 1200% 100% no-repeat, url("../img/scribble.svg") 0 0 / 100% 100% no-repeat;
          mask: url("../img/spray-sweep.webp") 0 0 / 1200% 100% no-repeat, url("../img/scribble.svg") 0 0 / 100% 100% no-repeat;
}
.brush.fx-sweep, .scribble.fx-sweep {
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  animation-name: fx-spray-2;
}
/* a mask stops at the box, so give shadows room while the paint goes on */
.hero__stencil.fx-fill { margin: -30px -40px -56px; padding: 30px 40px 56px; }
.tab-panel.fx-fill { margin: -10px -14px -16px; padding: 10px 14px 16px; }

.fx-paste { animation: fx-paste .52s cubic-bezier(.2, .75, .25, 1) var(--fx-d, 0ms) both; }
.fx-slap { animation: fx-slap .34s cubic-bezier(.3, .7, .4, 1) var(--fx-d, 0ms) both; }
.fx-fade { animation: fx-fade .5s ease-out var(--fx-d, 0ms) both; }
.fx-pop { animation: fx-pop .4s cubic-bezier(.2, 1.3, .4, 1) var(--fx-d, 0ms) both; }
/* typewriter labels, one character a step (--n is the length, set in main.js) */
.fx-type { animation: fx-type calc(var(--n) * 24ms) steps(var(--n), end) var(--fx-d, 0ms) both; }
/* rubber stamps thud down, polaroids come up from pale */
.fx-stamp { animation: fx-stamp .3s cubic-bezier(.3, .7, .4, 1) var(--fx-d, 0ms) both; }
.fx-develop { animation: fx-develop 1s ease-out var(--fx-d, 0ms) both; }
/* the tape goes on once the card has landed, and ends before fx-paste does */
.shell.taped.fx-paste::before { animation: fx-tape .28s ease-out calc(var(--fx-d, 0ms) + .2s) both; }

@keyframes fx-spray {
  to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}
@keyframes fx-spray-2 {
  to { -webkit-mask-position: 100% 0, 0 0; mask-position: 100% 0, 0 0; }
}
@keyframes fx-paste { from { opacity: 0; translate: 0 22px; rotate: 1.8deg; scale: 1.035; } }
@keyframes fx-slap {
  from { opacity: 0; scale: 1.55; }
  60% { opacity: 1; scale: .97; }
}
@keyframes fx-fade { from { opacity: 0; translate: 0 8px; } }
@keyframes fx-pop { from { opacity: 0; scale: .2; } }
@keyframes fx-type {
  from { clip-path: inset(-.2em 100% -.2em 0); }
  to { clip-path: inset(-.2em 0 -.2em 0); }
}
@keyframes fx-stamp {
  from { opacity: 0; scale: 1.26; }
  55% { opacity: .85; scale: .985; }
}
/* same filter order as .photo img, or the browser snaps instead of blending */
@keyframes fx-develop { from { filter: saturate(.15) contrast(.62) brightness(1.75); } }
@keyframes fx-tape { from { transform: rotate(var(--tr, -5deg)) scaleX(0); transform-origin: 0 50%; } }

/* mobile menu: sprayed open from the top, links slapped on */
html.fx .menu.is-open {
  -webkit-mask: url("../img/spray-fill.webp") 0 0 / 1600% 100% no-repeat;
          mask: url("../img/spray-fill.webp") 0 0 / 1600% 100% no-repeat;
  animation: fx-spray .6s steps(16, jump-none) both;
  transition: none;
}
html.fx .menu.is-open .menu__list a { animation: fx-slap .34s cubic-bezier(.3, .7, .4, 1) calc(var(--i) * 45ms + 160ms) both; }

/* page changes: the new page is sprayed over the old one, the header stays put */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .nav a[aria-current="page"] { view-transition-name: nav-current; } /* the paper label slides to the new page */
  ::view-transition-group(nav-current), ::view-transition-old(nav-current), ::view-transition-new(nav-current) {
    animation-duration: .45s;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  }
  ::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-new(root) {
    mix-blend-mode: normal;
    -webkit-mask: url("../img/spray-fill.webp") 0 0 / 1600% 100% no-repeat;
            mask: url("../img/spray-fill.webp") 0 0 / 1600% 100% no-repeat;
    animation: fx-spray .72s steps(16, jump-none) both;
  }
}

@media print {
  .fx-wait { opacity: 1 !important; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
