:root{
  --bg:#140c24;
  --bg2:#1c1136;
  --panel:#241640;
  --ink:#ECE6F5;
  --muted:#9d89c4;
  --faint:#6f5d96;
  --purple:#995ECE;
  --yellow:#F7C146;
  --shadow:#0a0614;          /* hard pixel-shadow colour */
  --line:#3a2860;
  --rail:clamp(64px, 10vw, 120px);   /* width of the pixel rail */
  --pixel:"Press Start 2P", monospace;
  --mono:"Space Mono", ui-monospace, monospace;
  --body:"Inter", system-ui, sans-serif;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; min-height:100vh; color:var(--ink); font-family:var(--body);
  line-height:1.6;
  background:
    radial-gradient(900px 500px at 85% -8%, #2a1551 0%, transparent 55%),
    var(--bg);
  image-rendering:pixelated;          /* keeps any bitmap thumbs crunchy */
}
/* subtle CRT scanlines, dialled down to stay modern */
body::after{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:9999;
  background:repeating-linear-gradient(0deg, rgba(0,0,0,.13) 0 1px, transparent 1px 3px);
  opacity:.45; mix-blend-mode:multiply;
}
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--yellow); color:#2a1a05; }
:focus-visible{ outline:3px dashed var(--yellow); outline-offset:3px; }

.wrap{ max-width:760px; margin:0 auto; padding:0 22px; }

/* ---------------- masthead ---------------- */
header.mast{ padding:56px 0 22px; }
.mast-row{ display:flex; align-items:center; gap:22px; }
.logo{
  flex:0 0 auto; padding:7px;
  line-height:0;
  margin-bottom: 20px;
}
/* wordmark scales with the title-block; percentage margin keeps the byline
   tucked the same amount at every width (fixes overlap on mobile). */
.wordmark-link{ display:block; line-height:0; margin-bottom:-10%; }
.wordmark-link img{ width:100%; display:block; }
.title-block{ display:flex; flex-direction:column; gap:12px; }
.wordmark{
  font-family:var(--pixel); font-size:clamp(26px,7vw,44px);
  line-height:1; margin:0; letter-spacing:1px;
  color:var(--yellow);
  text-shadow:4px 4px 0 var(--shadow), 4px 4px 0 var(--purple);
}
/* layered shadow trick: purple block sits under yellow text */
.wordmark{ text-shadow:5px 5px 0 var(--purple); }
.byline{
  font-family:var(--mono); font-size:13px; color:var(--muted);
  letter-spacing:.04em;
  position:relative;
}
.byline b{ color:var(--ink); font-weight:700; }
.byline a:hover{ color:var(--yellow); }
/* one line lower, right-aligned, and out of flow so it can't push the divider down */
.byline-tags{ position:absolute; top:100%; right:0; margin-top:4px;
  color:var(--faint); white-space:nowrap; }

/* ---------------- pixel divider ---------------- */
.divider{
  height:10px; margin:26px 0 30px;
  background:repeating-linear-gradient(90deg,
    var(--purple) 0 14px, var(--yellow) 14px 28px);
  box-shadow:0 3px 0 var(--shadow);
}

/* ---------------- posts ---------------- */
.eyebrow{
  font-family:var(--pixel); font-size:10px; letter-spacing:1px;
  color:var(--faint); text-transform:uppercase; margin:0 0 18px;
  display:flex; align-items:center; gap:9px;
}
.eyebrow::before{ content:""; width:9px; height:9px; background:var(--yellow); display:inline-block; }

/* ---------------- subscribe box ---------------- */
.subscribe{ margin:0 0 30px; }
.sub-form{ display:flex; align-items:stretch; gap:12px; flex-wrap:wrap; }
.sub-label{
  font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--yellow); align-self:center;
}
.sub-input{
  flex:1 1 220px; min-width:0;
  background:var(--panel); color:var(--ink);
  border:3px solid var(--line); box-shadow:4px 4px 0 var(--shadow);
  padding:10px 12px; font-family:var(--mono); font-size:14px;
}
.sub-input::placeholder{ color:var(--faint); }
.sub-input:focus{ outline:none; border-color:var(--purple); }
.read.sub-btn{ margin:0; align-self:stretch; cursor:pointer; appearance:none; -webkit-appearance:none; }

.posts{ display:flex; flex-direction:column; gap:20px; padding-bottom:8px; }

