/* AUBF website (US-001). Colours are sampled from the AUBF "U" logo.
   --orange is the logo colour, for bars and borders only; text uses
   --orange-text, which is dark enough to read on white and --mist (WCAG AA). */
:root {
  --navy: #252265;
  --navy-dark: #17153f;
  --orange: #ef5f20;
  --orange-text: #c2410c;
  --orange-soft: #f4a27f;
  --ink: #1a1b33;
  --muted: #4a4c68;
  --paper: #ffffff;
  --mist: #f4f5fa;
  --line: #e1e3ef;
  --radius: 14px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--orange-text);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--orange-text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}
main:focus {
  outline: none;
}

/* Header */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-logo {
  width: auto;
  height: 3.5rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-short {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand-long {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover {
  border-bottom-color: var(--orange-soft);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
}

.stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 60%, var(--orange) 60%);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
/* Court-line arcs, purely decorative. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgb(255 255 255 / 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: -10rem;
}
.hero::after {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: -2rem;
  border-color: rgb(239 95 32 / 0.45);
}
.hero-inner {
  position: relative;
  padding-block: 2.5rem 3rem;
}
.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  border-left: 0.35rem solid var(--orange);
  padding-left: 1rem;
}
.hero-sub {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
}
@media (min-width: 768px) {
  .hero-inner {
    padding-block: 4rem 4.5rem;
  }
}

/* Sections */
.section {
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 4.5rem;
  }
}
.section-alt {
  background: var(--mist);
}
.section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
}
.section-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.3rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: var(--orange);
}
.prose p,
.prose ul {
  max-width: 40rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgb(255 255 255 / 0.9);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
}
.footer-logo {
  width: auto;
  height: 3rem;
  padding: 0.3rem;
  border-radius: 8px;
  background: #fff;
}
.site-footer p {
  margin: 0;
  font-size: 0.9375rem;
}

.not-found {
  padding-block: 4rem;
}

/* Inner-page hero */
.hero-page .hero-inner {
  padding-block: 2.25rem 2.5rem;
}

/* Cards and grids */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(37 34 101 / 0.06), 0 8px 24px rgb(37 34 101 / 0.06);
}
.card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.15rem;
}
.card p {
  margin: 0 0 0.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card a {
  font-weight: 700;
}
.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--orange-text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.more-link {
  margin: 1.5rem 0 0;
}
.more-link a {
  font-weight: 700;
}
.more-link a::after {
  content: " →";
}

/* Championship list (timeline) */
.aubc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.aubc-index a {
  display: inline-block;
  min-width: 3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.aubc-index a:hover {
  border-color: var(--orange);
}
.aubc {
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 0.4rem solid var(--orange);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-margin-top: 1rem;
}
.aubc h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}
.aubc-meta {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-weight: 700;
}
.aubc p,
.aubc ol,
.aubc ul {
  max-width: 44rem;
}
.results {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  max-width: 36rem;
  margin: 0 0 1rem;
}
.results dt {
  color: var(--muted);
  font-weight: 700;
}
.results dd {
  margin: 0;
}
.photos {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
@media (min-width: 768px) {
  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
.photos img {
  width: 100%;
  border-radius: 10px;
}
.photos figcaption,
.figure figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.figure {
  max-width: 44rem;
  margin: 1rem 0;
}
.figure img {
  border-radius: 10px;
}
details.report {
  margin-top: 1rem;
}
details.report summary {
  cursor: pointer;
  color: var(--orange-text);
  font-weight: 700;
}
details.report[open] summary {
  margin-bottom: 1rem;
}
.byline {
  color: var(--muted);
  font-style: italic;
}

/* Logos row */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logos img {
  width: auto;
  height: 4.5rem;
}

/* People */
.people {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.person {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.person img {
  flex: none;
  width: 4.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 8px;
}
.person p {
  margin: 0;
}
.person .role {
  color: var(--muted);
  font-size: 0.9375rem;
}
.board-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 44rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.board-list li {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .board-list li {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
.board-list span:first-child {
  font-weight: 700;
}
.board-list span:last-child {
  color: var(--muted);
}
.note {
  color: var(--muted);
  font-size: 0.9375rem;
}
address {
  font-style: normal;
}
ol.columns {
  max-width: none;
  padding-left: 1.5rem;
}
@media (min-width: 768px) {
  ol.columns {
    columns: 2;
    column-gap: 3rem;
  }
}
ol.columns li {
  break-inside: avoid;
  padding-block: 0.15rem;
}

figure {
  margin: 0;
}
@media (max-width: 639px) {
  .site-nav ul {
    gap: 0 1rem;
  }
  .site-nav a {
    padding-block: 0.25rem;
  }
}

/* Certificate of Incorporation (Executive Board page) */
.cert-title {
  margin: 2.5rem 0 0.75rem;
  color: var(--navy);
  font-size: 1.25rem;
  scroll-margin-top: 1rem;
}
.cert {
  max-width: 26rem;
}
.cert a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgb(37 34 101 / 0.06), 0 8px 24px rgb(37 34 101 / 0.08);
}
.cert a:hover {
  border-color: var(--orange);
}
.cert img {
  border-radius: 0;
}
