:root {
  --page: #f1f0ec;
  --paper: #fff;
  --soft: #faf8f5;
  --ink: #1b1b1a;
  --body: #4a4f4d;
  --muted: #6b6f6d;
  --faint: #9aa09d;
  --line: #e6e2da;
  --dash: #ece8df;
  --accent: #FF0016; /* matches the flame in the footer GIF */
  --green: #0e6b5b;
  --navy: #002456; /* matches the heading GIF background */
  --serif: "Spectral", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); font: 15px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.serif { font-family: var(--serif); }
[hidden] { display: none !important; }

/* Centered "paper" column */
.site { max-width: 1180px; margin: 0 auto; background: var(--paper); border-inline: 1px solid var(--line); }
.banner { position: relative; border-bottom: 4px solid var(--accent); container-type: inline-size; }
/* Clickable hotspot over the RSVP button drawn in banner-home.png (hidden when a page swaps in its own banner) */
.banner-rsvp { position: absolute; left: 57.3%; top: 70.8%; width: 6.8%; height: 10%; cursor: pointer; border-radius: 2px; }
.banner-music { position: absolute; left: 86%; top: 88%; width: 13.6%; height: 10.5%; background: none; border: 0; padding: 0; cursor: pointer; }
/* Live countdown painted over "25-ish years remaining." in banner-home.png.
   Positions are the artwork's pixel coordinates (2360 x 472) as percentages, so it scales with the banner. */
