/* steerling.dev landing page (T-037). Mobile first. Brand: marketing/brand/BRAND.md.
   Colors are the brand's only: Midnight, Deep, Steer Blue, Sterling, Signal Amber.
   Amber is light only: the one call to action's edge, the link underline, focus. Never a fill.
   Type is Oxanium throughout (the brand's one face): 700 for the headline and names, 400 for
   running text, no letter-spacing and no all-caps outside the game's own name.
   Contrast on Midnight #070B1A (WCAG 2.x relative luminance, computed by hand 2026-10-28):
   Sterling #DDE4F3 about 15.4:1, Sterling low #A9B5D2 about 9.5:1, Amber #FFA52E about 10.0:1,
   Sterling mute #7E8BAD about 5.0:1 (AA; used only at 0.875rem and up). */

@font-face {
  font-family: "Oxanium";
  src: url("/fonts/Oxanium.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #070b1a;
  --deep: #121a3e;
  --steer-blue: #3b6bff;
  --sterling: #dde4f3;
  --sterling-low: #a9b5d2;
  --sterling-mute: #7e8bad;
  --amber: #ffa52e;
  --surface: #0c1330;
  --line: rgba(169, 181, 210, 0.12);

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.4rem + 3.4vw, 4.5rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --page: 68rem;
  --measure: 34rem;
  --space-m: 1.5rem;
  --space-l: clamp(3rem, 8vw, 6rem);
  --space-xl: clamp(4.5rem, 12vw, 9rem);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--midnight);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--sterling);
  background: var(--midnight);
  font-family: "Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Installed to the home screen the page runs under a translucent status bar and, in
     landscape, beside the notch: keep content clear of both. Zero in a browser tab. */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

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

/* ---------- accessibility ---------- */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--deep);
  color: var(--sterling);
  border: 1px solid var(--amber);
  border-radius: 6px;
  z-index: 10;
  text-decoration: none;
}

.skip:focus-visible {
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- masthead ---------- */

.masthead {
  padding-top: env(safe-area-inset-top, 0px);
}

.masthead-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.75rem var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.lockup img {
  width: 1.75rem;
  height: 1.75rem;
}

.lockup-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.masthead-nav {
  display: flex;
  gap: 0.25rem;
}

.masthead-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--sterling-low);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 160ms ease;
}

.masthead-nav a:hover {
  color: #fff;
}

/* ---------- hero: one headline, one action ---------- */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-l) var(--gutter) var(--space-l);
}

.hero h1 {
  margin: 0;
  max-width: 14em;
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

.hero-actions {
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 8px;
  background: #fff;
  color: var(--midnight);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--sterling);
  color: var(--midnight);
}

.button:active {
  transform: translateY(1px);
}

/* ---------- the game: the work, shown big ---------- */

.game {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-xl);
}

.label {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--sterling-mute);
}

.game-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.game-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 50%;
}

.game-copy {
  padding: 1.25rem var(--gutter) 1.5rem;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.game-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.game-name {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
}

.game-status {
  margin: 0.15rem 0 0;
  font-size: var(--step--1);
  color: var(--sterling-low);
}

.game-line {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--sterling);
  text-wrap: pretty;
}

/* ---------- the studio: a quieter band ---------- */

.studio {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 26, 62, 0.35), rgba(18, 26, 62, 0) 70%);
}

.studio-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-l) var(--gutter) var(--space-xl);
}

.studio h2 {
  margin: 0 0 1rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--sterling-mute);
}

.lead {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

.body {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--sterling-low);
  text-wrap: pretty;
}

.link-line {
  margin: 1.5rem 0 0;
}

.link-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- links ---------- */

a {
  color: var(--sterling);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: #fff;
}

/* ---------- footer ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-m) var(--gutter) max(var(--space-m), env(safe-area-inset-bottom));
  display: grid;
  gap: 0.5rem;
  font-size: var(--step--1);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: var(--sterling-low);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-legal {
  margin: 0;
  color: var(--sterling-mute);
}

/* ---------- wide screens ---------- */

@media (min-width: 48rem) {
  .masthead-inner {
    padding-top: 1.25rem;
  }

  .hero {
    padding-top: var(--space-l);
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    max-width: 13em;
  }

  .game-art img {
    aspect-ratio: 16 / 9;
  }

  .game-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding: 1.5rem 2rem 1.75rem;
  }

  .game-head {
    flex: 0 0 auto;
  }

  .game-line {
    margin: 0;
    flex: 0 1 30rem;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-m);
  }

  .footer-links {
    justify-self: center;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .game {
    animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-actions { animation-delay: 80ms; }
  .game { animation-delay: 160ms; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .game-card {
    border: 1px solid CanvasText;
  }
}
