/* Quantnova Games — alpine frost & forge ember.
   Self-hosted: Instrument Serif (display) + Outfit (body).
   Layout: command-rail header, card mosaic — not a journal folio. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #070b14;
  --paper-2: #101826;
  --ink: #eef6ff;
  --ink-soft: #b7c7da;
  --mute: #7d8fa6;
  --rule: #1c2a3d;
  --rule-strong: #38bdf8;
  --lumen: #38bdf8;
  --lumen-ink: #041018;
  --tide: #fb923c;
  --ember: #f97316;
  --reserved: #67e8f9;
  --danger: #fb7185;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --max: 1100px;
  --wide: 1240px;
}

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 0% -5%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 5%, rgba(249, 115, 22, 0.14), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a1220 45%, #070b14 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lumen); text-underline-offset: 0.18em; }
a:hover { color: var(--tide); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

.wrap { width: min(100% - 2.25rem, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.25rem, var(--wide)); margin-inline: auto; }

/* Command rail — frosted strip with pill nav */
.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 78%, #0c1a2e);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.mast::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--lumen), #67e8f9 35%, var(--ember) 75%, var(--tide));
}
.mast-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.wordmark {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.05;
}
.wordmark .kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tide);
  font-weight: 600;
}
.wordmark strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.wordmark strong span {
  color: var(--lumen);
  font-style: italic;
  margin-left: 0.28rem;
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.mast nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.mast nav a:hover {
  color: var(--ink);
  border-color: var(--rule);
  background: rgba(56, 189, 248, 0.08);
}
.mast nav a.on {
  color: var(--lumen-ink);
  background: linear-gradient(120deg, var(--lumen), #7dd3fc);
  border-color: transparent;
  font-weight: 600;
}
.ledger {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ember) 55%, var(--rule));
  background: rgba(249, 115, 22, 0.12);
  white-space: nowrap;
}
.ledger:hover { border-color: var(--tide); color: var(--tide); }

main { min-height: 62vh; }

/* Hero — diagonal split */
.issue {
  padding: 2.6rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.issue-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reserved);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--ember);
}
.issue h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.issue h1 em {
  font-style: italic;
  color: var(--tide);
}
.dek {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.25rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; align-items: center; margin: 0; }
.text-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--lumen-ink);
  background: linear-gradient(120deg, var(--lumen), #7dd3fc 60%, #a5f3fc);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
  border: none;
}
.text-go:hover { filter: brightness(1.06); color: var(--lumen-ink); }
.text-quiet {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--mute);
}
.text-quiet:hover { color: var(--tide); border-color: var(--tide); }
.issue figure { margin: 0; position: relative; }
.still {
  display: block;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(56,189,248,.12);
  transform: rotate(-1.5deg);
}
.still img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.issue figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.band { padding: 2.4rem 0; border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; align-items: end; margin-bottom: 1.25rem; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0;
}
.sec-head p { margin: 0; color: var(--mute); font-size: 0.92rem; }

/* Open-now as tilted cards */
.open-now {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.open-now a {
  text-decoration: none;
  color: inherit;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.open-now a:hover {
  border-color: color-mix(in srgb, var(--lumen) 50%, var(--rule));
  transform: translateY(-3px);
}
.open-now article { margin: 0; }
.open-now .still { transform: none; border: 0; border-radius: 0; box-shadow: none; }
.open-now .meta {
  margin: 0.75rem 1rem 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reserved);
  font-weight: 600;
}
.open-now h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 1rem 0.35rem;
}
.open-now .blurb { margin: 0 1rem 1rem; color: var(--ink-soft); font-size: 0.9rem; }

