@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/barlow-condensed-800.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #0b1213;
  --surface: #142020;
  --text: #f6f1e4;
  --muted: #bcc9c2;
  --gold: #ffd18b;
  --gold-light: #ffdfaa;
  --ink: #17201d;
  --line: #344541;
  --gutter: clamp(1.15rem, 4vw, 3.4rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.65 system-ui, sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: .98; }
h2 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
h3 { font-size: 1.15rem; line-height: 1.35; }
p { color: var(--muted); }

.site-shell {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  transform: translateY(calc(-100% - 1rem));
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: .3rem;
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
}

.header-inner { min-height: 4.35rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding-block: .45rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-name {
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.brand-name span { color: var(--gold); }

.brand-mark {
  position: relative;
  flex: 0 0 1.45rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid #e7b66f;
  background: #261e15;
  transform: rotate(45deg) scale(.8);
}

.brand-mark::after {
  position: absolute;
  content: "";
  inset: .32rem;
  border: 1px solid var(--gold);
  background: #8b592f;
}

.header-nav, .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(.8rem, 2.6vw, 1.8rem);
}

.header-nav a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.header-nav a:hover, .footer-links a:hover, .footer-links a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 49vw, 43rem);
  isolation: isolate;
  overflow: hidden;
  background: #0d191a;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(100%, 95rem);
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, var(--page), transparent 31%),
    linear-gradient(90deg, #0b1213 1%, #0b1213f9 14%, #0b1213dc 30%, #0b12136b 51%, #0b121309 77%);
}

.hero-content { padding-block: 3rem 4.5rem; }

.eyebrow, .legal-eyebrow {
  color: var(--gold);
  font-size: .87rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(5rem, 9vw, 9rem);
  margin-block: .65rem 1rem;
  letter-spacing: -.022em;
  line-height: .8;
  text-transform: uppercase;
}

.hero h1 span { display: block; color: var(--gold); }

.hero-description {
  max-width: 28rem;
  color: #e6ebe2;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.1rem;
  max-width: 100%;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.button-primary { color: var(--ink); background: var(--gold); }
.button-primary:hover { color: var(--ink); background: var(--gold-light); }
.button-secondary { color: var(--text); background: #102020a3; border-color: #74857a; }
.button-secondary:hover { color: var(--gold-light); background: #1b2e2b; border-color: var(--gold); }

.gameplay {
  display: grid;
  grid-template-columns: minmax(13.5rem, .85fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.gameplay-intro { padding-block: .5rem; }
.gameplay-intro p { margin-block: 1rem 0; }
.gameplay-intro strong { color: var(--text); }

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
}

.screenshot-frame {
  display: grid;
  place-items: center;
  height: clamp(15rem, 26vw, 23rem);
  min-width: 0;
  padding: .9rem;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #596957, #253733 68%);
}

.screenshot-map { background: radial-gradient(ellipse at center, #537775, #183132 68%); }

.screenshot-frame img {
  width: auto;
  height: 100%;
  max-height: calc(clamp(15rem, 26vw, 23rem) - 1.8rem);
  object-fit: contain;
  border-radius: .45rem;
  outline: 1px solid #ffffff22;
  box-shadow: 0 .55rem 1.65rem #050c1099;
}

.game-card figcaption { padding: .95rem 1rem 1.15rem; }
.game-card figcaption p { margin-top: .35rem; }

.testing {
  padding-block: clamp(2.8rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
  background: #101c1b;
}

.testing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3.2rem);
}

.testing-feature {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 22rem;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #7a6746;
  border-radius: .6rem;
  background: #182923;
}

.testing-feature img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 52% 44%;
}

.testing-feature::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #0b1513, #0b1513e8 26%, #0b1513b3 52%, #0b151321 100%);
}

.testing-copy { padding: clamp(1.15rem, 3vw, 2rem); }
.testing-copy h2 { margin-block: .4rem .75rem; }
.testing-copy p:last-child { color: #edf1e7; }
.testing-details h3 { margin-top: .5rem; }
.testing-details dl { margin-block: .8rem 1.1rem; }

.testing-details dl div {
  display: grid;
  grid-template-columns: 6.8rem 1fr;
  align-items: baseline;
  gap: .25rem .8rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}

dt { font-weight: 700; }
dd { margin: 0; color: var(--muted); }

details {
  padding: .3rem .85rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--page);
}

summary { padding-block: .45rem; cursor: pointer; font-weight: 700; }
details > p { padding: .15rem 0 .6rem; }
details a, .legal-body p a { color: var(--gold); overflow-wrap: anywhere; }

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.support h2 { font-size: clamp(2.35rem, 4vw, 3.2rem); margin-bottom: .6rem; }
.support .button { flex-shrink: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #0e1717;
}

.footer-inner { padding-block: 1.05rem; }

.legal-main {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 47rem);
  min-height: 60vh;
  padding-block: clamp(2.4rem, 7vw, 5rem);
}

.legal-main h1 { font-size: clamp(3rem, 7vw, 5.1rem); margin-block: .55rem 1.45rem; }
.legal-body {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.legal-body h2 {
  margin-block: 1.7rem .55rem;
  font: 750 1.25rem/1.4 system-ui, sans-serif;
}

.legal-body h2:first-child { margin-top: 0; }
.legal-body p + p { margin-top: .8rem; }
.legal-body .button { margin-top: 1rem; }

@media (max-width: 55rem) {
  .gameplay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gameplay-intro { grid-column: 1 / -1; max-width: 38rem; }
}

@media (max-width: 43rem) {
  .header-inner { align-items: flex-start; padding-block: .55rem .2rem; }
  .header-nav { width: 100%; }
  .hero { align-items: end; min-height: 0; }
  .hero-content { padding-block: clamp(13.8rem, 53vw, 19rem) 2rem; }
  .hero-art { height: clamp(20rem, 59vw, 25rem); object-position: 68% 50%; }
  .hero::after {
    background: linear-gradient(0deg, var(--page) 23%, #0b1213f2 45%, #0b1213a8 58%, #0b12130a 83%);
  }
  .hero h1 { font-size: clamp(4.4rem, 14vw, 6.5rem); }
  .testing-inner { grid-template-columns: 1fr; }
  .support { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 32rem) {
  .gameplay { grid-template-columns: 1fr; }
  .gameplay-intro { padding-block: 0; }
  .screenshot-frame { height: 20rem; }
  .screenshot-frame img { max-height: 18.2rem; }
}

@media (max-width: 24rem) {
  .header-nav { gap: 0 .65rem; }
  .header-nav a { font-size: .84rem; }
  .hero-actions .button { flex: 1 1 13rem; }
  .testing-details dl div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
