:root {
  --blue: #155a97;
  --navy: #081827;
  --navy-2: #0d2335;
  --ink: #18222d;
  --muted: #5f6b76;
  --border: #dfe5ea;
  --surface: #f5f7f9;
  --green: #77d34f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }

.container {
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}

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

.hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--green); }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  background: white;
  transform: translateY(-150%);
}

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

.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
}

.header-inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.header-inner { min-height: 76px; }
.brand img { width: 164px; max-height: 60px; object-fit: contain; object-position: left; }
.home-link { color: var(--blue); font-size: .9rem; font-weight: 750; }
.home-link:hover, .site-footer a:hover { text-decoration: underline; }

.hero {
  color: white;
  background:
    radial-gradient(ellipse at 83% 15%, rgba(35, 138, 161, .28), transparent 52%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 24vw, 280px);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding-block: clamp(38px, 5vw, 72px);
}

.eyebrow {
  color: #176b7e;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #91d6e2; }
.hero h1 { margin-block: 10px 14px; font-size: clamp(2.35rem, 5.4vw, 4.75rem); }
.hero h1 span { color: var(--green); }
.intro { max-width: 58ch; color: #d2deea; font-size: clamp(1rem, 1.5vw, 1.16rem); }

.event {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 19px;
  color: #e3ebf1;
  font-size: .9rem;
  font-weight: 650;
}

.bootcamp-brand {
  justify-self: end;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.bootcamp-brand img { width: 100%; }

.games { padding-block: clamp(34px, 4.5vw, 60px); }

.games-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 26px;
  margin-bottom: 22px;
}

.games-heading h2 { margin-top: 4px; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.games-heading > p { max-width: 40ch; color: var(--muted); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 2px 6px rgba(8, 24, 39, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.game-card:hover, .game-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(8, 24, 39, .12);
}

.game-card h3 { font-size: clamp(1.18rem, 2.1vw, 1.47rem); }
.game-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.game-card p, .camera-note { color: var(--muted); font-size: .92rem; }

.play { display: flex; justify-content: space-between; color: var(--blue); font-weight: 800; }
.play span { font-size: 1.15em; }
.camera-note { margin-top: 18px; }

.site-footer {
  padding-block: 22px;
  background: var(--navy);
  color: #c8d3de;
  font-size: .88rem;
}

.site-footer a { color: white; font-weight: 750; }

@media (max-width: 720px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .bootcamp-brand { justify-self: start; width: min(185px, 100%); }
  .bootcamp-brand img { aspect-ratio: 2.2; object-fit: cover; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand img { width: 130px; }
  .home-link { font-size: .82rem; }
}

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