/* The marketing site, in the game's UI look (docs/specs/2026-10-06-ui-look): plum damask panels with
   gold trim, sunset headings, cream body text with a black drop shadow, tan labels. The panels and
   pixel words are painted by js/site.js; without it the page still reads, in plain colors. */

@font-face {
  font-family: 'Pixelify Sans';
  src: url('fonts/pixelify-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --px: 3px;
  --navy: #222034;
  --plum: #45283c;
  --dark-brown: #663931;
  --brown: #8f563b;
  --copper: #b05b2c;
  --rust: #b9451d;
  --orange: #df7126;
  --light-orange: #e88a36;
  --gold: #f8c53a;
  --cream: #f7ece6;
  --tan: #d9a066;
  --cyan: #26d4de;
  --lime: #8fd032;
  --pink: #e27285;
  --black: #000000;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: 'Pixelify Sans', ui-monospace, monospace;
  font-size: 19px;
  line-height: 1.45;
  text-shadow: 2px 2px 0 var(--black);
  /* The navy checker the game dims the world with. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%2345283c'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%2345283c'/%3E%3C/svg%3E") 0 0 / calc(var(--px) * 2) calc(var(--px) * 2),
    var(--navy);
  image-rendering: pixelated;
}

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

a:hover {
  color: var(--cream);
}

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

img,
canvas {
  image-rendering: pixelated;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Panels and plaques: content over the painted canvas. */
.panel,
.plaque {
  position: relative;
  isolation: isolate;
}

.panel .paint,
.plaque .paint {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.panel {
  padding: calc(var(--px) * 12) calc(var(--px) * 9);
  margin: calc(var(--px) * 14) 0 0;
}

.panel[data-title] {
  padding-top: calc(var(--px) * 21);
}

.panel[data-deco='off'] {
  padding: calc(var(--px) * 4);
}

/* Without the script the panels keep a plain frame. */
.panel:not(:has(.paint)) {
  border: var(--px) solid var(--gold);
  background: linear-gradient(var(--plum), var(--navy));
}

.panel > h2 {
  margin: 0;
}

.plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--px) * 15);
  padding: 0 calc(var(--px) * 8);
  color: var(--cream);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
}

.plaque:not(:has(.paint)) {
  border: var(--px) solid var(--brown);
  background: var(--navy);
}

.plaque.button:hover,
.plaque.button:focus-visible {
  color: var(--gold);
}

.plaque.button:focus-visible {
  outline: none;
}

/* Pixel words: the canvas the script draws in their place. */
.px.drawn {
  display: inline-block;
  line-height: 0;
  text-shadow: none;
}

.px:not(.drawn) {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px[data-font^='label']:not(.drawn) {
  color: var(--tan);
  font-size: 14px;
}

.px[data-font='heading-sunset']:not(.drawn) {
  color: var(--gold);
}

/* The hero: the sign over the casino floor, behind the game's checker dim. */
.hero {
  position: relative;
  isolation: isolate;
  padding: 40px 16px 32px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('img/hero-bg.png') center / cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23222034'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23222034'/%3E%3C/svg%3E") 0 0 / calc(var(--px) * 2) calc(var(--px) * 2),
    linear-gradient(rgb(34 32 52 / 0.25), rgb(34 32 52 / 0.55) 55%, var(--navy));
}

.logo {
  display: block;
  width: min(100%, 615px);
  aspect-ratio: 123 / 70;
  margin: 0 auto;
}

.tagline {
  max-width: 34em;
  margin: 20px auto 0;
  font-size: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  margin: 28px 0 0;
}

.soon {
  color: var(--tan);
}

.promise {
  margin: 22px 0 0;
  color: var(--cyan);
}

/* The pitch and the gallery. */
.pitch p {
  margin: 0 0 14px;
}

.pitch p:last-child {
  margin-bottom: 0;
}

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

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery figure {
  margin: 0;
}

.gallery .panel {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery figcaption {
  margin: 10px 2px 0;
  font-size: 18px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Follow. */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials .plaque {
  font-size: 19px;
}

.mail {
  margin: 22px 0 0;
}

/* Footer and the privacy page. */
footer {
  margin: 40px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--tan);
}

footer p {
  margin: 6px 0;
}

.back {
  display: inline-block;
  margin: 28px 0 0;
}

.policy h2 {
  margin: 30px 0 8px;
  color: var(--gold);
  font-size: 22px;
}

.policy h2:first-of-type {
  margin-top: 6px;
}

.policy p,
.policy li {
  margin: 0 0 10px;
}

.policy ul {
  padding-left: 1.2em;
}

.updated {
  color: var(--tan);
  font-size: 16px;
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .tagline {
    font-size: 19px;
  }

  .hero {
    padding: 24px 12px;
  }

  .panel {
    padding: calc(var(--px) * 10) calc(var(--px) * 6);
  }

  .panel[data-title] {
    padding-top: calc(var(--px) * 21);
  }
}
