@font-face {
  font-family: Inter;
  src: url("/media/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f5f4f1;
  --surface: #fcfbf9;
  --text: #171717;
  --muted: #565659;
  --line: #deddd9;
  --launch: #263a33;
  --footer: #43534c;
  --brand-mark: url("/media/wildbox-mark-light.png");
  --gear: url("/media/settings-light.svg");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --canvas: #131314;
    --surface: #1b1b1d;
    --text: #f2f1ee;
    --muted: #a6a6a8;
    --line: #323234;
    --launch: #f4f7f3;
    --footer: #bcc9c5;
    --brand-mark: url("/media/wildbox-mark-dark.png");
    --gear: url("/media/settings-dark.svg");
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #131314;
  --surface: #1b1b1d;
  --text: #f2f1ee;
  --muted: #a6a6a8;
  --line: #323234;
  --launch: #f4f7f3;
  --footer: #bcc9c5;
  --brand-mark: url("/media/wildbox-mark-dark.png");
  --gear: url("/media/settings-dark.svg");
}

*, *::before, *::after { box-sizing: border-box; }
body.landing-page {
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  padding-bottom: 76px;
  font: 15px/22px Inter, system-ui, sans-serif;
}
[hidden] { display: none !important; }

.skip { position: absolute; left: 1rem; top: -6rem; z-index: 2; }
.skip:focus { top: 1rem; padding: .5rem; background: var(--surface); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.masthead {
  width: min(100%, 1120px);
  height: 66px;
  margin: auto;
  display: flex;
  padding: 0 38px 0 22px;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 7px; }
.brand-mark { width: 20px; height: 22px; background: var(--brand-mark) center / contain no-repeat; }
.wordmark { font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -.35px; }
.edition { margin-left: 15px; color: var(--muted); font-size: 12px; line-height: 17px; letter-spacing: 1.1px; text-transform: uppercase; }
.settings-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--surface) var(--gear) center / 22px 22px no-repeat;
  color: var(--text);
  cursor: pointer;
}

.landing-page main { width: 100%; margin: 0; padding: clamp(35px, calc(100svh - 663px), 96px) 18px 0; text-align: center; }
h1 { margin: 0; font-size: clamp(48px, 7.5vw, 84px); font-weight: 700; line-height: 1.048; letter-spacing: -.0667em; }
.deck { margin: 18px 0 0; color: var(--muted); }
.deck-phone { display: none; }
.hero-motion { margin: 9px auto 0; height: clamp(265px, calc(100svh - 392px), 365px); width: min(100%, 510px); }
.motion-frame { position: relative; display: block; width: 100%; height: 100%; }
.motion-frame img, .motion-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.motion-frame video { visibility: hidden; }
.motion-frame[data-playing] video { visibility: visible; }
.motion-frame[data-playing] img { visibility: hidden; }
.availability { margin: 0; color: var(--launch); font-size: 18px; font-weight: 500; }

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 6px; padding: 0 18px 22px; color: var(--footer); font-size: 13px; }
footer a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; text-underline-offset: 3px; text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

@media (max-width: 640px) {
  .masthead { padding: 0 18px 0 22px; }
  .brand-mark, .edition { display: none; }
  .landing-page main { padding-top: clamp(29px, calc(100svh - 769px), 86px); }
  h1 { font-size: clamp(36px, 12.31vw, 48px); line-height: 1.146; letter-spacing: -.0583em; }
  .deck-desktop { display: none; }
  .deck-phone { display: block; }
  .hero-motion { height: clamp(245px, calc(100svh - 500px), 348px); margin-top: 13px; }
  .availability { margin-top: 18px; font-size: 16px; }
  footer { margin-top: clamp(18px, calc(100svh - 790px), 66px); }
}

@media (forced-colors: active) {
  .settings-button::after { content: "⚙"; }
}
