/* BAP one-page site (US-010). Colours are sampled from the BAP logo (D4). */
:root {
  --navy: #303078;
  --navy-dark: #22225a;
  --red: #c01830;
  --orange: #f0a830;
  --yellow: #f0d818;
  --ink: #1d1d3a;
  --muted: #4c4c6a;
  --paper: #ffffff;
  --mist: #f5f5fa;
  --line: #e2e2ee;
  --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;
}

:focus-visible {
  outline: 3px solid var(--red);
  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: hidden until focused. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}
.skip-link:focus-visible {
  outline-color: var(--navy);
}

main:focus {
  outline: none;
}

/* Header */
.site-header {
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-logo {
  width: auto;
  height: 3.25rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-short {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-long {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

/* Four-colour band from the logo. */
.stripe {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr 1fr;
  height: 6px;
}
.stripe span:nth-child(1) {
  background: var(--navy);
}
.stripe span:nth-child(2) {
  background: var(--red);
}
.stripe span:nth-child(3) {
  background: var(--orange);
}
.stripe span:nth-child(4) {
  background: var(--yellow);
}

/* 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(240 168 48 / 0.35);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 3rem 3.5rem;
}
.hero-logo {
  width: auto;
  height: 8rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: #fff;
}
.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;
}
@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding-block: 4.5rem 5rem;
  }
  .hero-logo {
    height: 10rem;
  }
}

/* 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: linear-gradient(90deg, var(--red) 0 50%, var(--orange) 50%);
}

figure {
  margin: 0;
}

/* News */
.news {
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(30 30 70 / 0.06), 0 8px 24px rgb(30 30 70 / 0.06);
}
.news-photo img {
  width: 100%;
}
.news-body {
  padding: 0 1.25rem 1.5rem;
}
.news-body h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}
.news-meta {
  margin: 0.5rem 0 1rem;
  font-weight: 700;
  color: var(--red);
}
.news-body p:last-child {
  margin: 0;
}
@media (min-width: 1024px) {
  .news {
    grid-template-columns: minmax(0, 640px) 1fr;
    align-items: center;
    gap: 2rem;
  }
  .news-body {
    padding: 1.5rem 2rem 1.5rem 0;
  }
}

/* Board photo */
.board img {
  width: 100%;
  border-radius: var(--radius);
}
.board figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
}

/* 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;
}

/* 404 */
.not-found {
  padding-block: 4rem 5rem;
}
.not-found a {
  color: var(--red);
  font-weight: 700;
}
