/* ScarJack Games — shared styles
   Palette sampled directly from the studio mark. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --ink:        #000000;
  --ink-raised: #100B0C;
  --red:        #B12D21;
  --red-lit:    #D55A4A;
  --amber:      #EC9138;
  --amber-lit:  #F3BA63;
  --text:       #E8E3E1;
  --muted:      #8A8078;
  --rule:       #2A2022;

  --display: 'Press Start 2P', ui-monospace, monospace;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Helvetica, Arial, sans-serif;

  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Pixel block rule: the signature device.
       Squares in BLOXl's six block colours. ---- */
.blocks {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blocks li { width: 10px; height: 10px; }
.blocks li:nth-child(1) { background: #FF474F; }
.blocks li:nth-child(2) { background: #2ED672; }
.blocks li:nth-child(3) { background: #1E8FFF; }
.blocks li:nth-child(4) { background: #FF6B36; }
.blocks li:nth-child(5) { background: #A45BE8; }
.blocks li:nth-child(6) { background: #F5C518; }

/* ---- Header ---- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--ink-raised);
}
.site-head__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mark {
  width: 60px;
  height: 60px;
  image-rendering: pixelated;
  flex: none;
}

.wordmark {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}
.wordmark span { color: var(--red-lit); }

/* ---- Layout ---- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(18px, 4.5vw, 28px);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 12px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

h2 {
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.6;
  color: var(--red-lit);
  margin: 52px 0 16px;
}

h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
  margin: 32px 0 6px;
}

/* Standalone h3s (Power-ups subsections) need to read as headings
   against the pixel-font h2s, not as bold body text. Inside .step
   the number already signals hierarchy, so those stay plain. */
main > h3 {
  font-family: var(--display);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin: 40px 0 14px;
}

p { margin: 0 0 16px; }

strong { color: #FFF; font-weight: 650; }

a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 145, 56, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--amber-lit); border-bottom-color: var(--amber-lit); }
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Contact card ---- */
.card {
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  padding: 22px 24px;
  margin: 24px 0;
}
.card p:last-child { margin-bottom: 0; }
.card .label {
  font-family: var(--display);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}

/* ---- Divider ---- */
.divider {
  margin: 56px 0;
  display: flex;
  justify-content: center;
}

/* ---- Media: screenshots and video loops ----
   Phone-shaped media sits in a framed figure. Video uses
   autoplay+muted+loop+playsinline so it behaves like a GIF
   at a fraction of the file size, and still plays on iOS. */
.shot {
  margin: 28px 0;
}
.shot__frame {
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  padding: 12px;
  display: flex;
  justify-content: center;
}
.shot__frame img,
.shot__frame video {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 4px;
}
.shot figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* The opening shot gets more room than the inline ones */
.shot--hero .shot__frame img {
  max-width: 380px;
}

/* Side-by-side on wider screens */
.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.shot-row .shot { margin: 0; }

/* ---- Locked panel: Cosmos is deliberately not shown. Matches the
       phone-shot aspect ratio so the grid row stays even. ---- */
.locked {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 600 / 1304;
  background:
    radial-gradient(circle at 50% 42%, rgba(177, 45, 33, 0.10), transparent 62%),
    var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.locked__icon {
  font-size: 22px;
  color: var(--red);
  line-height: 1;
}
.locked__line {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--amber);
  line-height: 1.8;
}
.locked__sub {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Numbered steps ---- */
.step {
  display: flex;
  gap: 18px;
  margin: 0 0 12px;
  align-items: baseline;
}
.step__num {
  font-family: var(--display);
  font-size: 13px;
  color: var(--red);
  flex: none;
  width: 28px;
}
.step__body { flex: 1; }
.step__body h3 { margin-top: 0; }

/* ---- Back link ---- */
.backlink {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: none;
  display: inline-block;
  margin-bottom: 28px;
}
.backlink:hover { color: var(--amber); border-bottom: none; }

@media (max-width: 560px) {
  .shot-row { grid-template-columns: 1fr; }
  .step { gap: 12px; }
  .step__num { width: 22px; font-size: 11px; }
}

/* ---- Footer ---- */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 32px 24px 48px;
}
.site-foot__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.site-foot a { font-size: 14px; }
.site-foot .spacer { margin-left: auto; }

@media (max-width: 560px) {
  body { font-size: 16px; }

  .site-head__inner {
    padding: 22px 20px;
    gap: 14px;
  }

  .mark {
    width: 50px;
    height: 50px;
  }

  .wordmark {
    font-size: 12px;
  }

  main { padding: 40px 20px 72px; }
  h2 { font-size: 12px; }
  .site-foot .spacer { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
