/* =====================================================================
   TehZombiJesus site — shared styles for every page.
   Colours and fonts come from the TehZombiJesus brand kit.
   ===================================================================== */
:root {
  --void: #0e080d;
  --raised: #1c141b;
  --line: #3a2a3a;
  --ink: #f4ecf3;
  --muted: #b6a6b5;
  --violet: #8300fb;
  --violet-text: #a855ff;
  --magenta: #fb54f7;
  --plum: #472f4a;
  --wine: #74263e;
  --gold: #e8a850;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { background: var(--void); scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---------- Top menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 8, 13, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav .home { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav .home img { width: 38px; height: 38px; }
.nav .home span { font: 700 20px/1 var(--display); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 10px 14px; text-decoration: none;
  font: 600 17px/1 var(--display); color: var(--muted); position: relative;
}
.nav ul a:hover { color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 4px; border-radius: 4px; background: var(--magenta);
}

/* ---------- Slanted band (the splash strokes behind the portrait) ---------- */
.band { overflow: hidden; height: var(--band-h, 300px); }
.band svg { display: block; width: 100%; height: 100%; }
.band.small { --band-h: 150px; }

/* the one orchestrated moment: the bands sweep in when the home page loads */
.band.animate .s { transform: translateX(-110%); animation: sweep .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.band.animate .s:nth-of-type(2) { animation-delay: .08s; }
.band.animate .s:nth-of-type(3) { animation-delay: .16s; }
.band.animate .s:nth-of-type(4) { animation-delay: .24s; }
.band.animate .shards { opacity: 0; animation: fade .5s ease .7s forwards; }
.hero.animate .avatar { animation: pop .7s cubic-bezier(.2, .8, .2, 1) .35s both; }
@keyframes sweep { to { transform: translateX(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Home hero ---------- */
.hero {
  display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start;
  margin-top: -210px; position: relative;
}
.avatar { width: 320px; height: 320px; border-radius: 50%; background: var(--void); padding: 10px; }
.hero-text { padding-top: 236px; }
.wordmark { width: 100%; max-width: 700px; height: auto; }
.bar { width: 120px; height: 8px; border-radius: 4px; background: var(--magenta); margin: 28px 0 24px; }
.intro { margin: 0; font-size: 25px; line-height: 1.5; max-width: 30em; }
.intro .soft { color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 4px; text-decoration: none;
  font: 700 18px/1 var(--display); border: 2px solid var(--violet);
  background: var(--violet); color: #fff; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: #9419ff; border-color: #9419ff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--violet-text); }

/* ---------- Inner page header ---------- */
.page-head { margin-top: 56px; position: relative; }
.page-head h1 { font: 700 72px/1 var(--display); margin: 0; }
.page-head .bar { margin: 24px 0 20px; }
.page-head p { font-size: 22px; color: var(--muted); max-width: 36em; margin: 0; }
.page-head .tag {
  display: block; color: var(--violet-text); font: 600 18px/1 var(--display); margin-bottom: 16px;
}

/* ---------- Sections ---------- */
section { margin-top: 112px; }
h2 { font: 700 44px/1.1 var(--display); margin: 0 0 10px; }
h3 { font: 700 28px/1.2 var(--display); margin: 0; }
.lede { color: var(--muted); margin: 0 0 36px; max-width: 40em; font-size: 19px; }
.muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* ---------- Link list ---------- */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.links li { border-top: 1px solid var(--line); }
.links li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.links a { display: block; padding: 24px 8px 24px 48px; text-decoration: none; position: relative; }
.links a::before {
  content: ""; position: absolute; left: 6px; top: 50%;
  width: 14px; height: 44px; transform: translateY(-50%) skewX(-18deg);
  background: var(--plum); transition: background-color .15s ease, width .15s ease;
}
.links a:hover::before, .links a:focus-visible::before { background: var(--violet); width: 22px; }
.links .name { display: block; font: 700 28px/1.2 var(--display); }
.links .handle { display: block; color: var(--muted); font-size: 16px; margin-top: 2px; }
.links a:hover .name, .links a:focus-visible .name { color: var(--violet-text); }

/* ---------- Three-column feature row ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.col { border-top: 6px solid var(--violet); padding-top: 22px; display: flex; flex-direction: column; }
.col.plum { border-top-color: var(--plum); }
.col.wine { border-top-color: var(--wine); }
.col .role { color: var(--violet-text); font-size: 16px; font-weight: 600; margin: 4px 0 12px; }
.col p { margin: 0 0 16px; color: var(--muted); }
.col .more { margin-top: auto; font: 700 17px/1 var(--display); color: var(--ink); text-decoration-color: var(--magenta); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.col .more:hover { color: var(--violet-text); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 40px 0 0; padding: 0; }
.chips li { background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 8px 16px; font-size: 17px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.about img { width: 260px; height: 260px; }
.about p { margin: 0 0 18px; font-size: 20px; max-width: 34em; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Games list ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.rows li:first-child { border-top: 1px solid var(--line); }
.rows .title { font: 600 25px/1.25 var(--display); }
.rows .note { color: var(--muted); font-size: 16px; text-align: right; }
.rows .now { color: var(--gold); }

/* ---------- Panels ---------- */
.panel { background: var(--plum); border-radius: 8px; padding: 36px; }
.panel.dark { background: var(--raised); border: 1px solid var(--line); }
.panel .status { color: var(--muted); margin: 6px 0 22px; font-size: 16px; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; }
.specs dt { color: var(--muted); font-size: 16px; padding-top: 2px; }
.specs dd { margin: 0; font-weight: 600; }

/* ---------- Service grid (homelab) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc .what { color: var(--violet-text); font-weight: 600; font-size: 15px; margin: 4px 0 10px; }
.svc p { margin: 0; color: var(--muted); font-size: 16px; }
.svc.trial .what { color: var(--gold); }

/* ---------- Ruenix card (uses the Ruenix brand kit) ---------- */
.rx {
  /* Ruenix brand colours, sampled from the crest: carved orange R, peach gems, stone, vines */
  --rx-deep: #141c1a; --rx-orange: #e8893a; --rx-ember: #864917; --rx-leaf: #78a857;
  --rx-stone: #c9d6cc; --rx-slate: #4a5753; --rx-gem: #f2a36d;
  background: var(--rx-deep); color: #eef1ec; border-radius: 14px; border: 1px solid #2c3833;
  padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
  font-family: "Nunito", var(--sans);
}
.rx .crest { width: 200px; height: 200px; }
.rx .rx-word { width: 240px; height: auto; }
.rx .gem { width: 96px; height: 6px; border-radius: 4px; background: var(--rx-gem); margin: 18px 0 16px; }
.rx p { margin: 0 0 22px; color: var(--rx-stone); font-size: 19px; max-width: 32em; }
.ip {
  display: inline-flex; align-items: center; gap: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--rx-slate); background: #0e1513;
}
.ip code { font-family: var(--mono); font-size: 19px; padding: 12px 18px; color: var(--rx-orange); }
.ip button {
  font: 800 16px/1 "Nunito", var(--sans); border: 0; cursor: pointer;
  background: var(--rx-orange); color: #1d1208; padding: 15px 18px; align-self: stretch;
}
.ip button:hover { background: #f0a463; }
.rx .rx-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rx .rx-btn {
  display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none;
  font: 800 17px/1 "Nunito", var(--sans); border: 2px solid var(--rx-slate); color: #eef4e8;
}
.rx .rx-btn:hover { border-color: var(--rx-orange); }

/* ---------- Contact band ---------- */
.contact {
  background: var(--violet); border-radius: 8px; padding: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.contact h2 { margin: 0 0 8px; }
.contact p { margin: 0; font-size: 20px; max-width: 30em; }
.contact .btn { background: var(--void); border-color: var(--void); }
.contact .btn:hover { background: var(--raised); border-color: var(--raised); }
.contact .btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.contact .btn.ghost:hover { border-color: #fff; background: transparent; }
.contact .actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
.contact svg.deco { position: absolute; right: -40px; top: 0; height: 100%; width: 360px; opacity: .35; }

/* ---------- Monitor layout drawing (setup page) ---------- */
.layout-fig { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.layout-fig svg { width: 100%; height: auto; display: block; }
.layout-fig figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- Footer ---------- */
footer { margin-top: 128px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-top: 28px; padding-bottom: 44px; color: var(--muted); font-size: 15px; }
footer .wrap > :first-child { margin-right: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; margin-top: -170px; }
  .avatar { width: 220px; height: 220px; }
  .hero-text { padding-top: 0; }
  .cols, .services { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .rx { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
  .contact .actions { flex-direction: row; flex-wrap: wrap; }
  .page-head h1 { font-size: 56px; }
}
/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav .wrap { height: auto; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 4px; }
  .nav .home { width: 100%; }
  .nav ul { width: 100%; overflow-x: auto; }
  .nav ul a { padding: 10px 10px 12px; font-size: 16px; }
  .nav ul a[aria-current="page"]::after { left: 10px; right: 10px; }
  .band { --band-h: 190px; }
  .band.small { --band-h: 110px; }
  .hero { margin-top: -110px; }
  .avatar { width: 170px; height: 170px; padding: 7px; }
  .intro { font-size: 20px; }
  .page-head { margin-top: 40px; }
  .page-head h1 { font-size: 44px; }
  .page-head p { font-size: 19px; }
  section { margin-top: 80px; }
  h2 { font-size: 34px; }
  .lede { font-size: 17px; }
  .links, .cols, .services { grid-template-columns: 1fr; }
  .links li:nth-last-child(2) { border-bottom: 0; }
  .links .name { font-size: 24px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about img { width: 180px; height: 180px; }
  .about p { font-size: 18px; }
  .rows li { grid-template-columns: 1fr; gap: 2px; }
  .rows .note { text-align: left; }
  .panel, .rx { padding: 26px; }
  .rx .crest { width: 140px; height: 140px; }
  .ip code { font-size: 16px; padding: 12px 14px; }
  .contact { padding: 32px 26px; }
  .contact svg.deco { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .band.animate .s { transform: none; }
  .band.animate .shards { opacity: 1; }
}

/* ---------- Setup page additions ---------- */
.fig-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.facts strong { display: block; font: 700 19px/1.3 var(--display); }
.facts span { color: var(--muted); font-size: 16px; }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.groups .panel { padding: 28px; }
.groups h3 { font-size: 24px; margin-bottom: 18px; }
.pn { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.badge {
  display: inline-block; font: 600 13px/1 var(--sans); padding: 5px 9px; border-radius: 4px;
  background: var(--raised); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge.new { background: var(--violet); border-color: var(--violet); color: #fff; }
.badge.tbd { background: transparent; border-color: var(--gold); color: var(--gold); }
.rows .right { display: flex; gap: 12px; align-items: baseline; justify-content: flex-end; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rules div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.rules h3 { font-size: 22px; margin-bottom: 6px; }
.rules p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .fig-grid, .groups { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rules { grid-template-columns: 1fr; }
  .rows .right { justify-content: flex-start; flex-wrap: wrap; }
}
.ip.soon { border-style: dashed; }
.ip.soon code { color: var(--rx-gem); }
.ip.soon span { padding: 0 18px 0 0; color: #a3b0a8; font-size: 16px; }
@media (max-width: 640px) { .ip.soon { flex-direction: column; align-items: flex-start; } .ip.soon span { padding: 0 14px 12px; } }
.me { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.me li {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 14px; font: 600 18px/1 var(--display);
}
.me img { width: 28px; height: 21px; border-radius: 2px; }

/* ---------- Hardcore tracker, playstyle, gamer tags ---------- */
.panel.hc { background: var(--raised); border: 1px solid var(--line); border-top: 6px solid var(--gold); }
.hc-label { margin: 0 0 6px; color: var(--gold); font: 600 16px/1.2 var(--display); }
.hc-stats { display: flex; gap: 40px; margin: 22px 0 26px; }
.hc-stats .big { display: block; font: 700 56px/1 var(--display); }
.hc-stats .small { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }
.alive { color: var(--gold); }
.playstyle { margin-top: 14px; }
.playstyle .title { font-size: 21px; }
.tags { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tags li {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px;
}
.tags .tag-name { font: 700 18px/1 var(--display); min-width: 80px; }
.tags a, .tags code { color: var(--violet-text); font-family: var(--mono); font-size: 15px; text-decoration: none; }
.tags a:hover { text-decoration: underline; }
.tags button {
  margin-left: auto; font: 600 14px/1 var(--sans); padding: 8px 12px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.tags button:hover { border-color: var(--violet-text); }
.page-head.lost { min-height: 50vh; }
.page-head.lost .cta-row { margin-top: 36px; }
@media (max-width: 640px) { .hc-stats .big { font-size: 44px; } }
