:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;

  --red: #ff1744;
  --deep-red: #4a0000;

  --paper: #f2f2f2;

  --mono: "IBM Plex Mono", "Courier New", monospace;

  --display: "Libre Franklin", Arial, sans-serif;
}

/* ================= RESET ================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  display: flex;

  flex-direction: column;

  background-color: var(--black);

  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px,
      transparent 1px);

  background-size: 5px 5px;

  color: var(--paper);

  font-family: var(--mono);

  line-height: 1.7;

  overflow-x: hidden;
}

body::before {
  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  opacity: 0.08;

  z-index: 999;

  background-image: repeating-linear-gradient(0deg,
      white 0px,
      transparent 1px,
      transparent 4px);
}

/* ================= CRT ================= */

.crt-overlay {
  position: fixed;

  inset: 0;

  pointer-events: none;

  z-index: 1000;

  background: repeating-linear-gradient(0deg,
      rgba(255, 23, 68, 0.04),
      rgba(255, 23, 68, 0.04) 1px,
      transparent 2px,
      transparent 5px);
}

@media (prefers-reduced-motion: no-preference) {
  .crt-overlay {
    animation: flicker 7s infinite;
  }
}

@keyframes flicker {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* ================= TYPO ================= */

h1,
h2,
h3 {
  font-family: var(--display);

  text-transform: uppercase;

  letter-spacing: -1px;
}

h1 {
  font-size: clamp(3rem, 10vw, 7rem);

  line-height: 0.85;
}

h2 {
  color: var(--red);

  margin-bottom: 2rem;
}

h3 {
  color: var(--red);
}

p {
  max-width: 75ch;
}

a {
  color: var(--red);

  text-decoration: none;

  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--red);
}

/* ================= NAV ================= */

.navbar {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  z-index: 900;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 1rem 5%;

  background: rgba(10, 10, 10, 0.95);

  border-bottom: 2px solid var(--red);
}

.logo {
  font-weight: 900;

  font-size: 1.3rem;

  color: white;
}

.logo span {
  color: var(--red);
}

.navbar nav {
  display: flex;

  gap: 2rem;
}

.navbar nav a {
  text-transform: uppercase;

  font-weight: bold;
}

.menu-toggle {
  display: none;

  background: none;

  color: var(--red);

  border: 2px solid var(--red);

  padding: 0.5rem;

  font-size: 1.2rem;

  text-align: center;

  width: 3rem;

  height: 3rem;
}

/* ================= MAIN ================= */

main {
  flex: 1;
  padding-top: 100px;
}

section {
  padding: 5rem 8%;
}

.page-header {
  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;
}

.page-header p {
  max-width: 700px;
}

/* ================= HERO ================= */

.split {
  min-height: 90vh;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 4rem;

  align-items: center;
}

.terminal {
  color: var(--red);

  border-left: 3px solid var(--red);

  padding-left: 1rem;

  margin-bottom: 2rem;
}

.hero-art {
  background: var(--dark);

  border: 2px solid var(--red);

  padding: 2rem;
}

.hero-art pre {
  color: var(--red);

  font-size: 1rem;
}

.ascii {
  color: var(--red);

  margin: 2rem 0;
}

/* ================= BUTTONS ================= */

.button,
button {
  display: inline-block;

  background: var(--red);

  color: var(--black);

  border: 2px solid var(--red);

  padding: 0.8rem 1.5rem;

  font-family: var(--mono);

  font-weight: bold;

  text-transform: uppercase;

  cursor: pointer;
}

.button:hover,
button:hover {
  background: transparent;

  color: var(--red);
}

.button-mini,
button {
  background: var(--black);

  color: var(--red);

  border: 2px solid var(--red);

  padding: 0.3rem 1rem;

  margin: 0.3rem;

  font-family: var(--mono);

  font-weight: bold;

  text-transform: uppercase;

  cursor: pointer;
}

.button-mini:hover,
button:hover {
  background: var(--red);

  color: var(--black);
}

.button-mini.selected,
button.selected {
  background: var(--red);

  color: var(--black);
}

/* ================= PAPER ================= */

.paper {
  background: var(--paper);

  color: var(--black);

  padding: 3rem;

  transform: rotate(-1deg);

  box-shadow: 10px 10px 0 var(--red);
}

.paper p {
  margin-bottom: 1.5rem;
}

/* ================= CARDS ================= */

.columns,
.zine-grid,
.resource-list {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  align-items: start;

  gap: 2rem;
}

.columns article,
.poster,
.resource-list article {
  background: var(--dark);

  border: 2px solid var(--red);

  padding: 2rem;
}

.poster {
  min-height: 32rem;
}

.red {
  background: var(--deep-red);
}

/* ================= COUNTERS ================= */

.counter-section {
  display: flex;

  justify-content: space-around;

  text-align: center;

  border-block: 2px solid var(--red);
}

.counter {
  display: block;

  color: var(--red);

  font-size: 4rem;

  font-weight: bold;
}

