:root {
  --purple: #241773;
  --purple-deep: #160e4a;
  --gold: #c9a227;
  --ink: #1a1a1f;
  --muted: #5b5b6a;
  --paper: #ffffff;
  --band: #f3f1fa;
  --line: #dcd8ee;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Source Sans 3", system-ui, sans-serif;
}
h1, h2, h3, .brand span, .tag { font-family: Oswald, Impact, sans-serif; letter-spacing: .02em; }
h2 { font-size: 2rem; color: var(--purple); margin: 0 0 1rem; text-transform: uppercase; }
h3 { color: var(--purple); margin: 1.2rem 0 .5rem; }
a { color: var(--purple); }
img { max-width: 100%; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .5rem 16px; background: var(--purple-deep); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: 1.25rem; }
.topbar nav { display: flex; gap: 1.25rem; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap;
  padding: 4rem 16px; color: #fff; text-align: left;
  background: radial-gradient(circle at 25% 40%, #3a2a9e 0%, var(--purple) 45%, var(--purple-deep) 100%);
}
.hero-logo { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0; line-height: 1.05; text-transform: uppercase; }
.eyebrow { color: var(--gold); font-weight: 600; margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.tag { font-size: 1.6rem; color: var(--gold); margin: .2rem 0 1rem; }
.lede { max-width: 32rem; margin: 0 0 1.5rem; }
.btn {
  display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
  padding: .7rem 1.3rem; border-radius: 999px;
}
.btn:hover { background: #e0b935; }

/* Sections */
section { padding: 3.5rem 16px; }
.band { background: var(--band); }
.wrap { max-width: 1100px; margin: 0 auto; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.card h3 { margin-top: 0; }
.accent { border-top: 5px solid var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.empty { color: var(--muted); font-style: italic; grid-column: 1 / -1; }

/* Carousel */
.carousel { position: relative; background: var(--purple-deep); border-radius: var(--radius); overflow: hidden; }
.slides { position: relative; aspect-ratio: 16 / 9; max-height: 480px; width: 100%; }
.slide.framed { align-items: flex-start; padding-top: 4%; }
.slide.framed img { width: auto; height: auto; max-width: 90%; max-height: 62%; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #33248f, var(--purple-deep));
}
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide.logo img { width: auto; height: 70%; }
.slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 2.2rem; color: #fff;
  background: linear-gradient(transparent, rgba(10,6,35,.92));
}
.slide.text-only .caption { position: static; background: none; text-align: center; max-width: 40rem; }
.slide .caption h3 { color: var(--gold); margin: 0 0 .25rem; font-size: 1.5rem; }
.slide .caption p { margin: 0 0 .4rem; }
.slide .caption a { color: #fff; font-weight: 600; }
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; cursor: pointer;
  background: rgba(0,0,0,.4); color: #fff; font-size: 2rem; width: 44px; height: 64px; border-radius: 6px;
}
.nav-arrow:hover { background: rgba(0,0,0,.65); }
.prev { left: 8px; } .next { right: 8px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: var(--gold); border-color: var(--gold); }

/* Media + forms cards */
.item h3 { margin: 0 0 .3rem; }
.item .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.item iframe, .item video, .item > img { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; margin-bottom: .6rem; object-fit: cover; }
.file-link { font-weight: 700; }

/* Calendar */
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: 1.15rem; }
.cal-head button { background: var(--purple); color: #fff; border: 0; border-radius: 6px; width: 36px; height: 32px; font-size: 1.2rem; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-grid .dow { font-weight: 700; color: var(--muted); font-size: .8rem; padding: .25rem 0; }
.cal-grid .day { padding: .45rem 0; border-radius: 6px; font-size: .95rem; position: relative; }
.cal-grid .day.today { outline: 2px solid var(--purple); }
.cal-grid .day.has-event { background: var(--purple); color: #fff; font-weight: 700; cursor: pointer; }
.cal-grid .day.has-event::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.event-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.event-list li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 6px; padding: .7rem 1rem; margin-bottom: .6rem; }
.event-list.past li { border-left-color: var(--line); opacity: .85; }
.event-list .when { font-weight: 700; color: var(--purple); }
.event-list li.flash { animation: flash 1.2s; }
@keyframes flash { 0%,100% { background: #fff; } 30% { background: #fff4cc; } }

footer { background: var(--purple-deep); color: #ddd; text-align: center; padding: 2rem 16px; }
footer a { color: var(--gold); }
footer p { margin: .25rem 0; }
.fine { font-size: .8rem; color: #aaa; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .topbar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--purple-deep); }
  .topbar nav.open { display: flex; }
  .topbar nav a { padding: .8rem 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .hero { text-align: center; padding: 2.5rem 16px; gap: 1.5rem; }
  .two { grid-template-columns: 1fr; gap: 1.5rem; }
  .slides { aspect-ratio: 4 / 5; }
  .slide .caption { padding: 2rem 1rem 2rem; }
  h2 { font-size: 1.6rem; }
}
