:root {
  --royal: #591593;
  --lilac: #B340ED;
  --teal: #38C1F5;
  --gold: #D2842F;
  --silver: #BBC0C2;
  --black: #111;
  --ink: #1d1726;
  --bg: #faf8fc;
  --mark-w: 190px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); }
a:hover { color: var(--lilac); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--gold);
  color: #1a0f08;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 10px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
  border-bottom: 3px solid var(--royal);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}
.wordmark-frame {
  display: block;
  width: var(--mark-w);
  height: calc(var(--mark-w) * 310 / 774);
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}
.brand { display: block; line-height: 0; }
.wordmark-frame img {
  position: absolute;
  width: calc(var(--mark-w) * 800 / 774);
  height: calc(var(--mark-w) * 800 / 774);
  max-width: none;
  max-height: none;
  left: calc(var(--mark-w) * -14 / 774);
  top: calc(var(--mark-w) * -247 / 774);
  filter: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
}
nav[aria-label="Primary"] { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav[aria-label="Primary"] a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  margin-left: 16px;
  padding: 6px 0;
}
nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a[aria-current="page"] { color: var(--teal); }
nav[aria-label="Primary"] a.nav-join {
  margin-left: 18px;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}
nav[aria-label="Primary"] a.nav-join:hover { color: #fff; background: var(--lilac); }

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--royal);
  text-transform: uppercase;
}
h2:after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold) 60%, var(--teal));
}
section { padding: 64px 0; }
.alt { background: #fff; }
.lede { font-size: 1.08rem; max-width: 68ch; }

.hero {
  background:
    radial-gradient(ellipse at top right, rgba(179, 64, 237, .28), transparent 46%),
    linear-gradient(135deg, #1a0630, var(--royal));
  color: #fff;
  padding: 56px 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .logo {
  width: min(340px, 100%);
  height: auto;
  margin: 0 auto;
  filter: none;
  object-fit: contain;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; color: #fff; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 1.15rem; color: #eee; }
.page-hero {
  background:
    radial-gradient(ellipse at top right, rgba(179, 64, 237, .28), transparent 46%),
    linear-gradient(135deg, #1a0630, var(--royal));
  color: #fff;
  padding: 40px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin: 0; }
.page-hero p { color: #eee; margin: 8px 0 0; }
.page-hero-inner { display: flex; align-items: center; gap: 22px; }
.page-hero img {
  width: 88px;
  height: auto;
  flex: 0 0 auto;
  filter: none;
  object-fit: contain;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin: 6px 8px 0 0;
}
.btn.p { background: var(--gold); color: #fff; }
.btn.p:hover { background: var(--lilac); color: #fff; }
.btn.s { border: 2px solid var(--gold); color: #fff; }
.btn.s:hover { background: var(--gold); color: #fff; }
.btn.r { background: var(--royal); color: #fff; }
.btn.r:hover { color: #fff; background: #3d0d68; }
.btn.line { border: 2px solid var(--royal); color: var(--royal); background: transparent; }
.btn.line:hover { background: var(--royal); color: #fff; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.split img, .photo {
  border-radius: 12px;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
}
.stats { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 120px;
  background: var(--royal);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat b { display: block; font-size: 2rem; color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid #e6def0;
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 22px;
}
.alt .card { background: var(--bg); }
.card h3 { color: var(--royal); font-size: 1.15rem; }
.event-list { display: grid; gap: 20px; }
.event-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 22px;
  align-items: center;
}
.event-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.event-feature {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(89, 21, 147, 0.1);
}
.event-card .date {
  white-space: normal;
  line-height: 1.35;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
}
.event-actions .btn { margin: 0; white-space: normal; text-align: center; }
.ph { color: #8a6aa8; font-style: italic; }
.date {
  display: inline-block;
  background: var(--royal);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  border-left: 4px solid var(--gold);
  padding: 2px 10px;
  font-size: .85rem;
  margin-bottom: 8px;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.gallery img { height: 260px; width: 100%; object-fit: cover; object-position: center top; border-radius: 10px; }
.need { border-top-color: var(--teal); }
.note {
  background: var(--royal);
  color: #fff;
  border-radius: 12px;
  border-left: 6px solid var(--gold);
  padding: 20px 24px;
  margin-top: 24px;
}
.note b { color: #f3c27f; }
.note a { color: #fff; }
.note.one-pager p { margin: 0; }
.note.one-pager .btn { margin: 0 0 14px; }
.one-pager-contact { font-weight: 700; }
.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 150px;
  border: 2px dashed var(--gold);
  border-radius: 12px;
  background: #fff;
  color: #555;
  padding: 16px;
}
.tier { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
td, th { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
th { background: var(--royal); color: #fff; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  border: 1px solid #e6def0;
}
.tile .n { font-size: 1.4rem; font-weight: 800; color: var(--royal); }
.coming-soon {
  background: #fff;
  border: 1px dashed var(--silver);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0;
}
.alt .coming-soon { background: var(--bg); }

form { display: grid; gap: 12px; max-width: 560px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--royal); }
input, select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
}
button, .nav-toggle { cursor: pointer; }
form button {
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--royal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 48px;
}
form button:hover { background: #3d0d68; }
.hp {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li { margin: 8px 0; }
.contact a { font-weight: 700; }

.crowning {
  background:
    radial-gradient(ellipse at top right, rgba(179, 64, 237, .35), transparent 48%),
    linear-gradient(160deg, #2a0a48, var(--royal));
  color: #fff;
}
.crowning h2 { color: #fff; }
.crowning p { color: #f3e9fb; }
.crowncard {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.crowncard .crown { width: 56px; height: 36px; }
.crown { width: 28px; height: 18px; vertical-align: -2px; }
.eyebrow {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .9rem;
  margin: 0 0 8px;
}
.more { margin-top: 18px; }

footer { background: var(--black); color: #ccc; padding: 36px 0; text-align: center; }
footer .crest { height: 84px; width: auto; margin: 0 auto 12px; filter: none; object-fit: contain; }
footer .tag { color: var(--gold); font-weight: 700; }
.family-label {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--silver);
  margin: 16px 0 8px;
}
.family { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 0 0 12px; }
.family a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.family a:hover { color: var(--teal); }
.hashtags { color: var(--silver); }
.legal { color: #aaa; }
.divider { margin-bottom: 8px; }
.divider .crown { width: 44px; height: 28px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  nav[aria-label="Primary"] {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 3px solid var(--royal);
    padding: 4px 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  nav[aria-label="Primary"].is-open { display: flex; }
  nav[aria-label="Primary"] a { margin: 0; padding: 12px 0; border-top: 1px solid #2c2c2c; }
  nav[aria-label="Primary"] a.nav-join { margin: 12px 0 0; text-align: center; }
}

@media (max-width: 800px) {
  :root { --mark-w: 148px; }
  .hero .wrap, .split, .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: row; }
  .hero { text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 170px; }
  .gallery img:nth-child(3) { grid-column: span 2; }
  .split img, .photo { height: 240px; }
  section { padding: 44px 0; }
  td, th { padding: 8px; font-size: .85rem; }
  .stat { min-width: 90px; }
  .event-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .event-card img { width: min(320px, 100%); }
  .event-actions { justify-content: center; }
  .crowning .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .crowncard { padding: 16px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
