/* The Game Art Journal (porcupine.top) — "Pixel Palette" visual.
   Dark canvas, pixel-grid field, sprite-frame cards, neon-magenta accents, monospace type.
   De-templated: no rounded corners, no emoji, no warm-paper/serif house style. */

:root {
  --bg: #1a1a24;
  --panel: #21212e;
  --panel-2: #262634;
  --ink: #dcdce6;
  --muted: #8a8aa0;
  --line: #33334a;
  --grid: #2a2a3a;
  --accent: #e879f9;
  --accent-dim: #a231b8;
  --k-style: #e879f9;
  --k-concept: #4fd6e0;
  --k-interviews: #f0b429;
  --k-tutorials: #6ee787;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", "Courier New", monospace;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: .2px; }

/* ---- HUD header ---- */
.hud {
  background: var(--panel);
  border-bottom: 3px solid var(--accent);
  position: relative;
}
.hud::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  background-size: 12px 3px;
  opacity: .45;
}
.hud-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; gap: 16px; }
.studio { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.studio-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  border: 2px solid var(--accent);
}
.studio-mark i { display: block; }
.studio-mark i:nth-child(1), .studio-mark i:nth-child(5), .studio-mark i:nth-child(9) { background: var(--accent); }
.studio-mark i:nth-child(3), .studio-mark i:nth-child(7) { background: #6b6b8a; }
.studio-text { display: flex; flex-direction: column; line-height: 1.25; }
.studio-name { font-weight: 700; font-size: 15px; }
.studio-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.hud-nav { display: flex; gap: 20px; }
.hud-nav a { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; padding: 4px 2px; }
.hud-nav a:hover { color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ---- Intro / hero ---- */
.intro { padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.intro-kicker {
  display: inline-block; color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--accent-dim);
  padding: 4px 10px; margin-bottom: 16px;
}
.intro h1 { font-size: 33px; line-height: 1.18; margin-bottom: 14px; max-width: 760px; }
.intro-lede { max-width: 680px; color: var(--muted); font-size: 15px; }

/* ---- section labels ---- */
.label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 16px; }

/* ---- tag/key ---- */
.tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor;
}
.k-style { color: var(--k-style); }
.k-concept { color: var(--k-concept); }
.k-interviews { color: var(--k-interviews); }
.k-tutorials { color: var(--k-tutorials); }

.key-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.key-list li { font-size: 13px; color: var(--muted); }
.key-list li .tag { margin-right: 8px; }

/* ---- category shelf ---- */
.shelf { padding: 34px 0; border-bottom: 1px solid var(--line); }
.shelf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shelf-card {
  display: flex; flex-direction: column; gap: 8px; color: var(--ink);
  background: var(--panel); border: 2px solid var(--line); padding: 18px 16px;
  box-shadow: 4px 4px 0 0 var(--grid);
}
.shelf-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 4px 4px 0 0 var(--accent-dim); }
.shelf-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shelf-name { font-weight: 700; font-size: 16px; }
.shelf-bar { height: 6px; margin-top: 2px; background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%); background-size: 8px 6px; }

/* ---- asset library grid ---- */
.bay { padding: 34px 0; }
.bay-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.bay-head h2 { font-size: 21px; }
.bay-more { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* sprite-frame asset card */
.asset-card {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  background: var(--panel); border: 2px solid var(--line); padding: 18px 16px 16px; color: var(--ink);
  box-shadow: 5px 5px 0 0 var(--grid);
}
.asset-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 5px 5px 0 0 var(--accent-dim); }
.asset-card:hover .asset-name { color: var(--accent); }
.asset-corner { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--bg); }
.asset-name { font-weight: 700; font-size: 15px; line-height: 1.32; }
.asset-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 10px 0; }
.spec-pair { display: flex; flex-direction: column; }
.spec-pair b { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.spec-pair span { font-size: 12px; color: var(--ink); }
.asset-blurb { font-size: 12px; color: var(--muted); }

/* ---- page head ---- */
.page-head { padding: 34px 0 14px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 30px; line-height: 1.2; max-width: 820px; }
.lede { color: var(--muted); margin-top: 10px; max-width: 720px; font-size: 14px; }

/* ---- entry: sprite roster (fact frame) + article ---- */
.asset-layout { padding-bottom: 40px; }
.asset-frame {
  background: var(--panel); border: 2px solid var(--accent); margin: 20px 0 26px;
  box-shadow: 6px 6px 0 0 var(--grid);
}
.frame-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 2px solid var(--line); }
.frame-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.frame-cell { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frame-cell:nth-child(3n) { border-right: 0; }
.frame-k { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.frame-v { display: block; font-size: 13px; color: var(--ink); }
.fact-list { list-style: none; }
.fact-list li { font-size: 13px; color: var(--ink); }
.fact-list li::before { content: "\25AA\00a0"; color: var(--accent); }

.copy { background: var(--panel); border: 2px solid var(--line); padding: 28px 32px; box-shadow: 5px 5px 0 0 var(--grid); }
.copy .sec { margin-bottom: 26px; }
.copy .sec:last-child { margin-bottom: 0; }
.copy h2 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; }
.sec-num { color: var(--accent); font-size: 13px; border: 1px solid var(--accent-dim); padding: 1px 7px; font-weight: 700; }
.copy p { margin-bottom: 12px; color: #c7c7d6; }
.copy p:last-child { margin-bottom: 0; }
.related-list { list-style: none; }
.related-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.related-list li::before { content: "\25B8\00a0"; color: var(--accent); }

/* ---- footer ---- */
.rail { background: var(--panel); border-top: 3px solid var(--accent); margin-top: 24px; padding: 30px 0; }
.rail-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rail-brand { flex: 1 1 340px; }
.rail-brand .studio-name { font-size: 14px; }
.rail-brand p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.rail-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.rail-nav a { color: var(--ink); font-size: 13px; }
.rail-copy { flex: 1 1 100%; font-size: 11px; color: var(--muted); margin-top: 12px; }

@media (max-width: 900px) {
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .key-list { grid-template-columns: 1fr; }
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .frame-cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 580px) {
  .shelf-grid, .asset-grid, .frame-grid { grid-template-columns: 1fr; }
  .frame-cell { border-right: 0; }
  .hud-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .intro h1 { font-size: 26px; }
  .copy { padding: 22px 18px; }
}
