@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #050505;
  --text: #f3eee6;
  --text-muted: rgba(243, 238, 230, 0.72);
  --text-soft: rgba(243, 238, 230, 0.58);
  --text-faint: rgba(243, 238, 230, 0.42);
  --panel: rgba(8, 8, 8, 0.52);
  --border: rgba(255, 255, 255, 0.08);

  --header-ink: rgba(243, 238, 230, 0.48);
  --header-ink-hover: rgba(243, 238, 230, 0.96);
  --header-line: rgba(243, 238, 230, 0.34);
  --header-line-hover: rgba(243, 238, 230, 0.88);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.82rem);
  --text-sm: clamp(0.9rem, 0.86rem + 0.12vw, 1rem);
  --text-base: 1rem;
  --text-lg: clamp(1.08rem, 1rem + 0.3vw, 1.22rem);
  --text-xl: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem);
  --text-hero: clamp(3rem, 1.5rem + 5vw, 6rem);

  --container: 1440px;
  --hero-shell: 1680px;
  --hero-column-width: 26.25rem;
  --hero-text-column-width: 24.6rem;
  --lede-scale: 0.16;

  --header-height: 3.72rem;
  --symbol-size: 3.72rem;
  --section-column: 34rem;

  --header-font:
    "Century Gothic",
    "Didact Gothic",
    "Questrial",
    "Avenir Next",
    "Futura",
    "Trebuchet MS",
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

canvas {
  display: block;
}

.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.02), transparent 40%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01), transparent 22%),
    var(--bg);
}

.ascii-field {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  width: 100%;
  height: auto;
  pointer-events: none;
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 70%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-height);
}

.header-strip {
  position: relative;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.66), rgba(5, 5, 5, 0.14));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.symbol-box {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--symbol-size);
  height: var(--symbol-size);
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.symbol-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.006);
  pointer-events: none;
}

.symbol-box__char {
  position: relative;
  z-index: 2;
  color: rgba(243, 238, 230, 0.42);
  font-family: var(--header-font);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  transform: translateY(-0.03rem);
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.container {
  width: min(100% - 1.2rem, var(--container));
  margin-inline: auto;
}

.header-inner {
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding-left: calc(var(--symbol-size) + 1rem);
  padding-right: 1.35rem;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand {
  color: var(--header-ink);
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  white-space: nowrap;
  transition: color 180ms ease;
}

.brand span {
  display: inline-block;
  font-family: var(--header-font);
  font-size: clamp(0.94rem, 0.91rem + 0.06vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18rem;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  color: var(--header-ink);
  display: inline-flex;
  align-items: flex-end;
  min-height: 2rem;
  white-space: nowrap;
  padding: 0.08rem 1.02rem 0.86rem 0.42rem;
  transition: color 180ms ease;
}

.nav-link span {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: var(--header-font);
  font-size: clamp(0.93rem, 0.9rem + 0.04vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  right: 0.22rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--header-line);
  transition: background-color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0.22rem;
  top: 0.9rem;
  bottom: -0.26rem;
  width: 1px;
  background: var(--header-line);
  transition: background-color 180ms ease;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding-bottom: 0.32rem;
  margin-left: 0.3rem;
}

.lang-toggle__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  min-height: 2rem;
  padding: 0.12rem 0.18rem;
  color: var(--header-ink);
  font-family: var(--header-font);
  font-size: clamp(0.88rem, 0.84rem + 0.05vw, 0.94rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.lang-toggle__button::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  right: 0.18rem;
  bottom: 0.02rem;
  height: 1px;
  background: var(--header-line);
  transition: background-color 180ms ease;
}

.lang-toggle__button:hover {
  color: var(--header-ink-hover);
}

.lang-toggle__button:hover::before {
  background: var(--header-line-hover);
}

.lang-toggle__code {
  opacity: 0.42;
  transition: opacity 180ms ease, color 180ms ease;
}

.lang-toggle__divider {
  opacity: 0.32;
  margin-inline: 0.12rem;
}

.lang-toggle__code.is-active {
  opacity: 1;
  color: var(--header-ink-hover);
}

.brand:hover,
.nav-link:hover {
  color: var(--header-ink-hover);
}

.nav-link:hover::before,
.nav-link:hover::after {
  background: var(--header-line-hover);
}

main {
  position: relative;
  z-index: 10;
}

@media (hover: none), (pointer: coarse) {
  html {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .nav-link,
  .nav-link::before,
  .nav-link::after,
  .symbol-box__char,
  .lang-toggle__button,
  .lang-toggle__code {
    transition: none;
  }
}

/* ============================================================
   ESTILOS PROPIOS DE LA PÁGINA ###bcn (zine)
   ============================================================ */

.zine-hero {
  min-height: 60svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 3rem) 0 2rem;
}

.zine-hero__inner {
  width: min(100% - 2rem, var(--hero-shell));
  margin-inline: auto;
}

.zine-hero__kicker {
  margin: 0 0 0.4rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.5);
}

.zine-hero__title {
  margin: 0;
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.99);
}

.zine-hero__text {
  margin-top: var(--space-5);
  max-width: 42ch;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(243, 238, 230, 0.72);
  text-align: justify;
  text-justify: inter-word;
}

.zine-section {
  position: relative;
  padding: 1rem 0 6rem;
}

.zine-stack {
  width: min(100% - 2rem, 1500px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.zine-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.zine-block__label {
  align-self: flex-start;
  margin: 0;
  padding-left: 0.2rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.58);
}

.zine-wrapper {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}

.book {
  width: 100%;
}

.page {
  background-color: #fff;
  overflow: hidden;
}

.page-content {
  width: 100%;
  height: 100%;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  html {
    cursor: auto;
  }

  .zine-hero {
    min-height: 44svh;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .zine-stack {
    gap: 3.5rem;
  }
}