@font-face {
  font-family: "Chakra Petch";
  src: url("assets/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("assets/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

/* Foundry palette: cool slate plates with molten and brass accents. */
:root {
  --bg: #0f151c;
  --bg-top: #223040;
  --panel: #1b2531;
  --panel-inset: #141c26;
  --edge: #3d5166;
  --text: #dfe8f1;
  --dim: rgba(197, 210, 224, 0.78);
  --title: #eef3f8;
  --molten: #ff7a3d;
  --brass: #f2c14e;
  --ink: #1a1206;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  /* blueprint dots */
  background-image:
    radial-gradient(rgba(190, 220, 255, 0.11) 1.5px, transparent 2px),
    linear-gradient(var(--bg-top), var(--bg) 720px);
  background-size: 44px 44px, 100% 100%;
  background-repeat: repeat, no-repeat;
}

a { color: inherit; }

.site-header,
main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  color: var(--title);
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; }

nav { display: flex; gap: 22px; }

nav a {
  text-decoration: none;
  color: var(--dim);
}

nav a:hover { color: var(--molten); }

.hero { padding: 72px 0 56px; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--title);
}

.hero p {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--dim);
}

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 14px;
  background: var(--molten);
  border: 2px solid #99441c;
  border-bottom-width: 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { filter: brightness(1.1); }

.button:active { border-bottom-width: 2px; transform: translateY(4px); }

section { padding: 36px 0; }

h2 {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 6px solid var(--molten);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--title);
}

.game {
  padding: 30px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.game-info {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

.game-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.game-title img { border-radius: 14px; }

h3 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: var(--title);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead { margin: 0 0 14px; font-size: 20px; }

.game ul {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--dim);
}

.game li { margin-bottom: 6px; }

.game li::marker { color: var(--molten); }

.facts {
  margin: 0;
  padding: 4px 14px;
  background: var(--panel-inset);
  border: 2px solid var(--edge);
  border-radius: 12px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.facts div:last-child { border-bottom: 0; }

.facts dt { color: var(--dim); }

.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Store screenshots: a row that scrolls sideways and snaps to each image. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 23%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-color: var(--edge) transparent;
}

.shots:focus-visible { outline: 2px solid var(--molten); outline-offset: 4px; border-radius: 12px; }

.shots img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--edge);
  scroll-snap-align: start;
}

.about p { max-width: 42em; margin: 0; color: var(--dim); }

footer {
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 2px solid var(--edge);
  color: var(--dim);
  font-size: 15px;
}

footer p { margin: 0; }

.legal { padding-top: 40px; }

.legal h1 { font-size: clamp(30px, 5vw, 46px); }

.legal h2 { margin-top: 36px; font-size: 24px; }

.legal p,
.legal ul { max-width: 44em; color: var(--dim); }

.legal li { margin-bottom: 6px; }

.legal li::marker { color: var(--molten); }

.legal a { color: var(--molten); }

.legal .updated { font-size: 16px; }

@media (max-width: 860px) {
  .game { padding: 20px; }
  .game-info { grid-template-columns: 1fr; gap: 22px; }
  .shots { grid-auto-columns: minmax(180px, 42%); }
  .hero { padding: 44px 0 32px; }
}

@media (max-width: 480px) {
  nav { gap: 16px; }
  .shots { gap: 10px; grid-auto-columns: 62%; }
  .facts div { flex-direction: column; gap: 0; }
  .facts dd { text-align: left; }
}