.banner-countdown {
  position: absolute; left: calc(1268 / 2360 * 100%); top: calc(296.7 / 472 * 100%); width: calc(540 / 2360 * 100%);
  font: 400 calc(24 / 2360 * 100cqw) / 1 Arial, Helvetica, sans-serif; color: #111; white-space: nowrap;
  background: #c3c3c3; box-shadow: 0 0 0 calc(5 / 2360 * 100cqw) #c3c3c3; pointer-events: none;
}
/* Easter egg: the banner's Start button opens Campus Quest (campus-game/) in a full-screen overlay */
.egg-start { position: absolute; left: calc(8 / 2360 * 100%); top: calc(424 / 472 * 100%); width: calc(130 / 2360 * 100%); height: calc(42 / 472 * 100%); cursor: pointer; }
/* The drawn Start button is tiny on phones; give it a finger-sized tap target */
@media (pointer: coarse) { .egg-start { top: auto; bottom: 0; min-width: 44px; min-height: 30px; } }
.egg-overlay { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; border: 0; background: #12091f; }
/* "Academy Pix" folder icon in the banner art opens the photo gallery */
.banner-pix { position: absolute; left: calc(2190 / 2360 * 100%); top: calc(176 / 472 * 100%); width: calc(145 / 2360 * 100%); height: calc(112 / 472 * 100%); cursor: pointer; }
.banner.custom .banner-rsvp, .banner.custom .banner-music, .banner.custom .banner-countdown, .banner.custom .egg-start, .banner.custom .banner-pix { display: none; }

/* Now-playing mini window (retro, to match the banner) */
.nowplaying { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 320px; max-width: calc(100vw - 32px); background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.np-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 4px 3px 8px; background: linear-gradient(90deg, #0a246a, #3a6ea5); color: #fff; font: 600 13px var(--sans); }
.np-close { width: 22px; height: 20px; background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff; font: 700 14px/1 var(--sans); color: #000; cursor: pointer; }
.np-video { aspect-ratio: 16 / 9; margin: 4px; background: #000; }
.np-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.banner img { width: 100%; height: auto; aspect-ratio: 5 / 1; object-fit: cover; }

/* ---------- Home tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile, .rsvp-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 220px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.tile:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.tile:hover, .rsvp-tile:hover { background: var(--soft); }
.tnum { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.tname { font-size: 36px; font-weight: 600; line-height: 1.2; }
.tarrow { position: absolute; right: 28px; bottom: 28px; color: var(--faint); font-size: 18px; transition: transform .15s, color .15s; }
.tile:hover .tarrow, .rsvp-tile:hover .tarrow { transform: translateX(4px); color: var(--accent); }
.rsvp-tile { min-height: 180px; background: var(--ink); color: #fff; }
.rsvp-tile:hover { background: #2a2a28; }

/* ---------- Tab bar ---------- */
.tabbar {
  display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 16px 16px 14px; font-weight: 600; font-size: 15px; color: var(--muted);
  text-decoration: none; border-bottom: 3px solid transparent; transition: color .14s ease, border-color .14s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.homebtn { margin-right: 16px; font-weight: 500; }

/* ---------- Panels ---------- */
.wrap { padding: 56px 64px 40px; }
.ptitle { font-size: 44px; font-weight: 700; line-height: 1.1; margin-bottom: 36px; }
.menu-title { font-size: 34px; margin: 44px 0 8px; padding-top: 44px; border-top: 1px solid var(--line); }
/* Event Details tagline: chrome WordArt-style shimmer that sweeps slowly left to right */
.intro.shimmer { /* beats .intro's plain text colour */
  font: 700 19px var(--sans); letter-spacing: .01em;
  background: linear-gradient(100deg, #1d3fa8 0%, #5f9bff 20%, #c9d6ee 30%, #ff0016 45%, #1d3fa8 60%, #5f9bff 80%, #c9d6ee 90%, #ff0016 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 14s linear infinite;
}
@keyframes shimmer { from { background-position: 300% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .intro.shimmer { animation: none; } }
.menu-sub { color: var(--body); margin-bottom: 24px; } /* same size as .intro */
.menu-title + .day, .menu-title + .two { margin-top: 24px; }
.h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: var(--paper); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; } /* no extra gap at the bottom of a card */
.has-icon { position: relative; }
.two > .has-icon { display: flex; flex-direction: column; align-items: flex-start; }
.card .fine { color: var(--muted); font-size: 13px; font-style: italic; line-height: 1; margin-top: auto; position: relative; top: 1.5px; /* baseline sits on the bottom edge of the button in the next box */ }
.card-icon { position: absolute; top: 26px; right: 26px; width: 34px; height: 34px; fill: none; stroke: #d3cec4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lead, .card p, .card li { color: var(--body); }
.card ol, .card ul:not(.mlist) { padding-left: 1.4em; margin: 10px 0; }
.card li { margin: 6px 0; }

/* Schedule & menu day cards */
.day { display: grid; grid-template-columns: 220px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: 10px; padding: 28px 28px 14px; margin-bottom: 20px; }
.dnum { font-size: 38px; font-weight: 700; line-height: 1; }
.ddow { color: var(--green); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
.srow { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 12px 0 14px; border-bottom: 1px dashed var(--dash); }
.srow:first-child { padding-top: 0; }
.srow:last-child { border-bottom: 0; }
.stime { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }
.sname { font-weight: 600; font-size: 16px; }
.smeta { color: var(--body); font-size: 14px; margin-top: 4px; }
.smeta span { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-right: 10px; }

.mday .h3 { margin-bottom: 0; }
.mday .ddow { margin-top: 2px; }
.mday .two { gap: 28px; }
.kicker { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.mday .two .h3 { font-size: 19px; margin-bottom: 14px; }
.mimg { width: 100%; aspect-ratio: 2.85 / 1; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.mlist { list-style: none; }
.mlist li { padding: 10px 0; border-bottom: 1px dashed var(--dash); color: var(--body); font-size: 14px; }
.mlist li:last-child { border-bottom: 0; }

/* Venue */
.addr { font-size: 20px; color: var(--ink) !important; line-height: 1.45; margin-bottom: 18px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.obtn { border: 1px solid var(--ink); border-radius: 4px; padding: 8px 14px; font-size: 13px; font-weight: 600; text-decoration: none; }
.obtn:hover { background: var(--ink); color: #fff; }
.dl { display: grid; grid-template-columns: 140px 1fr; }
.dl dt { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 14px 0; }
.dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cardimg { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 20px; }
.two > .card { margin-bottom: 20px; }
/* Match a photo to the card beside it (the card's 20px bottom margin is part of the row) */
.two > .cardimg { height: calc(100% - 20px); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.wide-photo { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: center 55%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 20px; }
#venue .cardimg, .gallery img, .wide-photo { cursor: zoom-in; }

/* Academy Pix: call to action that links out to the shared album */
.pix-cta { max-width: 760px; }
.pix-cta .btns { align-items: center; margin-bottom: 0; }
.pix-cta .sbtn { text-decoration: none; }

/* Photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(15, 15, 14, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-img { min-width: min(640px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-btn { position: fixed; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: 400 30px/1 var(--sans); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } }
.note { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 16px 0 24px; font-size: 14px; }
.note strong { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.steps img { aspect-ratio: 3 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.steps figcaption { text-align: center; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; }

/* Attendees */
.group { margin-bottom: 36px; }
.group > .h3 { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 16px; }
.person { text-align: center; }
.person img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
/* Then/now avatars: the "now" photo fades in on hover, or on tap (.show-now) on phones */
.avatar { position: relative; width: 140px; height: 140px; margin: 0 auto 10px; border-radius: 50%; } /* round, so the hover area is the circle itself */
.avatar img { position: absolute; inset: 0; margin: 0; transition: opacity .25s ease; }
.avatar .now { opacity: 0; }
.avatar:has(.now) { cursor: pointer; }
@media (hover: hover) { .avatar:hover .now { opacity: 1; } } /* only when the pointer is inside the circle */
.person.show-now .avatar .now { opacity: 1; }
.name { font-weight: 600; font-size: 16px; }
.role { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* Shenanigans */
/* Masonry-style: fixed column width, each card only as tall as its content */
.memories { columns: 2; column-gap: 20px; }
.memory { margin: 0 0 20px; break-inside: avoid; }
.memory img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 16px; }
.memory blockquote { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); }
.memory blockquote p { color: inherit; }
.memory blockquote p + p { margin-top: .7em; }
.memory figcaption { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; }

/* FAQ */
.qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa:first-child { padding-top: 0; }
.q { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.a { color: var(--body); max-width: 540px; }
.a a { color: var(--accent); font-weight: 600; }

/* RSVP */
.intro { color: var(--body); margin: -18px 0 24px; }
.ticket-note { max-width: 760px; margin: 0 0 20px; color: var(--body); border-left: 4px solid var(--accent); }
.ticket-note a { color: var(--accent); font-weight: 600; }
.ticket-note .fine-note { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 13px; font-style: italic; }
.rsvp-form { display: grid; gap: 30px; max-width: 760px; }
.rsvp-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.rsvp-form input:not([type="radio"]), .rsvp-form select, .rsvp-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font: 400 15px var(--sans); color: var(--ink);
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; display: flex; gap: 24px; flex-wrap: wrap; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; width: 100%; }
.rsvp-form .nights { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.rsvp-form .nights select { width: auto; min-width: 80px; }
.rsvp-form .field-note { font-weight: 400; font-size: 13px; color: var(--muted); }
legend .field-note { display: block; margin-top: 2px; }
.rsvp-form label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.sbtn { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: 12px 22px; font: 600 15px var(--sans); cursor: pointer; }
.sbtn:hover { filter: brightness(.95); }
.sbtn:disabled { opacity: .6; cursor: default; }
/* RSVP confirmation (replaces the form after a successful send) */
.rsvp-done { max-width: 760px; border-top: 6px solid var(--accent); padding: 40px 36px; text-align: center; outline: none; }
.done-kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.done-title { font-size: 40px; line-height: 1.15; font-weight: 700; margin-bottom: 16px; }
.done-body { font-size: 18px; color: var(--body); }
.done-body a { color: var(--accent); font-weight: 600; }
.done-sign { font-size: 26px; color: var(--ink) !important; margin: 18px 0 26px; }
.rsvp-done .btns { justify-content: center; margin-bottom: 0; }
.rsvp-done .sbtn { text-decoration: none; }
.obtn { background: none; font-family: var(--sans); cursor: pointer; color: var(--ink); }
.form-status { min-height: 1.4em; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { display: flex; justify-content: flex-end; padding: 6px 46px; background: var(--navy); border-top: 4px solid var(--accent); }
.logo { width: 150px; max-width: 50vw; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:not(:nth-child(3n)) { border-right: 0; }
  .tile:nth-child(odd) { border-right: 1px solid var(--line); }
  .tile { min-height: 160px; }
  .rsvp-tile { min-height: 140px; }
  .tname { font-size: 28px; }
  .tarrow { right: 18px; bottom: 16px; }
  .tabbar { padding: 0 12px; }
  .wrap { padding: 36px 16px 24px; }
  .ptitle { font-size: 34px; margin-bottom: 24px; }
  .day, .two { grid-template-columns: 1fr; }
  .day { padding: 22px 18px 10px; gap: 14px; }
  .srow { grid-template-columns: 1fr; gap: 2px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .memories { columns: 1; }
  .person img { width: 112px; height: 112px; }
  .avatar { width: 112px; height: 112px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wide-photo { aspect-ratio: 3 / 2; }
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .foot { padding: 6px 16px; }
}
