/* UNDEAD TED — shared styles */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anton-latin.woff2") format("woff2");
}

:root {
  --bg: #07080a;
  --bg-2: #0d0f13;
  --ink: #e8ecef;
  --dim: #7c8590;
  --toxic: #7dff3a;
  --toxic-soft: rgba(125, 255, 58, 0.55);
  --scar: #ff5d8f;
  --anton: "Anton", "Arial Narrow", Impact, sans-serif;
  --body-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- atmosphere ---------- */

.noise {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 90% 75% at 50% 40%, transparent 55%, rgba(0,0,0,.75) 100%);
}

/* ---------- home / coming soon ---------- */

body.home {
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(125,255,58,.10), transparent 70%),
    radial-gradient(ellipse 45% 35% at 78% 18%, rgba(140,60,255,.08), transparent 70%),
    var(--bg);
}

.stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 1100px;
  padding: clamp(1.5rem, 4vh, 3.5rem) 1rem 2rem;
  flex: 1;
}

.wordmark {
  font-family: var(--anton);
  font-weight: 400;
  text-align: center;
  line-height: .88;
  letter-spacing: .02em;
  user-select: none;
}

.wordmark .word {
  display: block;
  font-size: clamp(3.5rem, min(16vw, 15vh), 11rem);
  color: var(--ink);
  text-shadow:
    0 0 18px rgba(125,255,58,.25),
    0 0 60px rgba(125,255,58,.18),
    4px 4px 0 rgba(0,0,0,.9);
  animation: pulse 2.2s ease-in-out infinite;
}

.wordmark .word:last-child { color: var(--toxic); text-shadow: 0 0 22px var(--toxic-soft), 0 0 80px rgba(125,255,58,.3), 4px 4px 0 rgba(0,0,0,.9); }

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 18px rgba(125,255,58,.25), 0 0 60px rgba(125,255,58,.15), 4px 4px 0 rgba(0,0,0,.9); }
  50%      { text-shadow: 0 0 26px rgba(125,255,58,.45), 0 0 90px rgba(125,255,58,.30), 4px 4px 0 rgba(0,0,0,.9); }
}

.ted {
  width: clamp(200px, min(31vh, 55vw), 400px);
  height: auto;
  margin-top: clamp(-2.5rem, -5vh, -1rem);
  filter: drop-shadow(0 0 35px rgba(125,255,58,.28)) drop-shadow(0 18px 40px rgba(0,0,0,.8));
  animation: hover-bob 4.5s ease-in-out infinite;
}

@keyframes hover-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.coming {
  margin-top: clamp(.8rem, 2.5vh, 1.6rem);
  font-family: var(--anton);
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: .35em;
  padding-left: .35em; /* optically recenter tracked-out text */
  color: var(--toxic);
  text-shadow: 0 0 14px var(--toxic-soft), 0 0 50px rgba(125,255,58,.35);
  animation: flicker 3.4s linear infinite;
}

@keyframes flicker {
  0%, 6%, 8%, 100% { opacity: 1; }
  7%   { opacity: .35; }
  62%  { opacity: 1; }
  63%  { opacity: .5; }
  64%  { opacity: 1; }
}

.tag {
  margin-top: 1rem;
  color: var(--dim);
  font-size: clamp(.7rem, 1.6vw, .85rem);
  letter-spacing: .3em;
  text-align: center;
  max-width: 100%;
}

@media (max-width: 520px) {
  .ted { margin-top: -0.5rem; }
  .tag { letter-spacing: .14em; font-size: .66rem; }
}

.horde-btn {
  margin-top: clamp(1rem, 2vh, 1.5rem);
  font-family: var(--anton);
  font-size: clamp(.9rem, 2vw, 1.05rem);
  letter-spacing: .22em;
  color: var(--bg);
  background: var(--toxic);
  border: 1px solid var(--toxic);
  padding: .8rem 1.9rem .7rem;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(125,255,58,.35);
  transition: all .2s ease;
}

.horde-btn:hover {
  background: transparent;
  color: var(--toxic);
  box-shadow: 0 0 34px var(--toxic-soft);
}

/* ---------- horde modal ---------- */

body.modal-open { overflow: hidden; }

.horde-overlay[hidden] { display: none; }

