@font-face {
  font-family: "Windpower";
  src: url("assets/windpower.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #151414;
  --paper: #f6efe4;
  --paper-ink: #231b16;
  --orange: #ffb15e;
  --muted: #c5b9b1;
  --line: #ffffff26;
  --body: "DM Sans", "Avenir Next", system-ui, sans-serif;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --game-title: "Windpower", var(--display);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; }
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(1250px, calc(100% - 9vw)); margin-inline: auto; }
.privacy-page { max-width: 46rem; padding-block: 2.5rem 4rem; }
.privacy-page h1 { margin-block: 1.5rem .7rem; font-size: clamp(2rem, 7vw, 3.25rem); }
.privacy-page h2 { margin-block: 1.5rem .5rem; font-size: 1.2rem; }
.privacy-page p + p { margin-top: .8rem; }
.privacy-page a { color: var(--orange); }

.skip { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .6rem 1rem; transform: translateY(-180%); background: var(--paper); color: var(--ink); }
.skip:focus { transform: translateY(0); }

.masthead { background: #161515; border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.masthead-inner { min-height: 74px; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; white-space: nowrap; font-family: var(--game-title); font-size: 1.38rem; letter-spacing: .025em; }
.brand b { color: var(--orange); font-weight: inherit; }
.brand-mark {
  width: 29px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 18%, #fff 0, #fff3 17%, transparent 38%),
    repeating-linear-gradient(158deg, #e4efff 0 7px, #6f9bd7 8px 12px, #274d92 13px 15px);
  box-shadow: inset -5px -5px 8px #122440a6, 0 2px 7px #0007;
}
nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.5vw, 3rem); }
nav a { color: #e1d6ce; font-size: .89rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--orange); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 56px;
  padding: .73rem 1.13rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--orange);
  color: #28160d;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .16s, color .16s;
}
.button:hover { background: #ffd094; }
.button:focus-visible { outline-color: #fff; }
.button span { font-size: 1.15em; }
.button-small { min-height: 43px; gap: .85rem; padding: .56rem .87rem; font-size: .87rem; }
.button-outline { color: var(--paper); background: transparent; border-color: #fff5; }
.button-outline:hover { color: var(--paper); background: #fff1; }

.incoming { background: #30241d; border-bottom: 1px solid #ffb15e60; }
.incoming-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.incoming h2 { font: 800 1.12rem/1.35 var(--body); }
.incoming p { color: #e3ccc0; font-size: .9rem; }

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 90% 44%, #492a21 0%, #291f1c 37%, #171515 72%);
  border-bottom: 4px solid var(--orange);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(1.75rem, 5.5vw, 6rem);
  padding-block: clamp(3.8rem, 6.1vw, 6.5rem);
}
.eyebrow, figcaption > span, .challenge-figure figcaption {
  display: flex;
  gap: .55rem;
  align-items: center;
  font: 700 .72rem/1.4 var(--body);
  text-transform: uppercase;
  letter-spacing: .15em;
}
.eyebrow { color: var(--orange); }
.live-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 13px #ffb15e70; }
.hero h1 {
  margin: 1.15rem 0 1.25rem;
  font-family: var(--game-title);
  font-size: clamp(4.6rem, 8.3vw, 8.5rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .02em;
}
.hero h1 span { display: block; white-space: nowrap; }
h1 em, h2 em { color: var(--orange); font-style: inherit; }
.hero-summary { max-width: 35ch; color: #e3d7d0; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { display: flex; gap: .85rem 1.45rem; align-items: center; flex-wrap: wrap; margin-top: 1.55rem; }
.text-link { display: inline-flex; gap: .52rem; align-items: center; padding-block: .5rem; color: var(--paper); font-size: .94rem; font-weight: 750; text-decoration-color: #f6efe463; text-underline-offset: 5px; }
.text-link:hover { color: var(--orange); }
.platforms { margin-top: .85rem; color: var(--muted); font-size: .83rem; }
.hero-figure { min-width: 0; }
.hero-frame {
  position: relative;
  padding: 7px;
  background: #fff1;
  border: 1px solid #f5ceb15e;
  box-shadow: 0 18px 48px #0e080779;
}
.hero-frame::before, .hero-frame::after {
  position: absolute;
  z-index: 1;
  width: 20px; height: 20px;
  border: solid var(--orange);
  content: "";
  pointer-events: none;
}
.hero-frame::before { inset: -1px auto auto -1px; border-width: 2px 0 0 2px; }
.hero-frame::after { inset: auto -1px -1px auto; border-width: 0 2px 2px 0; }
.hero-frame img { width: 100%; height: auto; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-top: .75rem; color: #e5cfc1; }
.square { flex: none; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }

.courses, .controls { color-scheme: light; color: var(--paper-ink); background: var(--paper); }
.courses { padding-block: clamp(3.4rem, 6.2vw, 5.8rem); }
.section-heading { display: flex; gap: 1rem 3rem; align-items: end; justify-content: space-between; margin-bottom: 1.6rem; }
.section-heading h2, .challenges h2 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.section-heading p { max-width: 41ch; color: #5e5049; font-weight: 550; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.65rem); }
.course { min-width: 0; background: #fff9ef; border: 1px solid #dccfbe; }
.course-image { overflow: hidden; background: #1c2b3a; }
.course img { width: 100%; aspect-ratio: 16/10; height: auto; object-fit: cover; }
.course figcaption { padding: 1rem 1.2rem 1.25rem; }
.course .eyebrow { color: #974120; }
.course h3 { margin-top: .28rem; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.035em; }
.course p:last-child { margin-top: .4rem; color: #5e5049; font-size: .89rem; }

.challenges {
  background: radial-gradient(ellipse at 82% 75%, #243346 0, #182332 39%, #141b24 71%);
  padding-block: clamp(3.4rem, 6.2vw, 5.8rem);
}
.challenge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.challenge-copy { min-width: 0; }
.challenges h2 { margin: .9rem 0 1.05rem; font-style: italic; }
.challenge-copy > p:not(.eyebrow) { max-width: 50ch; margin-bottom: .85rem; color: #dce1e7; }
.challenge-entry { margin-top: 1.4rem; border-block: 1px solid #c9dafa45; }
.challenge-entry summary { width: fit-content; min-height: 44px; padding-block: .65rem; color: var(--orange); font-weight: 750; cursor: pointer; }
.challenge-entry summary:hover { color: #ffd094; }
.challenge-entry form { padding: .25rem 0 1rem; }
.challenge-entry label { display: block; margin-bottom: .35rem; color: #dde5f0; font-size: .85rem; font-weight: 650; }
.challenge-entry input {
  width: 100%; min-height: 45px; min-width: 0; padding: .5rem .7rem;
  background: #111923; border-radius: 3px; border: 1px solid #b6c8e27d; color: #fff;
}
.challenge-entry input::placeholder { color: #b5bdca; }
.challenge-entry input[aria-invalid="true"] { border-color: #ffb398; }
.ghost-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.form-status { color: #ffe0c7; margin-top: .42rem; font-size: .84rem; }
.form-status:empty { display: none; }
.challenge-entry noscript p { padding-bottom: .7rem; }
.challenge-figure { position: relative; border: 1px solid #b6c8e27d; }
.challenge-figure img { width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; }
.challenge-figure figcaption { position: absolute; bottom: .7rem; left: .7rem; padding: .42rem .65rem; background: #101722; }
.controls { padding-block: clamp(2.6rem, 4.2vw, 4.2rem); }
.controls .section-heading { margin: 0 auto; align-items: center; }
.controls h2 { font-size: clamp(2.5rem, 4.2vw, 3.8rem); }
.controls p { margin-top: .6rem; }
.controls .button { white-space: nowrap; }
.controls .button:focus-visible { outline-color: #28160d; }
.footer { border-top: 1px solid var(--line); padding-block: 1.45rem; }
.footer nav { gap: .65rem 1.6rem; flex-wrap: wrap; }

@media (max-width: 990px) and (min-width: 761px) {
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(3.6rem, 8.2vw, 6rem); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2.4rem); }
  .masthead-inner { min-height: 67px; gap: .85rem; }
  .masthead nav { display: none; }
  .hero-grid, .challenge-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2rem; padding-block: 3rem 2rem; }
  .hero h1 { font-size: clamp(3.8rem, 13.4vw, 7rem); }
  .hero-summary { max-width: 38ch; }
  .hero-frame { padding: 5px; }
  .section-heading { align-items: start; flex-direction: column; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 2rem); }
  .brand { font-size: 1.17rem; }
  .brand-mark { width: 24px; }
  .hero h1 { font-size: clamp(3rem, 14.7vw, 4.8rem); }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .incoming-inner { align-items: flex-start; flex-direction: column; }
  .hero-figure figcaption > span { font-size: .62rem; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