/* Collection mosaic — cards, not folio rows */
.folio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.folio-row {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, #121c2c, #0d1522);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
  min-height: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.folio-row:hover {
  border-color: color-mix(in srgb, var(--tide) 45%, var(--rule));
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.folio-row .idx {
  position: absolute;
  margin: 0.65rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lumen-ink);
  background: var(--lumen);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
}
.folio-row { position: relative; }
.folio-row .thumb { display: block; }
.folio-row .thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.folio-row > span:nth-child(3) { padding: 0.85rem 0.95rem 0.35rem; display: block; }
.folio-row .kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.25rem;
}
.folio-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}
.folio-row .blurb { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.folio-row .act {
  margin-top: auto;
  padding: 0.75rem 0.95rem 1rem;
  display: block;
}
.folio-row .act .text-go {
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
}
.folio-row.is-reserved .act .text-go {
  background: transparent;
  color: var(--tide);
  border: 1px solid color-mix(in srgb, var(--ember) 55%, var(--rule));
}
.folio-row.is-reserved .kicker { color: var(--ember); }

.col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.col-3 h2 { font-family: var(--serif); font-style: italic; font-weight: 400; margin: 0 0 .4rem; font-size: 1.35rem; }
.col-3 p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.pagehead { padding: 2rem 0 0.5rem; }
.pagehead h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.35rem 0 0.6rem;
}
.crumb { margin: 0; color: var(--mute); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.crumb a { color: var(--mute); text-decoration: none; }
.crumb a:hover { color: var(--lumen); }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #000;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin: 0 0 0.85rem;
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-meta {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.play-meta img { border-radius: 0.7rem; border: 1px solid var(--rule); }
.small { font-size: 0.88rem; color: var(--ink-soft); }
.pn { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.lockfolio {
  background: linear-gradient(160deg, #142033, #0d1522);
  border: 1px dashed color-mix(in srgb, var(--ember) 50%, var(--rule));
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1rem;
}
.lockfolio h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--lumen-ink);
  background: linear-gradient(120deg, var(--tide), var(--ember));
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* Shop table as priced tiles */
.shop-grid, .packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.pack, .tier {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0.95rem;
  padding: 1.05rem 1rem;
}
.pack h3, .tier h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}
.pack .price, .tier .price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--lumen);
  margin: 0.2rem 0;
}
.pack .bonus { color: var(--tide); font-size: 0.85rem; font-weight: 600; }
table.sum { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.sum th, table.sum td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.sum th { color: var(--mute); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

.field { margin: 0.75rem 0; }
.field label { display: block; font-size: 0.82rem; color: var(--mute); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0a1220;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--lumen) 55%, transparent);
  border-color: var(--lumen);
}
.check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.65rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.notice, .banner, .pay-off {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid color-mix(in srgb, var(--lumen) 35%, var(--rule));
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--ink-soft);
  margin: 1rem 0;
}
.pay-off strong { color: var(--tide); }

.colophon {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  background: #060a12;
}
.coli {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.coli strong { display: block; color: var(--ink); margin-bottom: 0.35rem; font-weight: 600; }
.coli a { display: inline; color: var(--ink-soft); text-decoration: none; }
.coli a:hover { color: var(--lumen); }
.copy { margin-top: 1.4rem; font-size: 0.8rem; color: var(--mute); }

.cookiebar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: 520px;
  margin-inline: auto;
  background: #121c2c;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.cookiebar .btn { margin-left: 0.5rem; padding: 0.45rem 0.8rem; font-size: 0.82rem; }

.policy { padding-bottom: 2.5rem; }
.policy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 1.6rem 0 0.5rem;
}
.policy p, .policy li { color: var(--ink-soft); }
.policy ul { padding-left: 1.2rem; }

@media (max-width: 960px) {
  .issue-grid, .open-now, .folio, .col-3, .play-meta, .coli { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .issue-grid, .open-now, .folio, .col-3, .play-meta, .coli { grid-template-columns: 1fr; }
  .still { transform: none; }
  .mast-in { align-items: flex-start; }
}

/* Shop / checkout forms */
.note, .custom-box {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  color: var(--ink-soft);
}
.ledger-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.ledger-table th, .ledger-table td {
  text-align: left; padding: 0.7rem 0.45rem; border-bottom: 1px solid var(--rule); vertical-align: middle;
}
.ledger-table th { color: var(--mute); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ledger-table .price { font-weight: 700; color: var(--lumen); }
.ledger-table .coins { font-weight: 600; }
.ledger-table .bonus { color: var(--tide); }
.underline-input {
  width: min(100%, 220px);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--rule-strong);
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  padding: 0.35rem 0;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.facts h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 0.35rem; }
.facts p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
fieldset {
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
  background: rgba(16, 24, 38, 0.55);
}
legend { padding: 0 0.4rem; color: var(--lumen); font-weight: 600; font-size: 0.9rem; }
label { display: block; margin: 0.55rem 0 0.3rem; color: var(--mute); font-size: 0.82rem; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; max-width: 420px;
  background: #0a1220; border: 1px solid var(--rule); color: var(--ink);
  border-radius: 0.55rem; padding: 0.65rem 0.75rem; font: inherit;
}
.chk { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.7rem 0; color: var(--ink-soft); font-size: 0.9rem; }
.chk input { margin-top: 0.25rem; }
.err { color: var(--danger); font-weight: 600; }
.prose h2 { font-family: var(--serif); font-weight: 400; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.contact { display: grid; gap: 1rem; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--rule); border-radius: 0.9rem; background: var(--paper-2); }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }
