/* Fil-Can Calgary Volleyball League — splash page.
   Mobile first. Colours sampled from the crest; see CLAUDE.md. */

:root {
  --navy-deep: #0A1030;
  --navy: #0B2A80;
  --red: #C8010C;       /* decorative only */
  --gold: #F7C11E;
  --white: #FFFFFF;
  --surface-footer: #152C66;
  --text-soft: #C9D3E4;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 40px;
  background: var(--navy-deep);
}

.accent-rule {
  display: flex;
  width: 100%;
  max-width: 180px;
  height: 4px;
  margin: 0 0 28px;
}
.accent-rule span { flex: 1; }
.accent-rule span:nth-child(1) { background: var(--red); }
.accent-rule span:nth-child(2) { background: var(--gold); }
.accent-rule span:nth-child(3) { background: var(--white); }

/* The crest is what gives way on short screens, never the type. */
.crest {
  display: block;
  width: 198px;
  height: auto;
  max-height: 32svh;
  object-fit: contain;
  margin: 0 auto 20px;
}

h1 {
  margin: 0 0 12px;
  max-width: 14ch;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}

.tagline {
  margin: 0 0 28px;
  max-width: 32ch;
  font-size: 1.0625rem;
  color: var(--text-soft);
  text-wrap: balance;
}

.cta {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(247, 193, 30, .25); }
.cta:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- Sponsors ----------
   Tiles are a fixed 11:7 box so logos of wildly different shapes line up.
   Light tiles suit most logos; .tile--dark is for white artwork that would
   otherwise vanish, and for logos that already sit on their own dark field. */

.sponsors {
  background: var(--navy-deep);
  padding: 8px 20px 36px;
  text-align: center;
}

.sponsors__eyebrow {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.sponsors__note {
  margin: 0 auto 24px;
  max-width: 38ch;
  font-size: .9375rem;
  color: var(--white);
  opacity: .82;
  text-wrap: balance;
}

.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.tile {
  display: block;
  aspect-ratio: 11 / 7;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile--dark { background: #0F1A2E; }

.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .tile, .cta { transition: none; }
  .tile:hover { transform: none; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--surface-footer);
  border-top: 4px solid var(--gold);  /* the footer only separates from the hero because of this */
  padding: 28px 20px 32px;
  text-align: center;
}
.footer p { margin: 0; }
.footer p + p { margin-top: 12px; }

.footer-fb {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* The credit line is the commercial point of the page: full size, full weight. */
.credit {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}
.credit a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.copyright {
  font-size: .9375rem;
  color: var(--text-soft);
}

.footer a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Desktop ---------- */

@media (min-width: 768px) {
  .hero { padding: 0 40px 72px; }
  .accent-rule { max-width: 240px; height: 6px; margin-bottom: 48px; align-self: center; }
  /* Rule stays pinned to the top; the auto margins centre the rest in the space below it. */
  .hero > picture { margin-top: auto; }
  .cta { margin-bottom: auto; }
  .crest { width: 318px; max-height: 42vh; margin-bottom: 32px; }
  h1 { max-width: none; font-size: 3.25rem; margin-bottom: 16px; }
  .tagline { font-size: 1.25rem; margin-bottom: 36px; max-width: none; }
  .cta { padding: 18px 40px; font-size: 1.1875rem; }

  .sponsors { padding: 8px 40px 48px; }
  .sponsors__eyebrow { font-size: .8125rem; margin-bottom: 10px; }
  .sponsors__note { font-size: 1.0625rem; max-width: none; margin-bottom: 32px; }
  .sponsors__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }

  .footer { padding: 36px 40px 40px; }
  .credit { font-size: 1.1875rem; }
}

/* The hero owns the first screen on its own; once sponsors exist below it,
   the page is allowed to scroll rather than squeezing everything into 100svh. */
@media (min-width: 768px) {
  .hero { min-height: calc(100svh - 120px); }
}

/* ---------- Legal link + privacy page ---------- */

.legal a { color: var(--white); opacity: .8; font-size: .875rem; text-underline-offset: 3px; }
.legal a:hover { opacity: 1; }

/* The privacy page reuses .hero for its background but needs readable,
   left-aligned body copy rather than centred splash type. */
.prose {
  text-align: left;
  align-items: stretch;
  max-width: 68ch;
  margin: 0 auto;
  padding-top: 40px;
}
.prose h1 { max-width: none; font-size: 1.75rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.0625rem; margin: 28px 0 6px; color: var(--gold); }
.prose p { margin: 0 0 12px; max-width: none; font-size: 1rem; opacity: .92; }
.prose .tagline { margin-bottom: 8px; font-size: .9375rem; }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose .cta { margin-top: 20px; color: var(--navy-deep); text-decoration: none; }
