* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0f0f10;
  color: #f2f1ec;
  font-family: Inter, sans-serif;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #c1121f;
  color: #f2f1ec;
}

a {
  color: inherit;
}

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

.scanlines {
  opacity: 0.42;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px);
}

.vignette {
  z-index: 89;
  opacity: 0.55;
  background: radial-gradient(120% 90% at 50% 0%, transparent 58%, rgba(0, 0, 0, 0.56) 100%);
  animation: flick 5s infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(18px, 4vw, 72px);
  border-bottom: 1px solid rgba(242, 241, 236, 0.14);
  background: rgba(15, 15, 16, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__main {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: skewX(-7deg);
}

.brand__tag,
.brand__blog {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  padding: 3px 5px 2px;
  border: 1px solid #c1121f;
  color: #c1121f;
}

.brand__blog {
  border-color: #2979ff;
  color: #2979ff;
}

.nav {
  display: flex;
  gap: 26px;
  color: #8a8a8a;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: #f2f1ec;
}

.hero,
.article {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(50px, 8vw, 100px) clamp(18px, 4vw, 72px);
}

.hero::before,
.article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(242, 241, 236, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 241, 236, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.kicker,
.post-card__meta,
.read-link,
.back,
.footer,
.pager,
.empty span {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.kicker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
  color: #8a8a8a;
  font-size: 11px;
}

.kicker span {
  color: #2979ff;
}

.kicker i {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: rgba(242, 241, 236, 0.16);
}

.hero h1,
.article h1 {
  position: relative;
  max-width: 930px;
  margin: 0 0 28px;
  color: #f2f1ec;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.96;
  text-wrap: balance;
  text-shadow: -2.5px 0 rgba(193, 18, 31, 0.88), 2.5px 0 rgba(41, 121, 255, 0.88);
  animation: glitchShift 8s infinite steps(1);
}

.hero p,
.article__header p {
  position: relative;
  max-width: 62ch;
  margin: 0;
  color: #c4c3bd;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
}

.marquee {
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid #0f0f10;
  border-bottom: 1px solid #0f0f10;
  background: #f2f1ec;
  color: #0f0f10;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  white-space: nowrap;
}

.marquee div {
  display: inline-block;
  min-width: 200%;
  animation: marq 36s linear infinite;
}

.post-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(242, 241, 236, 0.14);
  border: 1px solid rgba(242, 241, 236, 0.14);
}

.post-card,
.empty {
  min-height: 320px;
  padding: 30px 28px 34px;
  background: #121215;
}

.post-card:hover {
  background: #161619;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  color: #5c5c5c;
  font-size: 10px;
}

.post-card h2 {
  margin: 0 0 16px;
  color: #f2f1ec;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.04;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card p {
  margin: 0 0 28px;
  color: #a6a5a0;
  font-size: 15px;
  line-height: 1.6;
}

.read-link,
.back,
.pager a {
  color: #2979ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.read-link:hover,
.back:hover,
.pager a:hover {
  color: #c1121f;
}

.article {
  max-width: 980px;
}

.back {
  position: relative;
  display: inline-block;
  margin-bottom: 42px;
}

.article__header {
  position: relative;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(242, 241, 236, 0.14);
}

.article__body {
  position: relative;
  padding-top: 42px;
  color: #d8d7d1;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.78;
}

.article__body p {
  margin: 0 0 1.2em;
}

.article__body a {
  color: #2979ff;
}

.pager,
.footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #5c5c5c;
  font-size: 11px;
}

.empty {
  grid-column: 1 / -1;
}

.empty span {
  color: #c1121f;
  font-size: 12px;
}

.empty p {
  color: #a6a5a0;
}

@keyframes marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes glitchShift {
  0%,
  90%,
  100% {
    transform: translate(0, 0);
  }
  92% {
    transform: translate(-2px, 1px);
  }
  94% {
    transform: translate(2px, -1px);
  }
  96% {
    transform: translate(-1px, 0);
  }
  98% {
    transform: translate(1px, 1px);
  }
}

@keyframes flick {
  0%,
  97%,
  100% {
    opacity: 0.55;
  }
  98% {
    opacity: 0.25;
  }
  99% {
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 4px;
  }

  .hero,
  .article {
    padding-top: 38px;
  }

  .post-grid {
    display: block;
    background: transparent;
    border: 0;
  }

  .post-card,
  .empty {
    min-height: 0;
    margin-bottom: 1px;
    border: 1px solid rgba(242, 241, 236, 0.14);
  }
}