.post{
  display:flex; gap:18px; align-items:stretch;
  background:linear-gradient(180deg, var(--panel), var(--bg2));
  border:3px solid var(--line);
  box-shadow:7px 7px 0 var(--shadow);
  padding:18px;
  transition:transform .09s steps(2), box-shadow .09s steps(2), border-color .12s;
}
.post:hover{
  transform:translate(3px,3px); box-shadow:4px 4px 0 var(--shadow);
  border-color:var(--purple);
}
.post-main{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.post-meta{
  font-family:var(--mono); font-size:11px; color:var(--yellow);
  letter-spacing:.08em; text-transform:uppercase; margin-bottom:8px;
}
.post-title{ font-size:20px; font-weight:600; line-height:1.25; margin:0 0 8px; letter-spacing:-.01em; }
.post-title a:hover{ color:var(--yellow); }
.post-excerpt{
  margin:0 0 14px; color:var(--muted); font-size:14.5px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.read{
  margin-top:auto; align-self:flex-start;
  font-family:var(--pixel); font-size:9px; letter-spacing:1px;
  color:#2a1a05; background:var(--yellow);
  padding:10px 13px; border:3px solid var(--shadow);
  box-shadow:4px 4px 0 var(--shadow);
  transition:transform .08s steps(2), box-shadow .08s steps(2);
}
.read:hover{ transform:translate(2px,2px); box-shadow:2px 2px 0 var(--shadow); }
.read .arr{ color:var(--purple); }

/* youtube short tile (9:16) */
.short{
  flex:0 0 112px; position:relative; align-self:stretch;
  border:3px solid var(--shadow); background:#0c0717;
  box-shadow:4px 4px 0 var(--shadow);
  overflow:hidden; min-height:160px;
  display:block;
  appearance:none; -webkit-appearance:none; padding:0; margin:0;
  font:inherit; color:inherit; cursor:pointer; text-align:inherit;
  transition:flex-basis .28s ease, width .28s ease, min-height .28s ease,
             transform .08s steps(2), box-shadow .08s steps(2);
}
.short:hover{ transform:translate(2px,2px); box-shadow:2px 2px 0 var(--shadow); }

/* clicked: grow to a full 9:16 player and pop, then the iframe fills it */
.short.playing{
  flex:0 0 auto; width:min(300px,78vw); min-height:0; aspect-ratio:9/16;
  cursor:default; box-shadow:8px 8px 0 var(--shadow);
  animation:short-pop .3s ease;
}
.short.playing:hover{ transform:none; box-shadow:8px 8px 0 var(--shadow); }
@keyframes short-pop{ 0%{transform:scale(.94)} 60%{transform:scale(1.03)} 100%{transform:scale(1)} }
.short-embed{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.short-thumb{
  position:absolute; inset:0; background-size:cover; background-position:center;
  background-color:var(--purple);
  background-image:
    radial-gradient(circle at 50% 38%, rgba(247,193,70,.35), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
}
.short .play{
  position:absolute; left:50%; top:46%; transform:translate(-50%,-50%);
  width:0; height:0; border-style:solid;
  border-width:13px 0 13px 22px; border-color:transparent transparent transparent var(--ink);
  filter:drop-shadow(2px 2px 0 var(--shadow));
}
.short .tag{
  position:absolute; left:0; bottom:0; right:0;
  font-family:var(--pixel); font-size:7px; letter-spacing:1px; color:var(--ink);
  background:var(--shadow); padding:6px 7px; text-align:center;
}

/* ---------------- single article view ---------------- */
.article{
  background:linear-gradient(180deg, var(--panel), var(--bg2));
  border:3px solid var(--line);
  box-shadow:7px 7px 0 var(--shadow);
  padding:24px 26px 28px;
  display:flex; flex-direction:column; gap:14px;
}
.article > .read{ align-self:flex-start; }
.article-foot{ display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }
.article-title{
  font-size:clamp(24px,5vw,34px); font-weight:600; line-height:1.2;
  letter-spacing:-.01em; margin:0;
}
.article-short{ flex:0 0 auto; align-self:flex-start; width:140px; min-height:200px; }
.article-body{ color:var(--ink); font-size:16px; line-height:1.7; overflow-wrap:break-word; }
.article-body p{ margin:0 0 16px; }
.article-body h1,.article-body h2,.article-body h3{
  font-weight:600; line-height:1.25; margin:26px 0 12px; color:var(--ink);
}
.article-body a{ color:var(--yellow); text-decoration:underline; text-underline-offset:2px; }
.article-body img{ max-width:100%; height:auto; border:3px solid var(--shadow); box-shadow:5px 5px 0 var(--shadow); display:block; margin:18px 0; }
.article-body blockquote{
  margin:18px 0; padding:6px 18px; border-left:4px solid var(--purple);
  color:var(--muted); font-style:italic;
}
.article-body pre{
  background:#0c0717; border:3px solid var(--shadow); padding:14px;
  overflow:auto; font-family:var(--mono); font-size:13px;
}
.article-body code{ font-family:var(--mono); font-size:.92em; }
.article-body hr{ border:none; height:6px; margin:26px 0;
  background:repeating-linear-gradient(90deg, var(--purple) 0 10px, var(--yellow) 10px 20px); }
.article-body ul,.article-body ol{ margin:0 0 16px; padding-left:22px; }
.article-body li{ margin:6px 0; }

.article-body .youtube-wrap .youtube-inner iframe {
  width: 100%;
}
/* ---------------- pagination ---------------- */
.pager{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin:30px 0 4px; font-family:var(--pixel); font-size:9px; letter-spacing:1px;
}
.pager a, .pager span{
  color:#2a1a05; background:var(--yellow);
  padding:10px 13px; border:3px solid var(--shadow);
  box-shadow:4px 4px 0 var(--shadow);
  transition:transform .08s steps(2), box-shadow .08s steps(2);
}
.pager a:hover{ transform:translate(2px,2px); box-shadow:2px 2px 0 var(--shadow); }
.pager .count{ background:transparent; color:var(--faint); border:none; box-shadow:none; font-family:var(--mono); letter-spacing:.06em; }
.pager .disabled{ opacity:.35; pointer-events:none; }

/* ---------------- social footer ---------------- */
footer.social{ padding:34px 0 64px; }
.social-grid{ display:flex; flex-wrap:wrap; gap:12px; }
.ico{
  flex:1 1 120px; min-width:108px;
  display:flex; align-items:center; gap:11px;
  background:var(--panel); border:3px solid var(--line);
  box-shadow:5px 5px 0 var(--shadow);
  padding:13px 14px;
  transition:transform .08s steps(2), box-shadow .08s steps(2), border-color .12s, background .12s;
}
.ico:hover{ transform:translate(2px,2px); box-shadow:3px 3px 0 var(--shadow); border-color:var(--purple); background:var(--bg2); }
.glyph{
  flex:0 0 auto; width:26px; height:26px; display:grid; place-items:center;
  font-family:var(--pixel); font-size:11px; color:#2a1a05;
  background:var(--yellow); border:2px solid var(--shadow);
}
.ico .label{ font-family:var(--mono); font-size:12px; color:var(--ink); letter-spacing:.03em; }
.ico .sub{ display:block; font-size:10px; color:var(--faint); }

.colophon{
  margin-top:26px; font-family:var(--mono); font-size:11px; color:var(--faint);
  letter-spacing:.04em; display:flex; align-items:center; gap:8px;
}
.colophon .dot{ width:7px; height:7px; background:var(--purple); }

@media (max-width:540px){
  .post{ flex-direction:column; }
  .short{ flex-basis:auto; width:100%; min-height:0; aspect-ratio:16/9; }
  .short .tag{ font-size:8px; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
  [class^="wp-"], [class^="wp-"]::before, [class^="wp-"]::after{ animation:none !important; }
}

/* ---------------- right-side pixel rail ---------------- */
body{ padding-right:var(--rail); }
.rail{
  position:fixed; top:0; right:0; bottom:0; width:var(--rail); z-index:5;
  border-left:3px solid var(--purple); background:#0c0717;
  box-shadow:-6px 0 0 var(--shadow);
}
.rail canvas{ display:block; width:100%; height:100%; image-rendering:pixelated; }
@media (max-width:560px){
  :root{ --rail:0px; }
  .rail{ display:none; }
}

/* ---------------- the classic warp logo (flicker-free) ---------------- */
.wp-classic{ --c1:#995ECE; --c2:#F7C146; --dur:2.4s;
  inline-size:var(--size,60px); aspect-ratio:1; border-radius:50%;
  position:relative; overflow:hidden; display:inline-block;
  background:var(--c1); isolation:isolate; }
.wp-classic::before,.wp-classic::after{ content:""; position:absolute; inset:0; border-radius:50%; transform:scale(0); }
.wp-classic::before{ background:var(--c2); z-index:1; animation:wpk-classic-a var(--dur) linear infinite; }
.wp-classic::after{ background:var(--c1); z-index:2; animation:wpk-classic-b var(--dur) linear infinite; }
@keyframes wpk-classic-a{ 0%{transform:scale(0)} 50%{transform:scale(1)} 100%{transform:scale(1)} }
@keyframes wpk-classic-b{ 0%,45%{transform:scale(0)} 95%{transform:scale(1)} 100%{transform:scale(1)} }
