/* Scrap Heap — scrapheap.thenextbeacon.com
 *
 * Palette and type are lifted from the game's own UiPalette resource
 * (data/config/ui_palette.tres) so the site and the app read as one product:
 * bg_deep #0E1416, surface #182124, accent #E8722D, ink #E6DFD2.
 *
 * No build step, no framework, no web fonts. The store review pages have to be
 * reachable and legible on a bad connection from a reviewer's phone, and every
 * kilobyte of that is a liability rather than a feature.
 */

:root {
  --bg: #0e1416;
  --surface: #182124;
  --raised: #222e31;
  --border: #33444a;
  --ink: #e6dfd2;
  --muted: #9aa8a6;
  --accent: #e8722d;
  --accent-hot: #ff8f4a;
  --gold: #e8b83d;
  --measure: 68ch;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap { width: min(100% - 2.5rem, 74ch); margin-inline: auto; }

a { color: var(--accent-hot); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

header.site {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0e1416, #121a1d);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding: 1.1rem 0;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand span { color: var(--accent); }
nav.site { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

/* ---- hero ---- */

.hero { padding: 3.5rem 0 2.5rem; }
.rule { width: 132px; height: 8px; border-radius: 4px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin: 1.4rem 0 0.8rem;
  letter-spacing: -0.01em;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 54ch; }

.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.badges li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- sections ---- */

main { padding-bottom: 4rem; }
section { padding: 2rem 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }
h2 { font-size: 1.5rem; margin: 0 0 0.9rem; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
p, li { max-width: var(--measure); }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 0; list-style: none; margin: 0; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  max-width: none;
}
.cards strong { display: block; margin-bottom: 0.25rem; }
.cards span { color: var(--muted); font-size: 0.96rem; }

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

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--ink); }
td { color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em; background: var(--raised); border-radius: 4px; padding: 0.1em 0.35em;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4rem 0;
}
.note p { margin: 0; }

.updated { color: var(--muted); font-size: 0.92rem; }

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.93rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.9rem; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  a, nav.site a { transition: color 120ms ease; }
}
