@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #050505;
  --paper: #ffffff;
  --soft: #f3f3f3;
  --muted: #5c5c5c;
  --red: #ef1717;
  --blue: #1266ff;
  --green: #16a34a;
  --font-sans: "Manrope", Arial, sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --border: 4px solid var(--ink);
  --border-heavy: 5px solid var(--ink);
  --shadow: 6px 6px 0 0.5px var(--ink);
  --shadow-hover: 10px 10px 0 0.5px var(--ink);
  --motion: 0.14s linear;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgb(5 5 5 / 0.075) 1px, transparent 1px),
    linear-gradient(rgb(5 5 5 / 0.075) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgb(239 23 23 / 0.18), transparent 26%),
    radial-gradient(circle at 85% 28%, rgb(18 102 255 / 0.12), transparent 28%),
    radial-gradient(circle at 48% 90%, rgb(22 163 74 / 0.1), transparent 30%),
    var(--paper);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto,
    auto,
    auto;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.35;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 2;
  border-bottom: var(--border-heavy);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--ink);
  background: var(--soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 10px 12px;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 2px solid var(--ink);
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  padding: clamp(30px, 5vw, 64px) 0;
}

.hero {
  position: relative;
  display: grid;
  gap: 3rem;
  max-width: 920px;
}

.kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 950px;
  font-size: clamp(48px, 10vw, 64px);
  font-weight: 800;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero p {
  max-width: 780px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
}

.sky-cats {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pulse-field,
.meme-cycle {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.pulse-field {
  inset: 0;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.pulse-field span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(230px * var(--scale));
  height: calc(180px * var(--scale));
  background: radial-gradient(
    ellipse,
    rgb(239 23 23 / 0.24) 0%,
    rgb(239 23 23 / 0.13) 38%,
    transparent 72%
  );
  filter: blur(12px);
  opacity: 0;
  translate: -50% -50%;
  animation: red-pulse 7.5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.pulse-field span:nth-child(2n) {
  animation-duration: 9s;
}

.pulse-field span:nth-child(3n) {
  animation-duration: 6.3s;
}

.meme-cycle {
  inset: 0;
  overflow: hidden;
}

.meme-cycle img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  max-width: 34vw;
  border: 3px solid rgb(5 5 5 / 0.45);
  background: var(--paper);
  box-shadow: 5px 5px 0 0.5px rgb(5 5 5 / 0.34);
  image-rendering: pixelated;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--rotate)) scale(0.96);
  filter: saturate(0.9) contrast(0.95);
  animation: soft-meme-appear 42s ease-in-out infinite;
  animation-delay: var(--delay);
}

.sky-cats span {
  position: absolute;
  top: var(--top);
  left: -28ch;
  display: inline-block;
  color: rgb(5 5 5 / 0.18);
  font-family: var(--font-mono);
  font-size: var(--size);
  font-weight: 800;
  line-height: 1;
  text-shadow: 2px 2px 0 rgb(239 23 23 / 0.16);
  transform: rotate(-8deg);
  animation: cat-flight 34s linear infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
}

.sky-cats span:nth-child(even) {
  color: rgb(239 23 23 / 0.16);
  text-shadow: 2px 2px 0 rgb(5 5 5 / 0.12);
  transform: rotate(7deg);
  animation-duration: 42s;
}

.meme-sticker {
  position: absolute;
  right: clamp(-190px, -14vw, -80px);
  bottom: 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 168px;
  border: var(--border);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  padding: 10px;
  transform: rotate(4deg);
  animation: sticker-float 4.8s ease-in-out infinite;
}

.meme-sticker svg {
  display: block;
  width: 100%;
  border: 3px solid var(--paper);
  background: var(--paper);
}

.meme-sticker rect {
  fill: var(--ink);
}

.meme-sticker path {
  fill: none;
  stroke: var(--paper);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 5;
}

.meme-sticker path:nth-of-type(1) {
  fill: var(--red);
  stroke: var(--paper);
}

.meme-sticker span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

@keyframes cat-flight {
  0% {
    translate: -10vw 0;
  }

  45% {
    translate: 55vw -18px;
  }

  100% {
    translate: 130vw 10px;
  }
}

@keyframes sticker-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes red-pulse {
  0%,
  100% {
    opacity: 0;
    scale: 0.58;
  }

  42% {
    opacity: 0.58;
    scale: 1;
  }

  70% {
    opacity: 0.12;
    scale: 1.28;
  }
}

@keyframes meme-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: -12px -16px;
  }
}

@keyframes soft-meme-appear {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(0.92);
  }

  12%,
  28% {
    opacity: 0.16;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(1);
  }

  42% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(1.03);
  }
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: var(--border-heavy);
  background: var(--soft);
  box-shadow: var(--shadow);
  padding: 12px;
}

.overview__item {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: var(--border);
  background: var(--paper);
  padding: 14px;
}

.overview__item span,
.section-title span,
.file-card dt {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview__item strong {
  min-width: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section {
  display: grid;
  gap: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title::after {
  content: "";
  height: 4px;
  flex: 1 1 auto;
  background: var(--ink);
}

.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  padding: 12px 14px;
}

.files {
  display: grid;
  gap: 12px;
}

.file-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  border: var(--border);
  background: var(--paper);
  box-shadow: 4px 4px 0 0.5px var(--ink);
  padding: 12px;
  transition:
    box-shadow var(--motion),
    transform var(--motion);
}

.file-card__title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  border: var(--border);
  background: var(--red);
  color: var(--paper);
  box-shadow: 4px 4px 0 0.5px var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background var(--motion),
    color var(--motion),
    box-shadow var(--motion),
    transform var(--motion);
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 0.5px var(--ink);
  outline: none;
  transform: translate(-1px, -1px);
}

.button--icon {
  width: 48px;
  min-width: 48px;
  padding: 0;
}

.button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.empty,
.note {
  display: grid;
  gap: 10px;
  border: var(--border-heavy);
  background: var(--soft);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.empty strong {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.empty p,
.note p {
  max-width: 800px;
  font-size: 17px;
  font-weight: 800;
}

code {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 800;
  padding: 0 5px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 100%);
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: stretch;
  }

  .section-title::after {
    display: none;
  }

  .section-title span {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 16vw, 68px);
  }

  .meme-sticker {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 180px);
  }


  .meme-cycle img {
    width: min(var(--size), 150px);
    max-width: 42vw;
    animation-name: soft-meme-appear-mobile;
  }

  .pulse-field span {
    width: calc(120px * var(--scale));
    height: calc(120px * var(--scale));
  }

  .sky-cats span {
    opacity: 0.7;
  }

  .file-card {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button--icon {
    min-width: 0;
  }
}

@keyframes soft-meme-appear-mobile {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(0.92);
  }

  14%,
  26% {
    opacity: 0.08;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(1);
  }

  40% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate)) scale(1.02);
  }
}
