/* SYNTHERION — landing page
   Palette: deep violet night, magenta grid, cyan accents, chrome text. */

:root {
  --bg: #0a0420;
  --bg-2: #160733;
  --magenta: #ff2bd6;
  --pink: #ff6ad5;
  --cyan: #26f3ff;
  --chrome-1: #fff6fb;
  --chrome-2: #ffb3e6;
  --chrome-3: #8a79ff;
  --ink: #e9e3ff;
  --ink-dim: #a79ad6;
  --max: 1200px;
  --beat: 480ms; /* ~125 bpm */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }

/* ---------- CRT / scanline overlays ---------- */

.crt, .scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
}

.crt {
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.6;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #1a0540 0%, #3a0a5e 45%, #ff3d88 72%, #ffb37a 88%, #ffe89a 100%);
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.3) contrast(1.1);
  z-index: -3;
}

.hero__sun {
  position: absolute;
  left: 50%; bottom: 22%;
  transform: translateX(-50%);
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #fff3a8 0%, #ffb347 25%, #ff3d88 55%, #a01a6a 80%, transparent 100%);
  filter: blur(1px);
  opacity: 0.7;
  z-index: -2;
}
.hero__sun::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 30px,
    rgba(10,4,32,0.9) 30px 44px
  );
  border-radius: 50%;
  mask: linear-gradient(to bottom, transparent 48%, #000 52%);
  -webkit-mask: linear-gradient(to bottom, transparent 48%, #000 52%);
}

.hero__grid {
  position: absolute;
  left: 50%; bottom: 0;
  width: 220vw; height: 55vh;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  background:
    linear-gradient(to right, transparent 0, var(--magenta) 50%, transparent 100%) 0 0/100% 2px no-repeat,
    repeating-linear-gradient(to right,
      transparent 0 calc(5% - 1px), var(--magenta) calc(5% - 1px) 5%),
    repeating-linear-gradient(to bottom,
      transparent 0 calc(40px - 1px), var(--magenta) calc(40px - 1px) 40px);
  mask: linear-gradient(to top, #000 40%, transparent 100%);
  -webkit-mask: linear-gradient(to top, #000 40%, transparent 100%);
  opacity: 0.85;
  filter: drop-shadow(0 0 12px var(--magenta));
  animation: grid-scroll 1.6s linear infinite;
  z-index: -2;
}

@keyframes grid-scroll {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 0 40px; }
}

.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,4,32,0.85) 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 2rem 1rem 4rem;
  max-width: 960px;
}

.hero__title {
  width: min(820px, 90vw);
  margin: 0 auto 1.25rem;
  filter:
    drop-shadow(0 0 18px rgba(255, 43, 214, 0.55))
    drop-shadow(0 0 42px rgba(38, 243, 255, 0.25));
  animation: title-pulse var(--beat) steps(2, end) infinite;
}

.hero__title--text {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  margin: 0 auto 1.25rem;
  width: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 720px;
}

.btn-wire {
  --wire: #66f0ff;
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wire);
  background: transparent;
  border: 1.5px solid var(--wire);
  border-radius: 2px;
  padding: 0.85em 1.6em;
  box-shadow:
    0 0 12px rgba(102, 240, 255, 0.45),
    inset 0 0 12px rgba(102, 240, 255, 0.15);
  text-shadow: 0 0 8px rgba(102, 240, 255, 0.6);
  transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn-wire:hover {
  color: #0a0420;
  background: var(--wire);
  box-shadow:
    0 0 22px rgba(102, 240, 255, 0.85),
    0 0 60px rgba(102, 240, 255, 0.35);
  transform: translateY(-2px);
  text-shadow: none;
}
@media (max-width: 540px) {
  .hero__ctas { flex-direction: column; align-items: stretch; max-width: 320px; }
  .btn-wire { text-align: center; }
}

/* Portrait mobile: shorten hero so object-fit:cover doesn't scale the wide
   video up so much, exposing more of the frame horizontally. */
@media (max-width: 720px) and (orientation: portrait) {
  .hero { min-height: 60svh; }
}

@keyframes title-pulse {
  0%, 85%  { filter: drop-shadow(0 0 18px rgba(255,43,214,0.55)) drop-shadow(0 0 42px rgba(38,243,255,0.25)); }
  100%     { filter: drop-shadow(0 0 28px rgba(255,43,214,0.85)) drop-shadow(0 0 68px rgba(38,243,255,0.45)); }
}

