/* JZ Game Studio. One stylesheet, no dependencies. Dark by default, light when the visitor prefers it. */
:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #161a23;
  --line: #262c3a;
  --text: #ece9e2;
  --muted: #a3a8b6;
  --accent: #ffb547;
  --accent-ink: #1a1203;
  --link: #ffc978;
  --ok: #7fe0b0;
  --info: #8ec5ff;
  --idea: #c9b2ff;
  --radius: 14px;
  --wrap: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ec;
    --bg-alt: #ece8de;
    --surface: #ffffff;
    --line: #d9d3c5;
    --text: #17181d;
    --muted: #565b69;
    --accent: #c46a00;
    --accent-ink: #ffffff;
    --link: #9a4f00;
    --ok: #12734a;
    --info: #1d5fa8;
    --idea: #5b3fb3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 750; letter-spacing: .01em; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: .95rem; letter-spacing: -.02em; }
.site-header nav { display: flex; gap: clamp(.9rem, 3vw, 1.8rem); }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }

/* hero */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40rem 26rem at 0% 110%, color-mix(in srgb, var(--idea) 16%, transparent), transparent 70%),
    var(--bg); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 750; text-decoration: none; padding: .8rem 1.3rem; border-radius: 10px; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.status-line { font-size: .92rem; color: var(--muted); margin: 0; }

/* sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
ul.plain li { padding-left: 1.1rem; border-left: 3px solid var(--accent); }

/* game cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.card:hover, .card:focus-within { transform: translateY(-3px); border-color: var(--accent); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .78rem !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .7rem !important; }
.stage { display: inline-block; padding: .18rem .55rem; border-radius: 999px; border: 1px solid currentColor; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.stage-prototype { color: var(--ok); }
.stage-development { color: var(--info); }
.stage-concept { color: var(--idea); }
.wt { display: inline-block; vertical-align: middle; font: 600 .68rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: .28rem .45rem; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* game page */
.game-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); min-height: clamp(300px, 46vw, 460px); display: flex; align-items: flex-end; }
.game-cover { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; z-index: -2; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent); }
.game-title { padding-block: 2.5rem 2rem; }
.game-title .lede { color: var(--text); }
.game-title h1 .wt { font-size: .75rem; }
.crumb { font-size: .9rem; font-weight: 600; }
.crumb a { text-decoration: none; }
.game-body { display: grid; gap: 2.5rem; padding-block: 3rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .game-body { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; } }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.stage-note { color: var(--muted); font-size: .92rem; margin: .7rem 0 1rem; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.links { display: grid; gap: .6rem; }
.links .btn { text-align: center; }
.no-links { margin: 0; font-size: .9rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: .8rem .9rem; }
.features { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.features li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: .7rem 1rem; }

/* long-form pages */
.prose { max-width: 70ch; }
.prose.narrow { margin-inline: auto; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { margin-top: 2.2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.08rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45em; }
.prose > h2:first-child { margin-top: 0; }
.updated { color: var(--muted); font-size: .92rem; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.summary ul { margin-bottom: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: .94rem; }
.foot { display: grid; gap: 1rem; }
.foot p { margin: 0; }
.foot strong { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.fine { font-size: .84rem; }
