/* Poke Sallet Foundation — site styles */

/* Fonts are self-hosted (Figtree and Mr Dafoe, SIL Open Font License) so pages never wait on Google */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Mr Dafoe"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mr-dafoe-latin.woff2") format("woff2"); }

:root {
  /* Poke Sallet palette */
  --bg: #3a292e;
  --bg-raised: #44323a;
  --bg-sunk: #33242a;
  --cream: #f0e9e1;
  --olive: #6e7a0e;
  --olive-hover: #7e8b15;
  --gold: #a49a59;
  --mauve: #9b7c92;
  --dusk: #94808e;

  /* Blue-Collar Scholars palette */
  --bcs-blue: #1a4b97;
  --bcs-blue-hover: #23599f;
  --bcs-sky: #92a9cd;
  --bcs-rose: #c8b7b7;

  --text: var(--cream);
  --text-muted: rgba(240, 233, 225, 0.74);
  --line: rgba(240, 233, 225, 0.12);
  --accent: var(--gold);

  --font-script: "Mr Dafoe", "Brush Script MT", cursive;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--cream); color: var(--bg); padding: 8px 14px; border-radius: 8px; }

.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; line-height: 0.95; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.muted { color: var(--text-muted); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 38rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--font-sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-hover); color: #fff; }
.btn-ghost { border-color: rgba(240, 233, 225, 0.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(240, 233, 225, 0.06); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(58, 41, 46, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .script { font-size: 1.75rem; }
.brand-name small { font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.brand:hover { color: var(--cream); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:not(.btn):hover { color: var(--cream); background: rgba(240, 233, 225, 0.06); }
.nav a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: var(--cream);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; max-width: 15ch; margin: 0 0 0.5em; }
.hero-logo { margin: 0; }
.hero-logo img { width: 100%; max-width: 500px; height: auto; margin-inline: auto; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -10% -20% -10% -10%;
  background:
    radial-gradient(closest-side at 55% 55%, rgba(155, 124, 146, 0.28), transparent 70%),
    radial-gradient(closest-side at 40% 40%, rgba(110, 122, 14, 0.14), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(20, 10, 14, 0.35)); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto 8px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.prose { max-width: 44rem; }
.prose p { color: var(--text-muted); }
.event-intro p { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.prose p strong { color: var(--cream); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.page-hero h1 { font-size: clamp(3.4rem, 7vw, 5.6rem); margin: 0 0 0.2em; }
.page-hero .lede { margin: 0; }

/* Photo beside the page title */
.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
  box-shadow: 0 24px 48px -24px rgba(20, 10, 14, 0.7);
}
.hero-photo.portrait { aspect-ratio: 4 / 5; max-height: 460px; justify-self: center; width: 100%; max-width: 368px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero-photo { aspect-ratio: 16 / 10; } .hero-photo.portrait { aspect-ratio: 4 / 3; max-width: none; } }

/* Event poster as the page header */
.poster-hero { padding: clamp(20px, 3vw, 40px) 0 clamp(24px, 3vw, 40px); }
.poster { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 4, 8, 0.85); }
.poster img { width: 100%; height: auto; }
.poster-hint { display: none; margin: 10px 0 0; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 700px) { .poster-hint { display: block; } .poster { border-radius: var(--radius); } }

/* In-page sub navigation */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(58, 41, 46, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.subnav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.subnav a:hover { color: var(--cream); border-color: var(--line); }
.subnav a.active { color: var(--cream); background: rgba(240, 233, 225, 0.08); border-color: var(--line); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Upcoming event feature */
.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.datebox {
  width: 104px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 8px 12px;
}
.datebox .m { display: block; font-size: 0.78rem; letter-spacing: 0.2em; font-weight: 600; color: var(--gold); }
.datebox .d { display: block; font-size: 2.8rem; font-weight: 700; line-height: 1.05; }
.datebox .w { display: block; font-size: 0.78rem; color: var(--text-muted); }
.event h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 0.25em; }
.event .meta { color: var(--text-muted); margin: 0; }
.event .btn-row { justify-content: flex-end; }
@media (max-width: 760px) {
  .event { grid-template-columns: auto 1fr; }
  .event .btn-row { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Link cards (registrations, sign-ups) */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  text-decoration: none;
  color: var(--cream);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.link-card:hover { color: var(--cream); border-color: rgba(164, 154, 89, 0.6); transform: translateY(-2px); background: #4a3740; }
.link-card strong { font-size: 1.12rem; }
.link-card span { color: var(--text-muted); font-size: 0.95rem; }
.link-card .go { margin-top: auto; padding-top: 12px; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.link-card .go::after { content: " →"; transition: margin 0.2s; }
.link-card:hover .go::after { margin-left: 4px; }

/* Split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.logo-tile {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  place-items: center;
}
.logo-tile.cream { background: var(--cream); }
.logo-tile img { height: auto; }

/* People / roster */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .roster { grid-template-columns: 1fr; gap: 10px; }
  .roster li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .roster .initials { grid-row: span 3; margin: 0; }
  .roster a { margin-top: 2px; }
}
.roster li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.roster .initials {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.95rem;
  background: rgba(155, 124, 146, 0.25); color: var(--cream);
  margin-bottom: 14px;
}
.roster strong { display: block; font-size: 1.05rem; }
.roster span { display: block; color: var(--text-muted); font-size: 0.92rem; }
.roster a { display: inline-block; margin-top: 10px; font-size: 0.88rem; text-decoration: none; overflow-wrap: anywhere; }
.roster a:hover { text-decoration: underline; }


/* Photos */
.photo-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.photo-pair figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-sunk); }
.photo-pair figure { aspect-ratio: auto; height: clamp(280px, 34vw, 440px); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair figure { height: auto; aspect-ratio: 4 / 3; }
}
.photo-card { margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.photo-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.photo-card figcaption { padding: 18px 22px 22px; }
.photo-card .eyebrow { display: block; margin-bottom: 4px; }
.photo-card strong { font-size: 1.15rem; }
/* Large photo with small snapshots down the side (the side photos are only 206px originals) */
.photo-mosaic { display: grid; grid-template-columns: 1fr minmax(0, 300px) 206px; grid-template-rows: repeat(3, 206px); gap: 12px; }
.photo-mosaic figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunk); }
.photo-mosaic .main, .photo-mosaic .tall { grid-row: 1 / -1; border-radius: var(--radius-lg); }
.photo-mosaic .tall img { object-position: center 25%; }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.photo-mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 9px; font-size: 0.82rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(20, 10, 14, 0.75));
}
@media (max-width: 700px) {
  .photo-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .photo-mosaic .main, .photo-mosaic .tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .photo-mosaic figure:not(.main):not(.tall) { aspect-ratio: 1; }
  .photo-mosaic figcaption { font-size: 0.72rem; padding: 14px 8px 6px; }
}

/* Sponsor wall */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sponsors div {
  min-height: 96px; display: grid; place-items: center; text-align: center;
  padding: 16px; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px solid var(--line);
  color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
}

/* Callout for dates / notices */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius);
  background: rgba(164, 154, 89, 0.1);
  border: 1px solid rgba(164, 154, 89, 0.35);
}
.notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.6em; border-radius: 50%; background: var(--gold); }
.notice p { margin: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: 8px; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.stat span { color: var(--text-muted); font-size: 0.92rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); font-weight: 600; color: var(--accent);
}
.steps li p { margin: 6px 0 0; color: var(--text-muted); }

/* ---------- Blue-Collar Scholars theme ---------- */
.theme-bcs { --accent: var(--bcs-sky); }
.theme-bcs .btn-primary { background: var(--bcs-blue); }
.theme-bcs .btn-primary:hover { background: var(--bcs-blue-hover); }
.theme-bcs .page-hero::before {
  content: "";
  position: absolute;
  right: -10%; top: -30%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(26, 75, 151, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.theme-bcs .link-card:hover { border-color: rgba(146, 169, 205, 0.6); }
.theme-bcs .notice { background: rgba(146, 169, 205, 0.1); border-color: rgba(146, 169, 205, 0.35); }
.theme-bcs .notice::before { background: var(--bcs-sky); }
.theme-bcs .roster .initials { background: rgba(26, 75, 151, 0.45); }
.theme-bcs .datebox .m { color: var(--bcs-sky); }

/* Spooky on the Square — a touch of autumn mauve */
.theme-spooky .page-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -40%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(155, 124, 146, 0.25), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunk); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 80px; height: auto; }
.footer-brand .script { font-size: 2.2rem; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer address { font-style: normal; color: var(--text-muted); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--text-muted);
}
.socials a:hover { border-color: var(--cream); color: var(--cream); }
.socials svg { width: 18px; height: 18px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: rgba(240, 233, 225, 0.55); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.split.top { align-items: start; }

/* ---------- Donate dialog ---------- */
html.modal-open { overflow: hidden; }
.donate-dialog {
  width: min(500px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(10, 4, 8, 0.8);
}
.donate-dialog.wide { width: min(1080px, calc(100% - 32px)); }
.donate-dialog.wide .donate-form { min-height: 640px; }
.popup-iframe { display: block; width: 100%; height: min(70vh, 900px); border: 0; border-radius: var(--radius); background: #fff; }
.donate-dialog::backdrop { background: rgba(20, 10, 14, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.donate-dialog h2 { margin: 0 0 4px; font-size: 1.6rem; }
.donate-dialog .muted { margin: 0 0 20px; }
.donate-form { min-height: 540px; }
.donate-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-muted); cursor: pointer;
}
.donate-close:hover { color: var(--cream); border-color: var(--cream); }
.donate-close svg { width: 18px; height: 18px; }
.donate-alt { margin: 16px 0 0; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
@media (max-width: 480px) { .donate-dialog { padding: 26px 16px 16px; } }

/* ---------- Spooky on the Square announcement bar ---------- */
.announce {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 52px;
  background: linear-gradient(90deg, #7a2a0c 0%, #b8460f 30%, #a0360f 55%, #5b2140 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.announce-link {
  position: relative;
  z-index: 1;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.announce-link:hover { color: #fff; }
.announce-link:hover .announce-go { text-decoration: underline; }
.announce-name { font-family: var(--font-script); font-size: 1.45rem; line-height: 1; margin-right: 6px; vertical-align: -2px; }
.announce-meta { opacity: 0.92; }
.announce-go { font-weight: 600; margin-left: 8px; white-space: nowrap; }
.announce-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, 0.18); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.announce-close:hover { background: rgba(0, 0, 0, 0.35); }

.announce-bats { position: absolute; inset: 0; pointer-events: none; }
.bat { position: absolute; left: 0; top: 0; color: #1a0c10; animation: bat-fly linear infinite; }
.bat svg { display: block; width: 100%; fill: currentColor; overflow: visible; }
.bat .wing { transform-box: view-box; animation: 0.36s ease-in-out infinite alternate; }
.bat .wing-r { transform-origin: 55px 24px; animation-name: wing-r; }
.bat .wing-l { transform-origin: 45px 24px; animation-name: wing-l; }
.bat-1 { width: 50px; top: 4px;  animation-duration: 9s; animation-delay: -1s; }
.bat-2 { width: 36px; top: 24px; animation-duration: 12s; animation-delay: -5s; opacity: 0.85; }
.bat-3 { width: 44px; top: 0;    animation-duration: 10s; animation-delay: -7s; }
.bat-4 { width: 30px; top: 28px; animation-duration: 14s; animation-delay: -3s; opacity: 0.75; }
.bat-5 { width: 40px; top: 12px; animation-duration: 13s; animation-delay: -10s; opacity: 0.9; }
.bat-2 .wing, .bat-4 .wing { animation-duration: 0.28s; }
@keyframes bat-fly {
  0%   { transform: translate(-40px, 0); }
  25%  { transform: translate(25vw, -5px); }
  50%  { transform: translate(50vw, 4px); }
  75%  { transform: translate(75vw, -4px); }
  100% { transform: translate(calc(100vw + 40px), 2px); }
}
@keyframes wing-r { from { transform: rotate(-12deg); } to { transform: rotate(30deg); } }
@keyframes wing-l { from { transform: rotate(12deg); } to { transform: rotate(-30deg); } }

@media (max-width: 600px) {
  .announce { padding: 8px 46px 8px 14px; justify-content: flex-start; }
  .announce-link { text-align: left; font-size: 0.85rem; }
  .announce-meta { display: block; }
  .announce-go { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .announce-bats { display: none; } }
