:root {
  color-scheme: light;
  --black: #09090b;
  --ink: #151515;
  --red: #bd1f2d;
  --red-dark: #87111c;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --silver: #d9dde2;
  --grass: #214b36;
  --line: rgba(9, 9, 11, 0.13);
  --shadow: 0 24px 70px rgba(9, 9, 11, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.86), rgba(9, 9, 11, 0.35));
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-weight: 800;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--red);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: 126px clamp(20px, 5vw, 72px) 54px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--black);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image:
    linear-gradient(
      90deg,
      rgba(9, 9, 11, 0.97) 0%,
      rgba(9, 9, 11, 0.9) 28%,
      rgba(9, 9, 11, 0.54) 48%,
      rgba(9, 9, 11, 0.2) 70%,
      rgba(9, 9, 11, 0.46) 100%
    ),
    url("assets/hero-palmer-woodward-casson.png"),
    url("assets/blades-field.svg");
  background-size: cover, auto 106%, cover;
  background-position: center, right center, center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 62% 42%, rgba(189, 31, 45, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.06) 0%, rgba(9, 9, 11, 0.14) 46%, rgba(9, 9, 11, 0.94) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 96px
    );
  mix-blend-mode: screen;
  opacity: 0.78;
}

.hero-content,
.hero-scoreboard {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffccd1;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 8.6rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5.4vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  font-weight: 900;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: white;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.dark-button {
  margin-top: 16px;
  background: var(--black);
}

.hero-scoreboard {
  justify-self: start;
  width: min(100%, 390px);
  margin-top: 46px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  border-left: 5px solid var(--red);
  background: rgba(9, 9, 11, 0.72);
  box-shadow: var(--shadow);
}

.hero-scoreboard span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.hero-scoreboard strong {
  font-size: 1.65rem;
  text-transform: uppercase;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-stats article {
  min-height: 144px;
  padding: 26px clamp(18px, 3vw, 34px);
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-stats strong {
  color: #ffccd1;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.quick-stats span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

section {
  scroll-margin-top: 90px;
}

.section-grid,
.training,
.history,
.committee {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.intro {
  background: var(--paper);
}

.intro-copy,
.join p,
.rivalry p {
  color: rgba(21, 21, 21, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.training {
  background:
    linear-gradient(90deg, rgba(33, 75, 54, 0.96), rgba(9, 9, 11, 0.88)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(255, 255, 255, 0.3) calc(10% - 1px),
      rgba(255, 255, 255, 0.3) 10%
    );
  color: white;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.training .eyebrow,
.history .eyebrow {
  color: #ffccd1;
}

.next-session {
  display: inline-flex;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.session-card,
.membership-panel article,
.committee-grid article {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.session-card {
  min-height: 260px;
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.day {
  width: max-content;
  padding: 7px 10px;
  background: var(--red);
  color: white;
  font-weight: 950;
  text-transform: uppercase;
}

.session-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.session-card p {
  margin-bottom: 0;
  font-weight: 850;
}

.session-card small {
  color: rgba(21, 21, 21, 0.62);
  line-height: 1.45;
}

.join {
  background: var(--cream);
}

.membership-panel {
  display: grid;
  gap: 16px;
}

.membership-panel article {
  padding: 28px;
  border-top: 6px solid var(--red);
}

.membership-panel span,
.committee-grid span {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 3.4rem;
  line-height: 0.9;
}

.membership-panel p {
  margin-bottom: 0;
  color: rgba(21, 21, 21, 0.68);
  line-height: 1.55;
}

.history {
  background: var(--black);
  color: white;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline article {
  min-height: 315px;
  padding: 28px;
  background: #111114;
}

.timeline time {
  display: block;
  margin-bottom: 46px;
  color: #ffccd1;
  font-size: 1rem;
  font-weight: 950;
}

.timeline p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.62;
}

.rivalry {
  background: var(--paper);
}

.rivalry-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: white;
}

.rivalry-strip span,
.rivalry-strip strong {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 950;
}

.rivalry-strip span {
  background: var(--black);
}

.rivalry-strip strong {
  background: var(--red);
}

.committee {
  background: var(--cream);
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.committee-grid article {
  min-height: 120px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 5px solid var(--red);
}

.committee-grid strong {
  font-size: 1.12rem;
}

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--black);
  color: white;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: white;
}

@media (max-width: 980px) {
  .quick-stats,
  .schedule-grid,
  .timeline,
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-scoreboard {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 34;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 32;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 24px;
    background: rgba(9, 9, 11, 0.96);
    font-size: 1.7rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: 86svh;
    padding: 108px 20px 38px;
  }

  .hero-media {
    background-size: cover, auto 100%, cover;
    background-position: center, 58% center, center;
  }

  h1 {
    font-size: clamp(4.3rem, 22vw, 8.6rem);
  }

  .hero-scoreboard {
    width: 100%;
  }

  .quick-stats,
  .schedule-grid,
  .timeline,
  .committee-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats article,
  .timeline article {
    min-height: auto;
  }

  .rivalry-strip {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
