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

@font-face {
  font-family: 'DM Sans';
  src: url('./dm-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --forest: #14291f;
  --forest-deep: #10241b;
  --leaf: #325841;
  --line: #456954;
  --paper: #f6edd6;
  --cream: #fff4d6;
  --banana: #ffdb53;
  --mint: #c1d3bc;
  --focus: #a3e89f;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--forest);
  color: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

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

.wrap {
  width: min(calc(100% - 104px), 1280px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--banana);
  color: var(--forest-deep);
  font-weight: 800;
}

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

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

.topbar {
  min-height: 73px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  width: fit-content;
  font: italic 900 1.65rem / 1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-fruit { image-rendering: pixelated; }

.top-nav {
  display: flex;
  gap: 32px;
  color: var(--mint);
  font-size: .94rem;
  font-weight: 700;
}

.top-nav a:hover, .footer-inner > a:hover { color: var(--banana); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms, color 140ms, border-color 140ms, translate 140ms;
}

.button:hover { translate: 0 -2px; }
.button:active { translate: 0 1px; }
.button:disabled { opacity: .65; cursor: wait; translate: none; }
.button-primary { color: var(--forest-deep); background: var(--banana); }
.button-primary:hover { background: #ffea89; }
.button-outline { border-color: #678372; background: transparent; color: var(--cream); }
.button-outline:hover { border-color: var(--banana); color: var(--banana); }
.button-arrow { font-size: 1.13rem; line-height: 1; }

.nav-play {
  min-height: 39px;
  justify-self: end;
  padding: 8px 15px;
}

.play-icon {
  width: 11px;
  height: 12px;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero {
  display: grid;
  grid-template-columns: .92fr 1.52fr;
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  padding-block: 57px 70px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--mint);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 18px;
  height: 4px;
  transform: skewX(-12deg);
  background: #ff8258;
}

.hero h1 {
  width: fit-content;
  font: italic 900 clamp(4.8rem, 9.25vw, 8.6rem) / .81 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.hero h1 span { display: block; padding-right: .065em; }
.hero h1 span + span { color: var(--banana); }

.hero-intro {
  max-width: 32ch;
  margin-block: 26px 24px;
  color: #e5e5ce;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.cover-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.54;
  border: 1px solid #799368;
  border-radius: 2px;
  background: #216f62;
  box-shadow: 9px 9px 0 var(--leaf);
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}

.island {
  --focus: #1b6e47;
  color-scheme: light;
  border-top: 5px solid var(--banana);
  padding-block: 43px 59px;
  background: var(--paper);
  color: var(--forest-deep);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.section-heading img { width: 54px; height: 54px; image-rendering: pixelated; }

.section-heading h2, .controls h2 {
  font: italic 900 clamp(3rem, 5.7vw, 5.2rem) / .96 var(--display);
  letter-spacing: -.016em;
  text-transform: uppercase;
  text-wrap: balance;
}

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

.shot-link {
  position: relative;
  display: block;
  border: 2px solid var(--forest-deep);
  box-shadow: 4px 4px 0 #a1ab82;
  background: var(--leaf);
  transition: translate 140ms, box-shadow 140ms;
}

.shot-link:hover {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 #78885a;
}

.shot-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.expand-mark {
  position: absolute;
  inset: 9px 9px auto auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #8da18f;
  border-radius: 2px;
  background: var(--forest-deep);
  color: var(--cream);
  font-size: 1.2rem;
}

.shot figcaption { margin-top: 17px; }
.shot h3 { font: italic 900 1.9rem / 1 var(--display); text-transform: uppercase; }
.shot p { margin-top: 5px; color: #394e40; font-size: .95rem; line-height: 1.4; }

.controls {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding-block: 58px 64px;
}

.controls h2 { font-size: clamp(2.8rem, 5vw, 4.6rem); color: var(--banana); }
.controls p { margin-top: 12px; max-width: 37ch; color: var(--mint); line-height: 1.55; }

.keymap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 18px;
}

.keymap > div { padding-top: 9px; border-top: 1px solid var(--line); }
.keymap dt { margin-bottom: 6px; color: var(--mint); font-size: .85rem; font-weight: 800; }
.keymap dd { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.keymap dd span { padding-inline: 2px; color: var(--mint); font-size: .78rem; }

kbd {
  min-width: 27px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 2px 5px;
  border: 1px solid #658270;
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--cream);
  background: #1d3b2c;
  font: 700 .79rem / 1 'DM Sans', system-ui, sans-serif;
}

.site-footer { border-top: 1px solid var(--line); background: var(--forest-deep); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 15px 28px;
  padding-block: 24px;
  color: var(--mint);
  font-size: .86rem;
}

.footer-inner .wordmark { font-size: 1.25rem; color: var(--cream); }
.release-info { max-width: min(100%, 350px); }
.release-info summary { cursor: pointer; }
.release-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 12px; }
.release-info dd { overflow-wrap: anywhere; }

dialog {
  max-width: calc(100% - 30px);
  max-height: calc(100% - 30px);
  padding: 20px;
  border: 1px solid #8ba78b;
  border-radius: 4px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 7px 7px 0 var(--forest-deep);
}

dialog::backdrop { background: rgb(6 19 13 / 84%); }
.screenshot-dialog { width: min(1060px, 92vw); }

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}

.dialog-heading h2 { color: var(--banana); font: italic 900 2.1rem / 1 var(--display); }

.dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid #8ba78b;
  border-radius: 3px;
  background: transparent;
  color: var(--cream);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { color: var(--banana); border-color: var(--banana); }

.screenshot-dialog img { width: 100%; max-height: 76vh; height: auto; object-fit: contain; }

@media (max-width: 1000px) {
  .wrap { width: min(calc(100% - 64px), 1280px); }
  .hero { padding-block: 45px 53px; }
  .hero h1 { font-size: clamp(4.4rem, 9.65vw, 8.6rem); }
  .shots { gap: 17px; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { grid-template-columns: 1fr auto; min-height: 62px; gap: 12px; }
  .top-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 30px 42px; }
  .hero h1 { font-size: clamp(4.75rem, 14.2vw, 6.6rem); }
  .kicker { margin-bottom: 12px; }
  .hero-intro { margin-block: 19px 18px; }
  .cover-frame { aspect-ratio: 1.53; box-shadow: 5px 5px 0 var(--leaf); }
  .island { padding-block: 31px 40px; }
  .section-heading { gap: 12px; margin-bottom: 18px; }
  .section-heading img { width: 38px; height: 38px; }
  .shots { grid-template-columns: 1fr; gap: 25px; }
  .shot figcaption { margin-top: 12px; }
  .controls { grid-template-columns: 1fr; gap: 22px; padding-block: 38px 44px; }
  .keymap { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
