/* Arcana Grid landing page (/trailer). No scripts; the colors are the game's master palette. */

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/trailer/fonts/press-start-2p-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/trailer/fonts/pixelify-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/trailer/fonts/pixelify-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --ink: #07070d;
  --night: #0e0f1a;
  --panel: #13152a;
  --line: #2a2f55;
  --gold: #f5c542;
  --gold-light: #fbf236;
  --bronze: #b9832c;
  --silver: #9badb7;
  --silver-light: #cbdbfc;
  --blue: #639bff;
  --red: #d95763;
  --pixel: 'Press Start 2P', monospace;
  --body: 'Pixelify Sans', system-ui, sans-serif;
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver-light);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 200px;
  background:
    linear-gradient(to bottom, rgba(7, 7, 13, 0) 70%, var(--ink) 100%),
    url('/trailer/media/sky.png') center bottom / cover no-repeat,
    var(--night);
  image-rendering: pixelated;
  text-align: center;
}

.hero__inner {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  image-rendering: auto;
}

.gridmark {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 4px;
  padding: 4px;
  background: var(--ink);
}
.gridmark span {
  width: 16px;
  height: 16px;
}
.gridmark .b {
  background: var(--blue);
}
.gridmark .g {
  background: var(--gold);
}
.gridmark .r {
  background: var(--red);
}

/* The wordmark: the game's own logo treatment (gold stepped face over a bronze extrusion). */
.logo {
  position: relative;
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  --u: 3px;
}
.logo__back {
  position: absolute;
  inset: 0;
  color: #3b2410;
  user-select: none;
  text-shadow:
    0 var(--u) 0 #b0702a,
    0 calc(var(--u) * 2) 0 #7a4a1c,
    var(--u) 0 0 var(--ink),
    calc(var(--u) * -1) 0 0 var(--ink),
    0 calc(var(--u) * -1) 0 var(--ink),
    var(--u) calc(var(--u) * -1) 0 var(--ink),
    calc(var(--u) * -1) calc(var(--u) * -1) 0 var(--ink),
    var(--u) var(--u) 0 var(--ink),
    calc(var(--u) * -1) var(--u) 0 var(--ink),
    var(--u) calc(var(--u) * 2) 0 var(--ink),
    calc(var(--u) * -1) calc(var(--u) * 2) 0 var(--ink),
    0 calc(var(--u) * 3) 0 var(--ink),
    calc(var(--u) * 2) calc(var(--u) * 4) 0 rgba(3, 3, 8, 0.55);
}
.logo__face {
  position: relative;
  color: transparent;
  background-image: linear-gradient(
    180deg,
    #fffbd0 0 16%,
    #fbf236 16% 34%,
    #f5c542 34% 58%,
    #e0a93a 58% 76%,
    #b9832c 76% 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.tagline {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}
.diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__pitch {
  margin: 0;
  max-width: 640px;
  font-size: 20px;
  color: var(--silver-light);
  text-shadow: 0 2px 0 var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  transition:
    transform 80ms steps(2),
    box-shadow 80ms steps(2);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-light) 0 18%, var(--gold) 18% 82%, #e0a93a 82%);
  color: var(--ink);
}
.btn--ghost {
  background: rgba(14, 15, 26, 0.85);
  color: var(--silver-light);
  border-color: var(--line);
}
.btn--big {
  font-size: 14px;
  padding: 18px 28px;
}

.platforms {
  margin: 0;
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------------------------------------------------------------- sections */

main {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 0 16px 96px;
}

.section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section__title {
  display: table;
  margin: 0 auto 28px;
  padding: 8px 14px;
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 4px 4px 0 0 var(--bronze);
}

.section--trailer {
  margin-top: -96px;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frame {
  border: 4px solid var(--bronze);
  box-shadow:
    0 0 0 4px var(--ink),
    0 24px 60px rgba(0, 0, 0, 0.6);
  background: var(--ink);
}
.frame--video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.prose {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.prose p {
  margin: 0 0 14px;
}
.prose strong,
.features strong {
  color: var(--gold);
  font-weight: 600;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 3px solid var(--line);
}
.pillar img {
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--line);
}
.pillar h3 {
  margin: 18px 18px 8px;
  font-family: var(--pixel);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
}
.pillar p {
  margin: 0 18px 20px;
  font-size: 17px;
  color: var(--silver-light);
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery a {
  display: block;
  border: 3px solid var(--line);
  background: var(--ink);
}
.gallery a:hover {
  border-color: var(--gold);
}
.gallery img {
  width: 100%;
  height: auto;
}

.features {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.features li {
  position: relative;
  padding-left: 22px;
}
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section--cta {
  text-align: center;
  padding: 56px 16px;
  background: var(--panel);
  border: 3px solid var(--line);
}
.cta__title {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gold);
  text-transform: uppercase;
}
.cta__text {
  margin: 0 0 28px;
}

.footer {
  padding: 28px 16px 40px;
  text-align: center;
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--silver);
  border-top: 3px solid var(--panel);
}

/* ---------------------------------------------------------------- breakpoints */

@media (min-width: 600px) {
  .logo {
    font-size: 48px;
    white-space: nowrap;
    --u: 3px;
  }
  .logo__break {
    display: none;
  }
  .tagline {
    font-size: 10px;
  }
}

@media (min-width: 900px) {
  .logo {
    font-size: 72px;
    --u: 4px;
  }
  .gridmark {
    grid-template-columns: repeat(3, 20px);
  }
  .gridmark span {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 899px) {
  .pillars {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  body {
    font-size: 17px;
  }
  .hero {
    min-height: 0;
    padding: 56px 16px 150px;
  }
  .hero__pitch {
    font-size: 18px;
  }
  .section--trailer {
    margin-top: -64px;
  }
  .tagline .diamond {
    display: none;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
}

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