/*
  Null Reference — shared site styles (matches the email signature)
  VOICE: quiet, confident indie studio; terse like a code comment.
  IDEA: the studio as a circuit board, a chip carrying the double-slash null mark.
  PICTURE: the signature's circuit chip, enlarged, with signals running along its traces.
  COLOUR and TYPE: black #0a0a0a, white, greys #a8a8a8 / #7a7a7a, traces #3a3a3a; Arial + Courier New, as in the signature.
  LAYOUT: full-width black bands, circuit strip under the header and above the footer, content max 1180px.

  Every page links this one file, so new pages (games, news) pick up the same look.
*/

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --line: #262626;
  --trace: #3a3a3a;
  --pad: #4a4a4a;
  --ink: #ffffff;
  --ink-soft: #a8a8a8;
  --ink-body: #d6d6d6;
  --ink-mute: #7a7a7a;
  --max: 1180px;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(5vw, 20px); }
.band { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }

/* code-comment label */
.comment { font-family: var(--mono); font-size: 15px; color: var(--ink-mute); margin: 0 0 14px; }
.comment::before { content: "// "; }

h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 26px; font-weight: 700; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); max-width: 36em; }

/* circuit strip, the top band of the email signature */
.circuit-strip {
  height: 36px;
  background: url("../assets/circuit-strip.svg") repeat-x left center / 600px 36px;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name b { font-size: 15px; letter-spacing: 3px; }
.brand-name small { font-size: 8.5px; letter-spacing: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: var(--ink-soft); font-size: 15px;
  border-radius: 3px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: #181818; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.lockup { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); margin-bottom: 30px; }
.lockup svg { width: clamp(84px, 11vw, 132px); height: auto; flex: none; }
.lockup .divider { width: 1px; align-self: stretch; background: #333333; }
.wordmark { display: flex; flex-direction: column; gap: 10px; }
.wordmark .null { font-size: clamp(48px, 7.4vw, 88px); font-weight: 700; letter-spacing: 0.12em; line-height: 0.95; }
.wordmark .ref { font-size: clamp(14px, 2vw, 24px); letter-spacing: 0.42em; line-height: 1; }
.exception { font-family: var(--mono); font-size: clamp(14px, 1.5vw, 16px); color: var(--ink-mute); margin-bottom: 22px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 3px; text-decoration: none;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost { border-color: #444444; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-chip { width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: end; }
.hero-chip svg { width: 100%; height: 100%; }
.sig { stroke-dasharray: 5 95; stroke-dashoffset: 100; animation: signal 4.5s linear infinite; }
.sig:nth-of-type(2) { animation-delay: -1.3s; animation-duration: 5.5s; }
.sig:nth-of-type(3) { animation-delay: -2.6s; }
.sig:nth-of-type(4) { animation-delay: -3.4s; animation-duration: 6s; }
@keyframes signal { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sig { animation: none; opacity: 0; } html { scroll-behavior: auto; } }

/* ---------- Games ---------- */
.section-head { margin-bottom: 40px; }
/* one full-width card per release, so new games just add another card */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.card-art { position: relative; aspect-ratio: 2108 / 460; border-bottom: 1px solid var(--line); background: var(--bg); }
.card-art svg, .card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); border: 1px solid #333333; border-radius: 2px; padding: 3px 9px; white-space: nowrap; }
.tag-live { color: var(--bg); background: var(--ink); border-color: var(--ink); font-weight: 700; }
.card p { color: var(--ink-soft); max-width: 46em; }
.card .actions { margin-top: auto; padding-top: 10px; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.studio-text { display: flex; flex-direction: column; gap: 18px; color: var(--ink-soft); }

/* ---------- Contact: E / W / A rows, as in the signature ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; }
.contact-list .k { font-family: var(--mono); font-size: 15px; color: var(--ink-mute); }
.contact-list .v { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-body); overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #444444; }
.contact-list a:hover { border-color: var(--ink); }
.contact-list .primary .v { font-size: clamp(18px, 2vw, 24px); font-weight: 700; overflow-wrap: normal; white-space: nowrap; }
.contact-links .actions { margin-top: 28px; padding-left: 30px; }

/* ---------- Footer ---------- */
.site-footer { color: var(--ink-mute); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding-top: 32px; padding-bottom: 32px; }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .exception { margin: 0; font-size: 13px; width: 100%; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- Simple content page (for future games / news pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.prose { max-width: 42em; color: var(--ink-soft); display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(56px, 8vw, 104px); }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .studio, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-chip { max-width: 340px; justify-self: start; }
  .card-art { aspect-ratio: 2 / 1; }
  .card-art img { object-position: 22% center; }
}
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .site-nav a { padding: 0 10px; }
  .hero-chip { max-width: 260px; }
  .card-body { padding: 22px; }
  .btn { width: 100%; justify-content: center; }
  .contact-list .primary .v { white-space: normal; overflow-wrap: anywhere; }
  .contact-links .actions { padding-left: 0; }
}
