@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/fonts/barlow-condensed-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #111e23;
  --panel: #192b31;
  --line: #37494e;
  --text: #fbf4e6;
  --muted: #c5d0cf;
  --accent: #ffc36a;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.55 system-ui, sans-serif;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

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

.wrap {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 4;
  inset: .75rem auto auto .75rem;
  background: var(--background);
  padding: .65rem 1rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.header-inner, .footer {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 800 1.4rem/1 var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header a, .footer a {
  text-decoration: none;
}

.header a:hover, .footer a:hover {
  color: var(--accent);
}

.header nav {
  display: flex;
  gap: clamp(.85rem, 3vw, 2rem);
  font-weight: 600;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #162329;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 26%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 53%;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #162329 0%, rgb(22 35 41 / 94%) 12%, transparent 58%),
    linear-gradient(0deg, rgb(22 35 41 / 45%), transparent 45%);
  content: '';
}

.hero-inner {
  display: flex;
  min-height: 35rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-content {
  width: min(100%, 29rem);
}

.eyebrow {
  margin-bottom: .8rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
}

h1 {
  margin-inline-start: -.025em;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: .82;
}

h1 span {
  display: block;
  color: var(--accent);
}

.hero-description {
  max-width: 23rem;
  margin-block: 1.45rem 1.55rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.download {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: .2rem;
  padding: .75rem 1.15rem;
  background: var(--accent);
  color: #172025;
  font-weight: 800;
  text-decoration: none;
}

.download:hover {
  border-color: var(--accent);
  background: var(--background);
  color: var(--accent);
}

.download-note {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .875rem;
}

.courses {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.65rem;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
}

.section-heading p, .official p:last-child {
  max-width: 33rem;
  color: var(--muted);
}

.course-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--panel);
}

.course img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.course-copy {
  padding: 1.1rem;
}

.course h3 {
  margin-bottom: .55rem;
  color: var(--accent);
  font-size: 1.85rem;
}

.course p {
  color: var(--muted);
}

.official {
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.official-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1.25rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.official strong {
  color: var(--text);
}

.footer > a:last-child {
  color: var(--muted);
}

.footer > a:last-child:hover {
  color: var(--accent);
}

@media (max-width: 56rem) {
  .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 43rem) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .header-inner {
    min-height: 3.9rem;
  }

  .header nav {
    font-size: .875rem;
  }

  .header .wordmark {
    gap: .4rem;
    font-size: 1.15rem;
  }

  .header .wordmark img {
    width: 1.35rem;
    height: 1.35rem;
  }

  .hero-visual {
    inset: 0 0 auto;
    height: clamp(14rem, 58vw, 23rem);
  }

  .hero-visual img {
    object-position: 66% 57%;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, #162329 0%, rgb(22 35 41 / 55%) 25%, transparent 62%);
  }

  .hero-inner {
    min-height: auto;
    padding-block: clamp(11rem, 47vw, 19rem) 2.65rem;
  }

  h1 {
    font-size: clamp(4.5rem, 14vw, 6.6rem);
  }

  h1 span {
    display: inline;
  }

  .section-heading {
    display: grid;
  }

  .official-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 27rem) {
  .course-list {
    grid-template-columns: 1fr;
  }
}
