/* THE JABBA RECORDS — editorial minimal
   Blanco, tipografía fina, rejilla estricta, mucho aire.
   Inter (base) · Instrument Serif (capa CAT/ES) · Space Mono (códigos y metadatos) */

/* Blur — tipografía de marca (display: wordmark, hero y titulares) */
@font-face {
  font-family: "Blur";
  src: url("fonts/blur-light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Blur";
  src: url("fonts/blur-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Blur";
  src: url("fonts/blur-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

/* Neue Haas Grotesk — tipografía de marca (cuerpo y claims). OJO: versiones -trial */
@font-face {
  font-family: "Neue Haas Text";
  src: url("fonts/nhg-text-roman.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Text";
  src: url("fonts/nhg-text-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Text";
  src: url("fonts/nhg-text-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/nhg-disp-thin.otf") format("opentype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/nhg-disp-light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #0e0e0d;
  --ink: #f0efe9;
  --ink-soft: #a6a69c;
  --line: #2b2b28;
  --ph: #6e6e66;
  --frame: #161614;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --topbar-h: 60px;
}

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

.hero-line { display: block; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Neue Haas Text", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serif { font-family: "Instrument Serif", serif; }

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

h1, h2, h3 { font-weight: 300; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--topbar-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Blur", "Neue Haas Display", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav { display: flex; gap: clamp(16px, 3vw, 40px); }

.nav a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.topbar-meta { color: var(--ink-soft); }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) var(--pad) clamp(36px, 6vh, 72px);
}

.hero-title {
  font-family: "Blur", "Neue Haas Display", sans-serif;
  font-size: clamp(30px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: 0;
  max-width: 18em;
}

.hero-cat {
  margin-top: clamp(24px, 4vh, 44px);
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-soft);
}

.hero-rule {
  margin-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--ink);
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) var(--pad);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(36px, 6vh, 64px);
}

.section-num { color: var(--ink-soft); }

.section-head h2 {
  font-family: "Blur", "Neue Haas Display", sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 0;
}

.section-cat {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--ink-soft);
}

.section-intro {
  max-width: 44em;
  color: var(--ink-soft);
  margin-bottom: clamp(36px, 6vh, 64px);
}

/* ---------- manifesto film: apertura a pantalla completa ---------- */

.film-hero {
  position: relative;
  height: calc(100svh - var(--topbar-h));
  background: #000;
  overflow: hidden;
}

.film-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vh, 36px) var(--pad);
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent 30%, transparent 66%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.film-overlay a { pointer-events: auto; }

.film-kicker { color: #f0efe9; }

.film-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.film-caption { color: #f0efe9; }

.film-caption a { border-bottom: 1px solid rgba(240, 239, 233, 0.5); }
.film-caption a:hover { border-color: #f0efe9; }

.film-cue { color: rgba(240, 239, 233, 0.7); }

/* ---------- subpage head ---------- */

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 11vh, 130px) var(--pad) clamp(28px, 5vh, 56px);
}

.page-title {
  font-family: "Blur", "Neue Haas Display", sans-serif;
  font-weight: 300;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 1;
  letter-spacing: 0;
}

.page-cat {
  margin-top: 18px;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink-soft);
}

/* ---------- poster grid (página /events/, patrón Public Possession) ---------- */

.section-full { max-width: none; }

.section-full .section-head,
.section-full .section-intro,
.section-full .rows-note {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-full .section-intro { margin-bottom: clamp(36px, 6vh, 64px); }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.poster-tile {
  position: relative;
  overflow: hidden;
}

.poster-tile .ph-frame { aspect-ratio: 4 / 5; }

.poster-tile img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.poster-tile:hover img { transform: scale(1.03); }

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(16px, 2vw, 26px);
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.poster-tile:hover .poster-overlay,
.poster-tile:focus-within .poster-overlay { opacity: 1; }

@media (hover: none) {
  .poster-overlay { opacity: 1; }
}

.poster-overlay h3 {
  color: #f0efe9;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.2;
}

.poster-date, .poster-venue { color: rgba(240, 239, 233, 0.75); }

.poster-lineup { color: #f0efe9; letter-spacing: 0.08em; }

.events-more { margin-top: 28px; }

@media (max-width: 1000px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .poster-grid { grid-template-columns: 1fr; }
}

/* ---------- upcoming rows ---------- */

.rows { list-style: none; border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.row-date, .row-meta { color: var(--ink-soft); }

.row-title { font-size: clamp(17px, 2vw, 22px); }

.row-link { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.rows-note { margin-top: 24px; color: var(--ink-soft); font-size: 14px; }

.rows-note a { border-bottom: 1px solid var(--line); }

/* ---------- placeholders ---------- */

.ph { color: var(--ph); }

.ph-link { opacity: 0.45; }

.ph-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  color: var(--ph);
  background:
    linear-gradient(45deg, transparent 49.6%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.4%);
  background-color: var(--frame);
}

.ph-frame .mono, .ph-frame figcaption { color: var(--ph); }

/* ---------- releases ---------- */

.release {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.release-art { aspect-ratio: 1 / 1; }

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

.release-code { color: var(--ink-soft); display: block; margin-bottom: 16px; }

.release-title {
  font-family: "Neue Haas Display", "Neue Haas Text", sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  margin-bottom: 16px;
}

.release-info p { max-width: 34em; color: var(--ink-soft); margin-bottom: 28px; }

.link-arrow {
  display: inline-block;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.link-arrow:hover { opacity: 0.55; }

/* ---------- shop ---------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.product .ph-frame { aspect-ratio: 3 / 4; }

.product-frame { aspect-ratio: 1 / 1; background: var(--frame); }

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

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}

.product-info h3 { font-size: 15px; font-weight: 400; }

.product-price { color: var(--ink-soft); }

.product-buy {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ---------- archive ---------- */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 40px);
}

.archive-item-wide { grid-column: 1 / -1; }

.archive-item-wide .ph-frame { aspect-ratio: 21 / 9; }

.archive-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink);
}

.archive-item figcaption .mono { color: var(--ink-soft); }

.archive-item figcaption .serif { color: var(--ink-soft); }

.archive-more {
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.archive-more:hover { border-color: var(--ink); }

.archive-more-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.archive-more-inner .mono { color: var(--ink-soft); }

.archive-more-label {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}

/* ---------- community ---------- */

.community-claim {
  font-family: "Neue Haas Display", "Neue Haas Text", sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 26em;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.community-actions { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- motion (GSAP maneja los reveals; micro-interacciones aquí) ---------- */

.row,
.archive-item .ph-frame,
.product-frame,
.archive-more {
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.row:hover { transform: translateX(10px); }

.product-frame img,
.release-art img {
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.product:hover .product-frame img,
.release-art:hover img { transform: scale(1.035); }


a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .nav { display: none; }

  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-num { order: -1; }

  .row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

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

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

  .archive-item figcaption { flex-direction: column; gap: 2px; }
}
