/* Orbital Rivals website. One stylesheet for every page, no JavaScript.
   Palette and type are the game's: near-black, cyan for the player, amber
   from the dying star, Titillium Web. The font is served from this site: the
   privacy note promises no font service. */

@font-face { font-family: 'Titillium Web'; font-weight: 400; font-display: swap; src: url('/fonts/titillium-web-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Titillium Web'; font-weight: 600; font-display: swap; src: url('/fonts/titillium-web-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Titillium Web'; font-weight: 900; font-display: swap; src: url('/fonts/titillium-web-900-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #020304;
  --surface: #0b1016;
  --line: #17232f;
  --text: #eaf2f8;
  --soft: #c9d4de;
  --muted: #9aa7b3;
  --accent: #5fd8e8;
  --amber: #f0b45a;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--soft); font: 17px/1.6 'Titillium Web', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { color: var(--text); line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 10px 14px; z-index: 5; }

/* Header: the name, and the way to help. */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { color: var(--text); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.top nav a { color: var(--soft); text-decoration: none; padding: 12px 0 12px 20px; display: inline-block; }
.top nav a:hover { color: var(--accent); }

/* 1. Hero. The art is a real image, not a background, so it loads first. */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero picture, .hero .art { position: absolute; inset: 0; }
.hero .art { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #020304 0%, #020304e6 24%, #02030488 44%, #02030400 66%), linear-gradient(0deg, #020304 0%, #02030400 22%); }
.hero-in { position: relative; z-index: 1; min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 64px; }
.hero h1 { font-weight: 900; font-size: clamp(3rem, 9vw, 6rem); line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; }
.hero .line { color: var(--text); font-size: clamp(1.25rem, 3vw, 1.7rem); margin: 20px 0 8px; }
.hero .lead { max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.badge img { height: 60px; width: auto; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 8px; color: var(--bg); background: var(--accent); font-weight: 600; text-decoration: none; }
.button.quiet { color: var(--accent); background: transparent; }
.soon { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; }

/* 2. Three pillars: one line and one store frame each. */
.pillars { padding-top: 72px; padding-bottom: 40px; }
.pillars h2, .finale h2, .beta h2, .know h2 { font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 2.6rem); text-transform: uppercase; }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pillar img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.pillar div { padding: 18px 20px 6px; }
.pillar h3 { font-weight: 900; font-size: 1.35rem; text-transform: uppercase; margin-bottom: 8px; }
.note { max-width: 44em; margin: 36px 0 0; color: var(--text); font-size: 1.1rem; }

/* 3. The finale, with the Citadel plate. */
.finale { position: relative; overflow: hidden; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.finale .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.finale::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #020304 0%, #020304d9 30%, #02030455 58%, #02030400 80%); }
.finale-in { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 84px; }
.finale p { max-width: 26em; margin-top: 14px; color: var(--text); }
.finale .eyebrow { color: var(--amber); }

/* 4. Good to know, and the beta. */
.know { padding-top: 64px; padding-bottom: 24px; }
.know ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px 32px; grid-template-columns: repeat(2, 1fr); }
.know li { border-left: 2px solid var(--accent); padding-left: 14px; }
.beta { padding-top: 40px; padding-bottom: 80px; }
.beta .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.beta p { max-width: 38em; margin-top: 12px; }

/* Footer, on every page. */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 10px; }
footer a { color: var(--soft); text-decoration: none; padding: 10px 0; display: inline-block; }
footer a:hover { color: var(--accent); }

/* Plain pages: Privacy, Delete account, Support, Not found. Text, no art. */
.plain { max-width: 720px; margin: 0 auto; padding: 28px 20px 56px; }
.plain h1 { font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.6rem); text-transform: uppercase; margin-bottom: 14px; }
.plain h2 { font-weight: 600; font-size: 1.25rem; margin: 34px 0 8px; }
.plain h3 { font-weight: 600; font-size: 1.08rem; color: var(--text); margin: 24px 0 6px; }
.plain .lead { color: var(--text); font-size: 1.1rem; }
.plain ul, .plain ol { padding-left: 1.3em; margin: 0 0 1em; }
.plain li { margin-bottom: 6px; }
.plain .fine { color: var(--muted); font-size: 0.95rem; margin-top: 32px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 18px 0; }
.contact a { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; max-width: 420px; }
  .know ul { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* The phone hero is the portrait splash, shown nearly whole: the words sit
     on its calm top and the fleet flies in below them. */
  .hero .art { object-position: 50% 100%; }
  .hero::after { background: linear-gradient(180deg, #020304 0%, #020304e6 24%, #02030400 44%), linear-gradient(0deg, #020304 0%, #02030400 12%); }
  .hero-in { min-height: 0; justify-content: flex-start; padding-top: 20px; padding-bottom: 122vw; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hero .line { margin-top: 12px; }
  .top nav a { padding-left: 14px; }
  .finale .art { object-position: 82% 50%; opacity: 0.55; }
  .finale-in { padding-top: 56px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