.hero__tagline {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--chrome-2);
  text-shadow: 0 0 10px rgba(255, 106, 213, 0.6);
  margin: 0 0 2.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: -1rem; left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--cyan);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem 2.4rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bg);
  background: linear-gradient(180deg, var(--cyan) 0%, #0fb8d8 100%);
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow:
    0 0 0 2px var(--magenta),
    0 0 24px rgba(38, 243, 255, 0.55),
    0 0 60px rgba(255, 43, 214, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow:
    0 0 0 2px var(--magenta),
    0 0 36px rgba(38, 243, 255, 0.8),
    0 0 90px rgba(255, 43, 214, 0.55);
  color: var(--bg);
}
.btn__label { font-size: 1rem; font-weight: 700; }
.btn__sub   { font-size: 0.7rem; opacity: 0.75; letter-spacing: 0.3em; }

/* ---------- SECTIONS ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section__heading {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--chrome-1);
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 50%, var(--chrome-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 106, 213, 0.35);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* pitch */
.pitch {
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
  color: var(--chrome-2);
}
.pitch em { color: var(--cyan); font-style: normal; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.features li {
  border: 1px solid rgba(255, 43, 214, 0.45);
  background:
    linear-gradient(180deg, rgba(34, 12, 78, 0.65), rgba(10, 4, 32, 0.85));
  padding: 1.6rem 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(38, 243, 255, 0.06) inset,
    0 0 24px rgba(255, 43, 214, 0.12),
    0 0 48px rgba(38, 243, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.features li:hover {
  border-color: rgba(255, 106, 213, 0.75);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(38, 243, 255, 0.12) inset,
    0 0 32px rgba(255, 43, 214, 0.28),
    0 0 72px rgba(38, 243, 255, 0.18);
}
.features li::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent);
  filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.8));
}
.features li::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 243, 255, 0.5), transparent);
}
.features h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 50%, var(--chrome-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 106, 213, 0.35);
  margin-bottom: 0.65rem;
}
.features p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* artist call-out under features */
.artist-call {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.75rem;
  text-align: center;
  border: 1px dashed rgba(38, 243, 255, 0.45);
  background: linear-gradient(180deg, rgba(38, 243, 255, 0.04), rgba(255, 43, 214, 0.04));
}
.artist-call__title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 50%, var(--chrome-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 106, 213, 0.35);
  margin: 0 0 0.6rem;
}
.artist-call__body {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}
.artist-call__body a {
  color: var(--cyan);
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(38, 243, 255, 0.5);
}
.artist-call__body a:hover { color: var(--pink); }
.artist-call__btn { margin-top: 1.1rem; }

/* shots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.shots figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(38, 243, 255, 0.35);
  box-shadow: 0 0 24px rgba(38, 243, 255, 0.15);
  background: #000;
}
.shots img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transition: transform 0.4s ease;
}
.shots figure:hover img { transform: scale(1.04); }

/* devlog */
.devlog {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}
.devlog li {
  border-left: 2px solid var(--magenta);
  padding: 0.75rem 1.25rem;
  background: rgba(22, 7, 51, 0.5);
}
.devlog time {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
}
.devlog h3 {
  font-size: 1rem;
  margin: 0.3rem 0 0.4rem;
  color: var(--chrome-1);
}
.devlog p { margin: 0; color: var(--ink-dim); }

/* ---------- FOOTER ---------- */

.footer {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  border-top: 1px solid rgba(255, 43, 214, 0.25);
  background: linear-gradient(180deg, transparent, rgba(255, 43, 214, 0.08));
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.footer__copy {
  color: var(--ink-dim);
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  .hero__sun { width: 320px; height: 320px; bottom: 28%; }
  .hero__grid { height: 40vh; }
  .section { padding: 4rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__grid, .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* fallback visual when site.hero.videoUrl is unset (R2 not wired yet) */
.hero__video--placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 64, 200, 0.18), transparent 60%),
    linear-gradient(180deg, #1a0533 0%, #0a0420 60%);
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background: rgba(10, 4, 32, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 64, 200, 0.4);
  box-shadow: 0 -8px 32px rgba(255, 64, 200, 0.12);
}

.sticky-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1em;
  font: 600 0.95rem/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffd6f5;
  transition: background 0.15s ease, color 0.15s ease;
}

