:root {
  --bg: #11161d;
  --surface: #1a212b;
  --surface-2: #202a36;
  --line: rgba(205, 182, 138, 0.14);
  --line-strong: rgba(205, 182, 138, 0.24);
  --text: #f3ecd9;
  --muted: #b9b19d;
  --accent: #d9bf78;
  --accent-soft: rgba(143, 168, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.1), rgba(8, 10, 14, 0.35)),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 0 8px, transparent 8px 16px),
    var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.shell--narrow {
  width: min(920px, calc(100% - 32px));
}

.shell--simple {
  width: min(980px, calc(100% - 32px));
}

.site-header,
.hero,
.doc-card,
.atlas-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.site-header--simple {
  margin-bottom: 16px;
}

.site-header + .hero {
  margin-top: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a,
.crumb-back {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.crumb-back:hover,
.crumb-back:focus-visible,
.atlas-card-link:hover,
.atlas-card-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  padding: 28px;
}

.hero--simple {
  padding: 34px 30px;
}

.hero-brand-row {
  display: grid;
  grid-template-columns: minmax(140px, 196px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}

.hero-brand-logo {
  display: block;
  width: 100%;
  max-width: 196px;
  height: auto;
  margin: 0;
}

.hero--games {
  margin-top: 52px;
}

.lede,
.doc-card p,
.footer-meta {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 74ch;
  margin: 0;
  font-size: 1.04rem;
}

.lede--hero {
  flex: 1 1 auto;
  max-width: 40ch;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.section-block {
  margin-top: 30px;
}

.section-block--compact {
  margin-top: 34px;
}

.section-heading {
  padding: 4px 2px 0;
}

.section-heading--compact h2 {
  margin: 8px 0 0;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.1;
}

.atlas-grid,
.doc-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.atlas-grid {
  grid-template-columns: minmax(0, 420px);
}

.atlas-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.atlas-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.atlas-card-body,
.doc-card {
  padding: 22px;
}

.atlas-card h3,
.atlas-card h2,
.doc-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.atlas-card-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 6px 2px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .atlas-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell,
  .shell--narrow,
  .shell--simple {
    width: min(100%, calc(100% - 24px));
    padding-top: 18px;
  }

  .site-header,
  .hero,
  .hero--simple,
  .atlas-card-body,
  .doc-card {
    padding: 20px;
  }

  .hero-brand-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-brand-logo {
    width: min(100%, 164px);
  }

  .site-header,
  .footer {
    justify-content: center;
    text-align: center;
  }

  .lede--hero {
    max-width: none;
  }

  .site-nav,
  .footer-links,
  .atlas-grid {
    justify-content: center;
  }
}
