/* Black Rune Studios — one stylesheet for the whole site.
 *
 * Palette is lifted from the games themselves (src/theme.js in Nova's Lab) so the site
 * and the products look like they come from the same place.
 *
 * No framework and no build step on purpose: this site's job is to be up, fast, and
 * readable by a store reviewer and an ad crawler. Both of those read plain HTML. */

:root {
  --bg: #10162A;
  --panel: #172038;
  --border: #2C4159;
  --text: #F1F5F9;
  --muted: #BCCADA;
  --accent: #3DD6E8;
  --accent-ink: #06242B;
  --radius: 14px;
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  /* A quiet glow behind the header rather than a flat slab. */
  background-image: radial-gradient(90rem 40rem at 50% -18rem, rgba(61, 214, 232, 0.16), transparent 65%);
  background-repeat: no-repeat;
}

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* --- header ---------------------------------------------------------------- */

.masthead { padding: 28px 0 8px; }
.masthead__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.brand__mark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand__mark span { color: var(--accent); }
.brand__sub { color: var(--muted); font-size: 13px; }

.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); background: rgba(61, 214, 232, 0.10); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* --- hero and sections ------------------------------------------------------ */

.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.025em; }
.hero p { color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); max-width: var(--measure); margin: 0; }

section { padding: 34px 0; }
h2 { font-size: clamp(21px, 3vw, 26px); margin: 0 0 14px; letter-spacing: -0.015em; }
h3 { font-size: 18px; margin: 26px 0 8px; }
p, li { max-width: var(--measure); }
p { margin: 0 0 14px; }
ul { padding-left: 20px; margin: 0 0 14px; }
li { margin: 0 0 7px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.lede { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* --- cards ------------------------------------------------------------------ */

/* auto-FILL, not auto-fit: with one game a lone card should sit at its natural width
 * rather than stretching across the page like an unfinished layout. Empty tracks fill
 * in as more games ship. */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color 140ms ease, transform 140ms ease;
}
a.card:hover, a.card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card__tag {
  display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

dl.facts { margin: 0; display: grid; gap: 2px 20px; grid-template-columns: 1fr; }
dl.facts dt { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 14px; }
dl.facts dd { margin: 0; color: var(--muted); }
dl.facts dt:first-child { margin-top: 0; }

/* --- footer ----------------------------------------------------------------- */

footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 26px 0 46px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (min-width: 640px) {
  dl.facts { grid-template-columns: max-content 1fr; }
  dl.facts dt { margin-top: 0; }
  dl.facts dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  a.card:hover, a.card:focus-visible { transform: none; }
}

/* --- hero with product shot -------------------------------------------------
 *
 * A games studio's front page should show a game. This is a real screenshot of the
 * shipped build, not concept art — the older key art in the game repo uses a palette
 * that was superseded, and a store reviewer comparing the site to the app should find
 * them matching. */

.hero--split {
  display: grid; gap: 30px; align-items: center;
  grid-template-columns: 1fr;
  padding: 34px 0 10px;
}
.hero--split .hero__copy { min-width: 0; }

.device {
  justify-self: center;
  width: min(300px, 78vw);
  border-radius: 26px;
  border: 1px solid var(--border);
  background: #0B1020;
  padding: 8px;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(61, 214, 232, 0.10) inset;
}
.device img { display: block; width: 100%; height: auto; border-radius: 19px; }

.title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.title-row img { width: 58px; height: 58px; border-radius: 13px; border: 1px solid var(--border); }
.title-row h1 { margin: 0; }

.card__icon {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  margin-bottom: 12px; display: block;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li {
  margin: 0; font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }

@media (min-width: 820px) {
  .hero--split { grid-template-columns: 1.15fr 0.85fr; gap: 46px; padding: 52px 0 18px; }
  .device { justify-self: end; width: 300px; }
}