.horde-overlay {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(3, 4, 5, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.horde-modal {
  position: relative;
  width: 100%; max-width: min(420px, calc(100vw - 2rem));
  margin: 0 auto;
  background: #0c0f14;
  border: 1px solid rgba(125,255,58,.45);
  box-shadow: 0 0 50px rgba(125,255,58,.15), 0 30px 60px rgba(0,0,0,.7);
  padding: 2.2rem 2rem 2rem;
  animation: modal-in .25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.horde-close {
  position: absolute; top: .4rem; right: .7rem;
  background: none; border: none; cursor: pointer;
  color: var(--dim); font-size: 1.8rem; line-height: 1;
}
.horde-close:hover { color: var(--toxic); }

.horde-title {
  font-family: var(--anton); font-weight: 400;
  font-size: 1.9rem; letter-spacing: .04em;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(125,255,58,.3);
}

.horde-sub { color: var(--dim); font-size: .88rem; line-height: 1.6; margin: .6rem 0 1.5rem; }

.horde-field { display: block; margin-bottom: 1rem; }
.horde-field span {
  display: block;
  font-size: .68rem; letter-spacing: .25em; color: var(--dim);
  margin-bottom: .35rem;
}
.horde-field input {
  width: 100%;
  background: #07090c;
  border: 1px solid #232830;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1rem;
  padding: .7rem .9rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.horde-field input:focus { border-color: var(--toxic); box-shadow: 0 0 14px rgba(125,255,58,.2); }
.horde-field input::placeholder { color: #3d454e; }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }

.horde-error { color: var(--scar); font-size: .85rem; margin-bottom: .9rem; }

.horde-submit {
  width: 100%;
  font-family: var(--anton);
  font-size: 1rem; letter-spacing: .22em;
  color: var(--bg);
  background: var(--toxic);
  border: 1px solid var(--toxic);
  padding: .85rem 1rem .75rem;
  cursor: pointer;
  margin-top: .3rem;
  transition: all .2s ease;
}
.horde-submit:hover:not(:disabled) { background: transparent; color: var(--toxic); box-shadow: 0 0 26px var(--toxic-soft); }
.horde-submit:disabled { opacity: .6; cursor: wait; }

.horde-done { text-align: center; }
.horde-x {
  font-size: 2rem; color: var(--toxic); letter-spacing: .5em; padding-left: .5em;
  text-shadow: 0 0 20px var(--toxic-soft);
  margin-bottom: .8rem;
}

.news-link {
  margin-top: 2.2rem;
  display: inline-block;
  font-family: var(--anton);
  font-size: 1rem;
  letter-spacing: .25em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(125,255,58,.5);
  padding: .7rem 1.6rem .6rem;
  transition: all .2s ease;
}

.news-link:hover {
  color: var(--bg);
  background: var(--toxic);
  box-shadow: 0 0 30px var(--toxic-soft);
}

.foot {
  position: relative; z-index: 1;
  padding: 1.2rem;
  color: #3d454e;
  font-size: .7rem;
  letter-spacing: .2em;
}

/* ---------- news ---------- */

body.news { background: var(--bg-2); }

.news-wrap {
  position: relative; z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.news-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}

.news-top a.back {
  color: var(--dim); text-decoration: none; font-size: .8rem; letter-spacing: .15em;
}
.news-top a.back:hover { color: var(--toxic); }

.news-title {
  font-family: var(--anton);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  color: var(--ink);
  text-shadow: 0 0 20px rgba(125,255,58,.2);
}

.cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.cat-chip {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid #232830;
  padding: .35rem .8rem; border-radius: 999px;
  background: none; cursor: pointer; font-family: var(--body-font);
  transition: all .15s ease;
}
.cat-chip:hover { border-color: var(--toxic); color: var(--ink); }
.cat-chip.active { background: var(--toxic); border-color: var(--toxic); color: var(--bg); }

.post-card {
  display: block;
  border: 1px solid #1c2128;
  background: #10131a;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: all .15s ease;
}
.post-card:hover { border-color: rgba(125,255,58,.5); box-shadow: 0 0 24px rgba(125,255,58,.08); }

.post-card .meta { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--toxic); }
.post-card h2 { font-family: var(--anton); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin: .4rem 0 .5rem; }
.post-card p { color: var(--dim); font-size: .92rem; line-height: 1.55; }

.empty { color: var(--dim); letter-spacing: .1em; padding: 3rem 0; text-align: center; }

/* single post */

.post-head .meta { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--toxic); }
.post-head h1 {
  font-family: var(--anton); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05;
  color: var(--ink); margin: .5rem 0 .4rem;
}
.post-head .byline { color: var(--dim); font-size: .85rem; margin-bottom: 2rem; }

.post-body { color: #c6cdd4; line-height: 1.75; font-size: 1.02rem; }
.post-body h2, .post-body h3 { font-family: var(--anton); font-weight: 400; color: var(--ink); margin: 2rem 0 .8rem; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body a { color: var(--toxic); }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote { border-left: 3px solid var(--toxic); padding-left: 1rem; color: var(--dim); }
.post-body pre { overflow-x: auto; background: #0a0c10; border: 1px solid #1c2128; padding: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .wordmark .word, .ted, .coming { animation: none; }
}