.sticky-cta__btn--steam        { color: #66f0ff; }
.sticky-cta__btn--steam:hover  { background: rgba(102, 240, 255, 0.12); }
.sticky-cta__btn--discord      { color: #ff66c4; }
.sticky-cta__btn--discord:hover{ background: rgba(255, 102, 196, 0.12); }

.sticky-cta__btn + .sticky-cta__btn {
  border-left: 1px solid rgba(255, 64, 200, 0.25);
}

.sticky-cta__icon  { font-size: 1.1em; opacity: 0.9; }
.sticky-cta__arrow { transition: transform 0.15s ease; }
.sticky-cta__btn:hover .sticky-cta__arrow { transform: translateX(3px); }

/* prevent footer/content from being obscured by sticky bar */
body { padding-bottom: 3.5rem; }

@media (max-width: 480px) {
  .sticky-cta__btn { font-size: 0.78rem; padding: 0.7em 0.5em; }
}

/* Slim site header on every non-homepage page. Provides the always-available
   "back to the game site" affordance via the brand link. */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(180deg, rgba(10, 4, 32, 0.95), rgba(14, 5, 38, 0.85));
  border-bottom: 1px solid rgba(138, 121, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #e8e2ff;
  font: 700 1rem/1 "Orbitron", "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  transition: color 0.15s ease, transform 0.15s ease;
}
.site-header__brand:hover {
  color: #66f0ff;
  transform: translateX(-2px);
}
.site-header__back {
  display: inline-block;
  font-size: 1.1rem;
  color: #ff66c4;
  transition: transform 0.15s ease;
}
.site-header__brand:hover .site-header__back {
  transform: translateX(-3px);
}
.site-header__nav {
  display: flex;
  gap: 1.25rem;
}
.site-header__link {
  font: 600 0.85rem/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9bd6ff;
  text-decoration: none;
}
.site-header__link:hover {
  color: #ff66c4;
}
@media (max-width: 480px) {
  .site-header { padding: 0.75rem 1rem; }
  .site-header__brand { font-size: 0.85rem; letter-spacing: 0.14em; }
  .site-header__link { font-size: 0.75rem; }
}

/* "Start at the beginning" pointer on the devlog feed. */
.devlog-page__starthere {
  margin: 1.25rem 0 2.5rem;
  text-align: center;
  font: 500 0.95rem/1.4 "Space Grotesk", system-ui, sans-serif;
  color: rgba(232, 226, 255, 0.7);
}
.devlog-page__starthere a {
  color: #66f0ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 240, 255, 0.4);
  padding-bottom: 1px;
}
.devlog-page__starthere a:hover {
  color: #ff66c4;
  border-bottom-color: #ff66c4;
}

/* Prev/next nav at the bottom of each post. Two-up grid that collapses
   to stacked on narrow screens. */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(138, 121, 255, 0.18);
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  background: rgba(20, 8, 42, 0.6);
  border: 1px solid rgba(138, 121, 255, 0.2);
  border-radius: 4px;
  text-decoration: none;
  color: #e8e2ff;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.post-nav__item:hover {
  border-color: rgba(255, 102, 196, 0.5);
  background: rgba(28, 14, 56, 0.75);
  transform: translateY(-1px);
}
.post-nav__item--newer {
  text-align: right;
}
.post-nav__item--placeholder {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}
.post-nav__direction {
  font: 600 0.72rem/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9bd6ff;
}
.post-nav__title {
  font: 600 1.05rem/1.3 "Orbitron", monospace;
  color: #ffd9f1;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--newer { text-align: left; }
  .post-nav__item--placeholder { display: none; }
}

/* The "stage" sits behind every post page: outrun grid receding into a
   horizon-fade. The post itself becomes a contained card on top of it. */
.post-stage {
  position: relative;
  min-height: 100vh;
  padding: 4rem 1rem 6rem;
  background:
    /* horizon glow at the top */
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 102, 196, 0.18), transparent 60%),
    /* deep base */
    linear-gradient(180deg, #0d0628 0%, #0a0420 60%, #06031a 100%);
  isolation: isolate;
}
.post-stage::before {
  /* perspective grid lines, faint, fixed-feeling */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 102, 196, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 102, 196, 0.08) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.post {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  background:
    linear-gradient(180deg,
      rgba(28, 14, 56, 0.92) 0%,
      rgba(20, 8, 42, 0.94) 50%,
      rgba(14, 5, 32, 0.96) 100%);
  border: 1px solid rgba(138, 121, 255, 0.22);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 102, 196, 0.08),
    0 24px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 80px -30px rgba(255, 102, 196, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.post__back {
  display: inline-block;
  font: 500 0.8rem/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b0c8e8;
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 0.45em 0.8em;
  border: 1px solid rgba(176, 200, 232, 0.25);
  border-radius: 3px;
  background: rgba(176, 200, 232, 0.05);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.post__back:hover {
  color: #ffb0e5;
  border-color: rgba(255, 176, 229, 0.5);
  background: rgba(255, 176, 229, 0.08);
}

.post__type {
  display: inline-block;
  font: 600 0.7rem/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35em 0.7em;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.post__type--origins { color: #ffb84d; }
.post__type--tools   { color: #ff66c4; }
.post__type--devlog  { color: #66f0ff; }
.post__types { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.post__types .post__type { margin-bottom: 0; }

.post__title {
  font: 700 2.4rem/1.15 "Orbitron", "JetBrains Mono", monospace;
  margin: 0.4rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.post__meta {
  font: 500 0.85rem/1 "JetBrains Mono", ui-monospace, monospace;
  color: rgba(255, 214, 245, 0.6);
  letter-spacing: 0.05em;
}
.post__originally { font-style: italic; }

.post__cover { margin: 2rem 0; }
.post__cover img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 102, 196, 0.4);
  box-shadow: 0 0 24px rgba(255, 102, 196, 0.15);
}

.post__body {
  font-size: 1.05rem;
  line-height: 1.7;
  /* cooler, eye-friendlier than the previous near-pink #ffd6f5;
     pink is now reserved for accents and headings, not the prose itself */
  color: #e8e2ff;
}
.post__body p { margin: 1.2em 0; }
.post__body h2 {
  font: 700 1.45rem/1.2 "Orbitron", monospace;
  color: #9bd6ff;
  letter-spacing: 0.04em;
  margin: 2.4em 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(155, 214, 255, 0.18);
}
.post__body h3 {
  font: 600 1.1rem/1.2 "Orbitron", monospace;
  color: #ffb0e5;
  letter-spacing: 0.04em;
  margin: 1.8em 0 0.5em;
}
.post__body img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border: 1px solid rgba(255, 102, 196, 0.3);
}
.post__body a { color: #66f0ff; }
.post__body a:hover { color: #ff66c4; }
.post__body code {
  font: 0.92em "JetBrains Mono", ui-monospace, monospace;
  background: rgba(255, 102, 196, 0.1);
  padding: 0.15em 0.35em;
  border-radius: 2px;
}

.post__footer { margin-top: 4rem; }

/* devlog feed grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1.5rem;
}
.post-grid--latest { max-width: 1000px; }

.post-card {
  background: rgba(20, 8, 50, 0.6);
  border: 1px solid rgba(255, 102, 196, 0.25);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  border-color: rgba(255, 102, 196, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 64, 200, 0.18);
}
.post-card__link { display: block; text-decoration: none; color: inherit; }
.post-card__cover img { display: block; width: 100%; height: 180px; object-fit: cover; }
.post-card__body { padding: 1.1rem 1.2rem 1.4rem; }
.post-card__type {
  display: inline-block;
  font: 600 0.7rem/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3em 0.6em;
  border: 1px solid currentColor;
  margin-bottom: 0.7rem;
}
.post-card__type--origins { color: #ffb84d; }
.post-card__type--tools   { color: #ff66c4; }
.post-card__type--devlog  { color: #66f0ff; }
.post-card__types { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.post-card__types .post-card__type { margin-bottom: 0; }
.post-card__title {
  font: 600 1.1rem/1.3 "Orbitron", monospace;
  margin: 0 0 0.4rem;
  color: #ffd6f5;
}
.post-card__meta {
  font: 500 0.78rem/1 "JetBrains Mono", monospace;
  color: rgba(255, 214, 245, 0.55);
  margin: 0 0 0.8rem;
}
.post-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 214, 245, 0.85);
  margin: 0;
}

/* devlog page header + filters */
.devlog-page { padding: 4rem 0 3rem; }
.devlog-page__header { max-width: 1100px; margin: 0 auto 1rem; padding: 0 1.5rem; }
.devlog-page__subtitle {
  font-size: 1rem;
  color: rgba(255, 214, 245, 0.7);
  margin: 0.5rem 0 1.5rem;
}
.devlog-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.devlog-page__filter {
  font: 600 0.78rem/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.55em 0.9em;
  border: 1px solid rgba(255, 102, 196, 0.35);
  color: rgba(255, 214, 245, 0.7);
  text-decoration: none;
  cursor: pointer;
}
.devlog-page__filter:hover,
.devlog-page__filter.is-active {
  background: rgba(255, 102, 196, 0.15);
  color: #ffd6f5;
  border-color: #ff66c4;
}
.devlog-page__empty {
  text-align: center;
  color: rgba(255, 214, 245, 0.5);
  margin: 3rem 0;
}

/* "more" link below latest */
.section--latest { padding: 3rem 0; }
.section__more { text-align: center; margin-top: 1.5rem; }
.btn--ghost {
  display: inline-block;
  font: 600 0.85rem/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85em 1.5em;
  border: 1px solid #66f0ff;
  color: #66f0ff;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-decoration: none;
}
.btn--ghost:hover {
  background: rgba(102, 240, 255, 0.12);
  color: #66f0ff;
  box-shadow: none;
  transform: none;
  filter: none;
}

.section--callout { padding: 4rem 1.5rem; }
.callout-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .callout-grid { grid-template-columns: 1fr; }
}

.callout {
  padding: 2rem;
  background: rgba(20, 8, 50, 0.6);
  border: 1px solid rgba(255, 102, 196, 0.25);
}

.callout__title,
.newsletter__label {
  display: block;
  font: 700 1.4rem/1.2 "Orbitron", monospace;
  color: #ffd6f5;
  margin: 0 0 0.4rem;
}
.callout__sub,
.newsletter__sub {
  font-size: 0.95rem;
  color: rgba(255, 214, 245, 0.7);
  margin: 0 0 1.2rem;
}

.newsletter__row {
  display: flex;
  gap: 0.5rem;
}
.newsletter__input {
  flex: 1;
  font: 500 0.95rem/1 "JetBrains Mono", ui-monospace, monospace;
  padding: 0.7em 0.9em;
  background: rgba(10, 4, 32, 0.8);
  border: 1px solid rgba(255, 102, 196, 0.4);
  color: #ffd6f5;
}
.newsletter__input:focus { outline: none; border-color: #ff66c4; }

.newsletter__btn,
.btn--discord {
  font: 600 0.85rem/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85em 1.2em;
  background: rgba(255, 102, 196, 0.18);
  color: #ff66c4;
  border: 1px solid #ff66c4;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.newsletter__btn:hover,
.btn--discord:hover { background: rgba(255, 102, 196, 0.3); }

.section--trailer { padding: 3rem 1.5rem; }
.trailer-frame {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 102, 196, 0.4);
  box-shadow: 0 0 32px rgba(255, 102, 196, 0.15);
}
.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Inline editorial markers visible only in dev/draft mode.
   Wraps spots where Claude is asking Tim a question inside an unpublished draft.
   Bright, monospace, hard to miss; never ships because drafts don't deploy. */
.ask-tim {
  display: inline-block;
  background: #ffe066;
  color: #1a0033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  font-weight: 600;
  padding: 0.15em 0.5em;
  margin: 0.1em 0;
  border-left: 3px solid #ff66c4;
  border-radius: 2px;
  line-height: 1.45;
}
.ask-tim::before {
  content: "ASK TIM ▸ ";
  color: #ff0080;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Visible placeholder for missing media in drafts. */
.media-placeholder {
  display: block;
  margin: 1.5rem 0;
  padding: 1.25rem 1rem;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 102, 196, 0.08),
    rgba(255, 102, 196, 0.08) 10px,
    rgba(255, 102, 196, 0.16) 10px,
    rgba(255, 102, 196, 0.16) 20px
  );
  border: 2px dashed rgba(255, 102, 196, 0.6);
  color: #ffb0e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  text-align: center;
  border-radius: 4px;
}
.media-placeholder::before {
  content: "🎬 PLACEHOLDER · ";
  color: #ff66c4;
  font-weight: 700;
}

/* Embeds (YouTube, Spotify, etc.) inside post bodies. Centralized so we
   never copy/paste iframe styling. */
.embed-yt {
  display: block;
  position: relative;
  margin: 1.75rem 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 102, 196, 0.35);
  box-shadow: 0 0 22px rgba(255, 102, 196, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.embed-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-spotify {
  display: block;
  margin: 1.75rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(38, 243, 255, 0.12);
}
.embed-spotify iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* figure with caption used for inline screenshots */
.post__body figure {
  margin: 1.75rem 0;
}
.post__body figure img {
  margin: 0 0 0.5em;
}
.post__body figcaption {
  font: 500 0.85rem/1.4 "JetBrains Mono", ui-monospace, monospace;
  color: rgba(232, 226, 255, 0.55);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Pull quote treatment for breaking up walls of text. */
.pullquote {
  display: block;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  max-width: 38rem;
  border-left: 4px solid #ff66c4;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #ffd9f1;
  font-style: italic;
  text-shadow: 0 0 12px rgba(255, 102, 196, 0.25);
}
/* Stronger variant for the post's actual thesis line — used sparingly,
   max one per post. Slightly larger, cyan accent rule, more glow. */
.pullquote--thesis {
  font-size: 1.55rem;
  border-left-color: #66f0ff;
  color: #f4ecff;
  text-shadow: 0 0 18px rgba(102, 240, 255, 0.3);
  padding: 1.2rem 1.75rem;
  font-style: normal;
  letter-spacing: 0.005em;
}
