/* OpenWar site. The page descends from sky to ground: haze at the top, scorched earth at the download.
   Palette taken from the key art (sky haze, gun steel, field soil) and the game's mark (silver, signal gold). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --haze: #dce2e6;
  --haze-deep: #c4ced5;
  --steel: #56636d;
  --ink: #162028;
  --dusk: #24231f;
  --earth: #16130e;
  --earth-raised: #1f1b15;
  --bone: #ede7dc;
  --khaki: #a59372;
  --signal: #e0a33a;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--earth);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.defs { position: absolute; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--haze);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Type ---- */

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 250;
  font-size: clamp(56px, 6.3vw, 132px);
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.tm {
  font-family: var(--text);
  font-weight: 400;
  font-stretch: 100%;
  font-size: .16em;
  letter-spacing: 0;
  vertical-align: top;
  margin-left: .2em;
  position: relative;
  top: .4em;
}

.display {
  margin: 0;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.012em;
}
.display--small { font-size: clamp(28px, 3vw, 44px); }

.kicker, .label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

.fine {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Buttons and links ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--haze); }
.btn--solid:hover { background: #24313c; border-color: #24313c; }
.btn--line { background: transparent; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { cursor: default; opacity: .5; }

.link {
  position: relative;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.link:hover::after { transform: scaleX(.35); }

/* ---- Masthead ---- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.masthead.is-scrolled {
  background: rgba(220, 226, 230, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(22, 32, 40, .12);
}
.masthead.is-earth { color: var(--bone); }
.masthead.is-earth.is-scrolled {
  background: rgba(22, 19, 14, .8);
  box-shadow: 0 1px 0 rgba(237, 231, 220, .1);
}
.masthead.is-earth .btn--line:hover { background: var(--bone); color: var(--earth); }
.masthead .btn--line:hover { background: var(--ink); color: var(--haze); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand__word .tm { font-size: .7em; top: 0; margin-left: .15em; }

.masthead__nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.masthead__nav a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s;
}
.masthead__nav a:hover { opacity: 1; }
.masthead__cta { margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 12px; }

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--haze);
  color: var(--ink);
}
.hero__art {
  position: absolute;
  inset: 0;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
  transform: scale(1.06);
  animation: settle 2.8s var(--ease) forwards;
}
.hero::after {
  /* lifts the sky behind the words; the art stays untouched elsewhere */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 84% 28%, rgba(220, 226, 230, .55), rgba(220, 226, 230, 0) 70%);
  pointer-events: none;
}
.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: max-content;
  max-width: 48vw;
  margin-left: auto;
  padding: calc(72px + 9vh) var(--gutter) 0 0;
}
.hero__lead {
  margin: 4px 0 0;
  max-width: 22em;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.45;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
}
.hero__note {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
}

.hero__copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__copy > :nth-child(1) { animation-delay: .35s; }
.hero__copy > :nth-child(2) { animation-delay: .45s; }
.hero__copy > :nth-child(3) { animation-delay: .65s; }
.hero__copy > :nth-child(4) { animation-delay: .8s; }
.hero__copy > :nth-child(5) { animation-delay: .9s; }

@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Sky: the game ---- */

.sky {
  position: relative;
  background: linear-gradient(var(--haze), var(--haze-deep));
  color: var(--ink);
  padding: var(--section) 0;
}
.sky::before {
  /* covers the sub-pixel seam where the hero ends on a fractional height */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--haze);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
}
.intro .lede { color: #2c3a45; }

.fronts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid rgba(22, 32, 40, .2);
}
.front {
  padding: 28px 32px 8px 0;
}
.front + .front {
  padding-left: 32px;
  border-left: 1px solid rgba(22, 32, 40, .2);
}
.front .label { color: var(--steel); }
.front h3 {
  margin: 44px 0 14px;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.005em;
}
.front p:last-child {
  margin: 0;
  max-width: 24em;
  color: #2c3a45;
}

/* ---- Band ---- */

.band {
  margin: 0;
  position: relative;
  height: clamp(260px, 38vw, 640px);
  overflow: hidden;
  background: var(--dusk);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.band::before, .band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  pointer-events: none;
}
.band::before { top: 0; background: linear-gradient(var(--haze-deep), rgba(196, 206, 213, 0)); opacity: .35; }
.band::after { bottom: 0; background: linear-gradient(rgba(36, 35, 31, 0), var(--dusk)); }

/* ---- Dusk: principles ---- */

.dusk {
  background: linear-gradient(var(--dusk), var(--earth));
  color: var(--bone);
  padding: clamp(72px, 9vw, 128px) 0 clamp(80px, 9vw, 136px);
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.principles h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 300;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.principles h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--signal);
}
.principles p {
  margin: 0;
  max-width: 22em;
  color: rgba(237, 231, 220, .72);
}