/* ================= FAQ ================= */

details {
  border-bottom: 1px solid var(--red);

  padding: 1rem;
}

summary {
  color: var(--red);

  cursor: pointer;

  font-weight: bold;
}

/* ================= CALLOUT ================= */

.callout {
  border-block: 2px solid var(--red);
}

/* ================= STEPS ================= */

.step {
  display: flex;

  gap: 2rem;

  margin-bottom: 3rem;
}

.step span {
  color: var(--red);

  font-size: 3rem;

  font-weight: bold;
}

/* ================= FORMS ================= */

form {
  display: grid;

  gap: 1.5rem;

  max-width: 600px;
}

label {
  display: grid;

  gap: 0.5rem;
}

input,
textarea {
  background: #000;

  color: white;

  border: 2px solid var(--red);

  padding: 1rem;

  font-family: var(--mono);
}

textarea {
  min-height: 150px;
}

/* ================= SPLIT TEXT ================= */

.split-text {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 3rem;

  align-items: center;
}

/* ================= FOOTER ================= */

footer {
  display: flex;
  
  justify-content: space-between;
  
  align-items: center;
  
  border-top: 2px solid var(--red);

  background: #000;

  padding: 1.3rem 8%;
}

footer a {
  display: flex;
}

/* ================= HOVER EFFECTS ================= */

@media (prefers-reduced-motion: no-preference) {

  .paper,
  .hero-art,
  .poster {
    transition: 0.3s;
  }

  .paper:hover {
    transform: rotate(0deg) translateY(-5px);
  }

  .poster:hover {
    transform: translate(-4px, -4px);

    box-shadow: 8px 8px 0 var(--red);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .split,
  .split-text {
    grid-template-columns: 1fr;
  }

  .columns,
  .zine-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .counter-section {
    flex-direction: column;

    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .navbar nav {
    display: none;

    position: absolute;

    top: 70px;

    left: 0;

    width: 100%;

    background: #000;

    flex-direction: column;

    padding: 2rem;

    border-bottom: 2px solid var(--red);
  }

  .navbar nav.active {
    display: flex;
  }

  section {
    padding: 3rem 5%;
  }

  .paper {
    padding: 1.5rem;
  }

  h1 {
    font-size: 3rem;
  }
}

/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;

    transition: none !important;
  }
}

/* ==================================================
   ANARKOMUNISTA
   MOBILE / RESPONSIVE PATCH
   ================================================== */

/* Tablets */

@media (max-width: 1024px) {
  section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .split {
    grid-template-columns: 1fr;

    min-height: auto;

    gap: 3rem;
  }

  .hero-art {
    max-width: 700px;

    margin: auto;
  }

  .columns,
  .zine-grid,
  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .poster {
    min-height: auto;
  }

  .split-text {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }
}

/* Móviles grandes */

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  main {
    padding-top: 80px;
  }

  section {
    padding: 3rem 1.2rem;
  }

  /* NAV */

  .navbar {
    padding: 0.7rem;
  }

  .logo {
    font-size: 1rem;

    margin: 0.3rem;
  }

  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    background: #050505;

    border-bottom: 2px solid var(--red);

    display: none;

    flex-direction: column;

    gap: 0;
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar nav a {
    padding: 1rem;

    border-bottom: 1px solid var(--red);
  }

  /* HERO */

  .hero-text {
    text-align: left;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);

    word-break: break-word;
  }

  .hero-art {
    padding: 1rem;

    overflow: hidden;
  }

  .hero-art pre {
    font-size: 0.65rem;
  }

  /* BOTONES */

  .button,
  button {
    width: 50%;

    text-align: center;
  }

  /* PAPELES */

  .paper {
    padding: 1.5rem;

    transform: rotate(0deg);

    box-shadow: 6px 6px 0 var(--red);
  }

  /* GRIDS */

  .columns,
  .zine-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .columns article,
  .poster,
  .resource-list article {
    padding: 1.3rem;
  }

  /* COUNTERS */

  .counter-section {
    display: grid;

    grid-template-columns: 1fr;

    gap: 2rem;
  }

  .counter {
    font-size: 3rem;
  }

  /* STEPS */

  .step {
    flex-direction: column;

    gap: 0.5rem;

    border-left: 2px solid var(--red);

    padding-left: 1rem;
  }

  .step span {
    font-size: 2rem;
  }

  /* FORMS */

  input,
  textarea {
    width: 100%;

    font-size: 16px;
  }
}

/* Móviles pequeños */

@media (max-width: 420px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .terminal {
    font-size: 0.75rem;
  }

  .ascii {
    font-size: 0.7rem;

    overflow: hidden;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer pre {
    font-size: 0.7rem;
  }
}

/* Mejor soporte táctil */

/*@media (hover: none) {
  a,
  button {
    min-height: 44px;
  }
}*/

/* Reducir animaciones en móviles */

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-art {
    transform: none !important;
  }
}
