:root {
  color-scheme: dark;
  --bg: #120f13;
  --panel: #1c171d;
  --panel-2: #261e24;
  --text: #f5efe8;
  --muted: #c8b9ad;
  --line: #3b3036;
  --red: #c7473d;
  --gold: #d6a957;
  --green: #70a889;
  --link: #f0c36b;
  --shadow: 0 20px 50px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(18, 15, 19, .35), #120f13 760px),
    url("/images/hero.png") top center / min(1200px, 100vw) auto no-repeat,
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(199, 71, 61, .08), transparent 35%, rgba(112, 168, 137, .08));
  z-index: -1;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 15, 19, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
}

.language-switcher a {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher a[aria-current="true"],
.language-switcher a:hover {
  color: #1a100c;
  background: var(--gold);
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 120px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .96;
}

.lead {
  max-width: 740px;
  color: var(--text);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: var(--gold);
  color: #1a100c;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.notice {
  margin-top: 34px;
  max-width: 780px;
  border-left: 4px solid var(--red);
  background: rgba(28, 23, 29, .86);
  padding: 16px 18px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.section.alt {
  background: rgba(255, 255, 255, .025);
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
}

.section p {
  color: var(--muted);
  line-height: 1.85;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 780px;
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 23, 29, .9);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.75;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.fact {
  background: var(--panel);
  padding: 18px;
}

.fact strong {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
}

.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.warning-list li {
  border: 1px solid rgba(199, 71, 61, .48);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(199, 71, 61, .14);
  color: #ffd8d4;
}

.media {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #090809;
}

.media figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.source-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--muted);
  background: #0c0a0d;
}

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

.page-title {
  padding: 88px 0 40px;
}

.page-title h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.devlog-list {
  display: grid;
  gap: 16px;
}

.devlog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 23, 29, .9);
  overflow: hidden;
}

.devlog-card img,
.devlog-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  background: var(--panel-2);
}

.devlog-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.devlog-body {
  padding: 18px 18px 18px 0;
}

.devlog-body h2 {
  margin: 8px 0;
  font-size: 24px;
}

.devlog-body p {
  margin: 0 0 12px;
}

.devlog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  body {
    background-size: 920px auto;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-tools {
    justify-content: flex-start;
  }

  .section-heading {
    display: block;
  }

  .hero {
    min-height: 560px;
    padding-top: 88px;
  }

  .grid,
  .grid.two,
  .facts {
    grid-template-columns: 1fr;
  }

  .devlog-card {
    grid-template-columns: 1fr;
  }

  .devlog-body {
    padding: 0 18px 18px;
  }
}
