:root {
  --bg: #f7f1e8;
  --bg-soft: #fffaf4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #1f1d1a;
  --muted: #5a554d;
  --gold: #f0a128;
  --orange: #df6b1f;
  --red: #b13b2b;
  --purple: #6b427f;
  --green: #2f7d55;
  --line: rgba(86, 61, 40, 0.14);
  --shadow: 0 20px 60px rgba(92, 63, 36, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 161, 40, 0.2), transparent 26%),
    radial-gradient(circle at right center, rgba(107, 66, 127, 0.12), transparent 24%),
    linear-gradient(180deg, #fdf8f0 0%, var(--bg) 40%, #f6efe4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.28), transparent 25%);
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

.floating-menu {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: min(calc(100% - 2rem), 58rem);
  padding: 0.7rem;
  border: 1px solid rgba(86, 61, 40, 0.12);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(63, 43, 24, 0.12);
}

.floating-menu a,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.floating-menu a:hover,
.floating-menu a:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  background: rgba(223, 107, 31, 0.12);
  color: var(--orange);
  transform: translateY(-1px);
}

.menu-group {
  position: relative;
}

.submenu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translateX(-50%);
  display: grid;
  gap: 0.35rem;
  min-width: 11.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(86, 61, 40, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(63, 43, 24, 0.12);
}

.submenu[hidden] {
  display: none !important;
}

.submenu a {
  justify-content: flex-start;
  padding-inline: 0.8rem;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 5rem -20% auto auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 107, 31, 0.18), transparent 65%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.eyebrow,
.meta-label,
.panel-label,
.section-tag,
.rule-number {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: #1f1d1a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  transform: translateY(-1px);
  background: var(--red);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.section,
.day-card,
.staff-day {
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 244, 0.7));
  box-shadow: var(--shadow);
}

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(240, 161, 40, 0.16);
  color: var(--orange);
  font-weight: 800;
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

.hero-text {
  max-width: 52rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.meta-card,
.hero-panel-card,
.rule-card,
.day-card,
.staff-day {
  border: 1px solid var(--line);
}

.meta-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(33, 28, 24, 0.96), rgba(62, 39, 21, 0.9)),
    linear-gradient(135deg, rgba(240, 161, 40, 0.4), transparent);
  color: #fff6ee;
  box-shadow: var(--shadow);
}

.hero-panel-card {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.panel-label {
  margin: 0 0 0.5rem;
  color: #ffd39a;
  font-size: 0.72rem;
  font-weight: 800;
}

.section {
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 244, 0.94));
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rule-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.rule-number {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
}

.rule-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.rule-card p {
  margin: 0.28rem 0;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.day-card,
.staff-day {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.featured {
  background:
    linear-gradient(180deg, rgba(255, 244, 230, 0.95), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.day-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.day-header h3 {
  font-size: 1.7rem;
}

.day-header span {
  color: var(--muted);
  font-weight: 700;
}

.timeline,
.staff-list {
  display: grid;
  gap: 0.8rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li,
.staff-entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

time {
  font-weight: 800;
  color: var(--orange);
}

.timeline span,
.staff-entry p,
.farewell {
  color: var(--muted);
}

.callout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.mini-note {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.danger {
  background: rgba(177, 59, 43, 0.12);
  color: var(--red);
}

.success {
  background: rgba(47, 125, 85, 0.12);
  color: var(--green);
}

.accent {
  background: rgba(107, 66, 127, 0.12);
  color: var(--purple);
}

.farewell {
  margin: 1rem 0 0;
  line-height: 1.65;
}

.staff-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.staff-entry {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(86, 61, 40, 0.09);
}

.staff-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.staff-entry p {
  margin: 0;
  line-height: 1.5;
}

.featured-entry {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(223, 107, 31, 0.08);
  border-bottom: none;
}

@media (max-width: 1024px) {
  .hero-grid,
  .rules-grid,
  .schedule-grid,
  .staff-columns {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .floating-menu {
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.35rem;
    width: min(calc(100% - 1rem), 26rem);
    justify-content: center;
    padding: 0.5rem;
  }

  .floating-menu a,
  .menu-toggle {
    padding: 0.5rem 0.72rem;
    font-size: 0.88rem;
  }

  .menu-group {
    position: static;
  }

  .submenu {
    left: 50%;
    bottom: calc(100% + 0.5rem);
    width: min(calc(100vw - 1.5rem), 18rem);
  }

  .page-shell {
    width: min(calc(100% - 1rem), var(--content-width));
    padding-bottom: 5rem;
  }

  .topbar,
  .day-header,
  .timeline li,
  .staff-entry {
    grid-template-columns: 1fr;
  }

  .topbar,
  .day-header {
    display: grid;
    align-items: start;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .day-card,
  .staff-day {
    border-radius: 22px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .timeline li,
  .staff-entry {
    gap: 0.35rem;
  }

  .timeline li {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(86, 61, 40, 0.09);
  }

  .timeline li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .day-header {
    gap: 0.25rem;
  }
}
