/* CORVISART hub. Colours come from tokens.css; nothing is defined here. */

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

html {
  font-family: var(--font-sans);
  background-color: rgb(var(--ink-950));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: rgb(var(--slate-100));
  background-color: rgb(var(--ink-950));
  /* The same glow as hx. */
  background-image:
    radial-gradient(90rem 40rem at 50% -12rem, var(--page-glow-a), transparent 70%),
    radial-gradient(60rem 30rem at 100% 0%, var(--page-glow-b), transparent 65%);
  background-attachment: fixed;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgb(var(--brand-400));
  color: rgb(var(--on-brand));
  font-weight: 600;
  text-decoration: none;
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid rgb(var(--brand-400));
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-block: 4.5rem 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding-block: 7rem 3.5rem;
  }
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgb(var(--slate-100));
  text-shadow: 0 0 40px rgb(var(--brand-400) / 0.25);
}

.tagline {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgb(var(--brand-300));
  text-wrap: balance;
}

.lede {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: rgb(var(--slate-300));
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- cards */

.trainers {
  padding-bottom: 3rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards > li {
  display: flex;
}

/* Each card sets --accent; everything coloured in it follows. */
.card--hx { --accent: var(--brand-400); }
.card--phx { --accent: var(--sky); }
.card--mx { --accent: var(--green); }

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid rgb(var(--ink-700));
  border-top: 3px solid rgb(var(--accent));
  border-radius: 1rem;
  background: rgb(var(--ink-850));
  color: inherit;
  text-decoration: none;
}

a.card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.card:hover {
  border-color: rgb(var(--accent) / 0.6);
  border-top-color: rgb(var(--accent));
  box-shadow: 0 0 32px rgb(var(--accent) / 0.15);
  transform: translateY(-2px);
}

a.card:focus-visible {
  outline-color: rgb(var(--accent));
}

.card__code {
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  background: rgb(var(--accent) / 0.12);
  color: rgb(var(--accent));
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(var(--slate-100));
}

.card__text {
  color: rgb(var(--slate-300));
  font-size: 0.9375rem;
}

.card__status {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--amber));
}

.card__status--live {
  color: rgb(var(--accent));
}

@media (prefers-reduced-motion: reduce) {
  a.card {
    transition: none;
  }
  a.card:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------------- about */

.about {
  padding-block: 1rem 3rem;
}

.about h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--slate-100));
}

.about p {
  margin: 0 0 1rem;
  max-width: 44rem;
  color: rgb(var(--slate-300));
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid rgb(var(--ink-700));
  color: rgb(var(--slate-500));
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
}