/* ---- Ground: download ---- */

.ground {
  background: var(--earth);
  color: var(--bone);
  padding: clamp(80px, 9vw, 136px) 0 clamp(96px, 10vw, 152px);
}

.ground .label { color: var(--khaki); }
.ground .fine { color: rgba(237, 231, 220, .6); }

.get {
  padding-top: clamp(64px, 7vw, 104px);
  border-top: 1px solid rgba(237, 231, 220, .1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px;
  align-items: start;
}
.get__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.get__intro .lede { color: rgba(237, 231, 220, .86); }

.spec {
  background: var(--earth-raised);
  border: 1px solid rgba(237, 231, 220, .12);
  padding: 28px;
}
.spec__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(237, 231, 220, .12);
}
.spec__mark { width: 28px; height: 28px; color: var(--bone); }
.spec__title {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .02em;
}
.spec__platform {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--khaki);
}
.spec__rows { margin: 8px 0 28px; }
.spec__rows > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(237, 231, 220, .08);
}
.spec__rows dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--khaki);
  padding-top: 2px;
}
.spec__rows dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bone);
}
.spec__hash dd {
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  color: rgba(237, 231, 220, .74);
}
.spec .btn--solid { background: var(--bone); border-color: var(--bone); color: var(--earth); }
.spec .btn--solid:hover { background: #fff; border-color: #fff; }

/* ---- Footer ---- */

.footer {
  background: #100e0a;
  color: var(--bone);
  padding: 56px 0 48px;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand--foot .brand__mark { width: 26px; height: 26px; }
.footer__nav {
  display: flex;
  gap: 28px;
}
.footer__nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(237, 231, 220, .7);
}
.footer__nav a:hover { color: var(--bone); }
.legal {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(237, 231, 220, .45);
}

/* ---- Reveal ---- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- Plain page (privacy) ---- */

.page {
  background: var(--haze);
  color: var(--ink);
  padding: calc(72px + 64px) 0 var(--section);
  min-height: 70vh;
}
.page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.page h1 { margin: 0 0 8px; }
.page h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 500;
  font-size: 20px;
}
.page p { margin: 0 0 12px; color: #2c3a45; }
.page .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--steel); margin-bottom: 32px; }
.page h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 16px;
}
.page ul, .page ol { margin: 0 0 12px; padding-left: 1.2em; color: #2c3a45; }
.page li { margin: 0 0 8px; }
.page li::marker { color: var(--steel); }
.page strong { font-weight: 600; color: var(--ink); }
.page a { text-underline-offset: 3px; }
.page h2[id] { scroll-margin-top: 96px; }
.policy__summary {
  margin: 8px 0 32px;
  padding: 4px 24px 12px;
  border-left: 2px solid var(--signal);
  background: rgba(255, 255, 255, .35);
}
.policy__summary h2 { margin-top: 20px; }
.policy__toc ol {
  columns: 2;
  column-gap: 40px;
  font-family: var(--mono);
  font-size: 13px;
}
.policy__toc a { text-decoration: none; }
.policy__toc a:hover { text-decoration: underline; }
@media (max-width: 860px) { .policy__toc ol { columns: 1; } }

/* ---- Small screens ---- */

@media (max-width: 1080px) {
  .hero__copy { width: min(56vw, 600px); }
  .intro { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .masthead { height: 64px; gap: 16px; }
  .masthead__nav { display: none; }
  .masthead__cta { margin-left: auto; }
  html { scroll-padding-top: 64px; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__art { position: relative; aspect-ratio: 1 / 1; }
  .hero__art img { object-position: 50% 50%; }
  .hero::after { display: none; }
  .hero__copy {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 40px var(--gutter) 72px;
  }
  .wordmark { font-size: min(96px, calc((100vw - 2 * var(--gutter)) / 7.1)); }
  .hero__actions { flex-wrap: wrap; gap: 20px 28px; }

  .fronts { grid-template-columns: 1fr; border-top: 0; margin-top: 56px; }
  .front, .front + .front {
    padding: 24px 0 28px;
    border-left: 0;
    border-top: 1px solid rgba(22, 32, 40, .2);
  }
  .front h3 { margin-top: 16px; }

  .principles { grid-template-columns: 1fr; gap: 56px; }
  .spec { padding: 22px; }
  .spec__rows > div { grid-template-columns: 96px minmax(0, 1fr); }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art img { animation: none; transform: none; }
  .hero__copy > * { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .link::after, .btn, .masthead { transition: none; }
}
