/* ============================================================
   TITO — Direction D: Punk Zine, Shows-Forward
   Palette: cream #f1ede1 · black #141414 · riso red #e8412b
   Type: Anton (display) · Courier Prime (body)
   ============================================================ */

:root {
  --cream: #f1ede1;
  --ink: #141414;
  --red: #e8412b;
  --red-shadow: #7a1d11;
  --muted: #6b675c;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Courier Prime', 'Courier New', monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 0.95;
  margin: 0;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }

/* halftone helper */
.halftone::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(#000 1px, transparent 1.4px);
  background-size: 5px 5px;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* shared zine bits */
.zine-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.zine-head h2 { margin: 0; }
.zine-tag {
  background: var(--ink); color: var(--cream);
  font-family: 'Courier Prime', monospace; font-weight: 700;
  font-size: 0.8rem; padding: 4px 10px; transform: rotate(-2deg);
}
.zine-tag.rot { transform: rotate(-3deg); }
.section-sub { font-size: 1rem; margin: 0 0 22px; color: inherit; opacity: 0.85; }
.zine-mark { background: var(--red); color: var(--cream); padding: 1px 6px; }

/* ---------- Buttons ---------- */
.btn-zine {
  display: inline-block; text-decoration: none;
  font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 1.05rem; padding: 12px 20px;
  background: var(--red); color: var(--ink);
  border: 2px solid var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-zine:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-zine.ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-zine.ghost:hover { box-shadow: 4px 4px 0 var(--cream); }
.btn-zine.red-on-black { background: var(--red); color: var(--ink); align-self: center; }

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--ink); color: var(--cream);
  border-bottom: 3px solid var(--red);
}
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Anton', sans-serif; text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: 1px; color: var(--cream);
}
.logo-in { color: var(--red); }
.nav-menu {
  list-style: none; display: flex; gap: 18px; margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--cream); text-decoration: none;
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.82rem;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--red); border-bottom-color: var(--red); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: var(--cream); transition: 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; margin-top: 0; padding: 120px 24px 70px;
  background: var(--ink); color: var(--cream); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#000 1px, transparent 1.4px);
  background-size: 5px 5px; opacity: 0.35; mix-blend-mode: multiply; pointer-events: none;
}
.hero-video, .hero-overlay { position: relative; z-index: 1; }
.hero {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto;
}
.hero-video {
  width: 340px; max-width: 80%;
  transform: rotate(-3deg);
}
.hero-overlay { flex: 1; min-width: 300px; }
.hero-overlay h1 {
  font-size: clamp(56px, 9vw, 104px); color: var(--cream); margin: 0;
  line-height: 0.82;
}
.hero-overlay h1 .hl {
  background: var(--red); color: var(--ink); padding: 0 10px;
  display: inline-block; transform: rotate(-2deg);
}
.tagline {
  display: inline-block; margin: 18px 0 0;
  background: var(--cream); color: var(--ink);
  font-family: 'Anton', sans-serif; font-size: 1.15rem;
  padding: 5px 12px; transform: rotate(1.2deg); letter-spacing: 0.5px;
}
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   SHOWS
   ============================================================ */
.section-shows { background: var(--red); color: var(--ink); }
.section-shows h2 { color: var(--ink); font-size: clamp(40px, 7vw, 64px); }
.section-shows .zine-tag { background: var(--ink); color: var(--cream); }

.dates-list { margin-bottom: 30px; }
.upcoming-card {
  background: var(--ink); color: var(--cream);
  padding: 24px 26px; box-shadow: 9px 9px 0 var(--red-shadow);
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
}
.upcoming-date {
  text-align: center; border-right: 3px solid var(--red);
  padding-right: 22px; min-width: 110px;
  display: flex; flex-direction: column; align-items: center;
}
.u-month { font-family: 'Anton', sans-serif; font-size: 2.4rem; color: var(--red); line-height: 0.9; }
.u-day { font-family: 'Anton', sans-serif; font-size: 3rem; line-height: 0.85; }
.u-year { font-size: 0.8rem; letter-spacing: 1px; margin-top: 4px; }
.upcoming-info { flex: 1; min-width: 220px; }
.upcoming-venue {
  font-family: 'Anton', sans-serif; font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase; color: var(--cream); text-decoration: none;
  line-height: 0.95; display: inline-block;
}
.upcoming-venue:hover { color: var(--red); }
.upcoming-venue .ext { color: var(--red); font-size: 0.7em; }
.upcoming-meta { font-size: 0.95rem; margin: 8px 0 0; color: #cfcabb; }

.legacy-shows-heading {
  font-family: 'Anton', sans-serif; font-size: 1.5rem; letter-spacing: 1px;
  margin: 34px 0 16px; text-transform: uppercase; color: var(--ink);
}
.legacy-shows-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.legacy-show-card { background: var(--ink); box-shadow: 5px 5px 0 var(--red-shadow); }
.legacy-show-card .card-image {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  filter: grayscale(1) contrast(1.25); cursor: pointer;
  transition: filter 0.35s ease;
}
.legacy-show-card .card-image:hover { filter: grayscale(0) contrast(1); }
.legacy-show-info { padding: 9px 10px; background: var(--cream); }
.legacy-show-info h4 { font-size: 0.95rem; color: var(--ink); line-height: 1; }
.legacy-date { font-size: 0.72rem; margin: 5px 0 0; color: var(--muted); }

/* ============================================================
   BAND
   ============================================================ */
.section-band { background: var(--cream); }
.section-band h2 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 24px; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.band-card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.band-card .card-image {
  width: 100%; height: 220px; object-fit: cover;
  filter: grayscale(1) contrast(1.35); cursor: pointer;
  transition: filter 0.35s ease;
}
.band-card .card-image:hover { filter: grayscale(0) contrast(1); }
.band-info { padding: 12px; border-top: 2px solid var(--ink); }
.band-info h3 { font-size: 1.5rem; }
.member-role { font-size: 0.82rem; margin: 5px 0 0; line-height: 1.35; }

/* ============================================================
   MEDIA / TRIPS TO TIME OUT
   ============================================================ */
.section-media { background: var(--ink); color: var(--cream); }
.section-media h2 { color: var(--cream); font-size: clamp(40px, 7vw, 64px); }
.section-media .section-sub { color: #cfcabb; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.video-card { background: var(--cream); border: 2px solid var(--cream); box-shadow: 6px 6px 0 var(--red); }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-wrapper iframe, .video-wrapper video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.video-card h3 { padding: 10px 12px; font-size: 1.15rem; color: var(--ink); }

/* ============================================================
   GAME (Pac-Tim bonus)
   ============================================================ */
.section-game { background: var(--cream); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: center; }
.bonus-kicker { font-family: 'Anton', sans-serif; letter-spacing: 2px; color: var(--red); margin-bottom: 8px; font-size: 1rem; }
.section-game h2 { font-size: clamp(44px, 8vw, 64px); margin-bottom: 14px; }
.game-intro { max-width: 640px; margin: 0 auto 22px; font-size: 1rem; }
.game-intro-mobile { display: none; }

.game-wrap { max-width: 820px; margin: 0 auto; }
.game-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.game-stats { display: flex; gap: 14px; flex-wrap: wrap; font-family: 'Courier Prime', monospace; font-weight: 700; }
.stat { background: var(--ink); color: var(--cream); padding: 6px 10px; font-size: 0.85rem; }
.stat span { color: var(--red); }
.game-controls { display: flex; gap: 10px; }
.btn {
  font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 1rem; padding: 9px 18px; cursor: pointer;
  background: var(--red); color: var(--ink); border: 2px solid var(--ink);
}
.btn:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: var(--cream); }

.game-canvas-wrap { background: var(--ink); border: 3px solid var(--ink); padding: 10px; box-shadow: 9px 9px 0 var(--red); }
#tito-canvas { width: 100%; height: auto; display: block; background: #f1ede1; }
.game-hint { font-size: 0.8rem; color: var(--cream); margin-top: 8px; }

/* D-pad (mobile only) */
.game-dpad { display: none; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); gap: 6px; justify-content: center; margin: 14px auto 0; }
.dpad-btn {
  font-size: 1.4rem; background: var(--red); color: var(--ink);
  border: 2px solid var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dpad-btn.spacer { visibility: hidden; border: 0; background: transparent; }

/* ============================================================
   COMICS
   ============================================================ */
.section-comics { background: var(--cream); }
.section-comics h2 { font-size: clamp(40px, 7vw, 64px); }
.comics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.comic-card {
  background: var(--paper); padding: 10px; border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink); transform: rotate(-1deg);
}
.comic-card:nth-child(even) { transform: rotate(1deg); }
.comic-card .card-image { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; cursor: pointer; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--ink); color: var(--cream); text-align: center; }
.section-contact h2 { color: var(--red); font-size: clamp(44px, 8vw, 70px); margin-bottom: 22px; }
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.contact-form input, .contact-form textarea {
  font-family: 'Courier Prime', monospace; font-size: 1rem;
  padding: 12px 14px; background: var(--cream); color: var(--ink);
  border: 2px solid var(--cream); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,65,43,0.35); }
.submit-btn {
  font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 1.2rem; padding: 13px 26px; cursor: pointer;
  background: var(--red); color: var(--ink); border: 2px solid var(--cream);
}
.submit-btn:hover { box-shadow: 4px 4px 0 var(--cream); }

/* ============================================================
   IMAGE MODAL (lightbox)
   ============================================================ */
.image-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,10,0.92); align-items: center; justify-content: center; padding: 24px;
}
.image-modal.active { display: flex; }
#modalImage { max-width: 92%; max-height: 88vh; border: 3px solid var(--cream); box-shadow: 10px 10px 0 var(--red); }
.close-modal {
  position: absolute; top: 18px; right: 24px; font-size: 2.4rem; line-height: 1;
  background: none; border: none; color: var(--cream); cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: 36px 24px; text-align: center; }
.social-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 16px; }
.social-icon { color: var(--cream); display: inline-flex; }
.social-icon:hover { color: var(--red); }
.copyright { font-size: 0.8rem; color: #8a857a; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .legacy-shows-grid { grid-template-columns: repeat(3, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 54px; right: 0; height: calc(100vh - 54px);
    width: 70%; max-width: 280px; background: var(--ink);
    flex-direction: column; gap: 0; padding: 16px 0;
    transform: translateX(100%); transition: transform 0.28s ease;
    border-left: 3px solid var(--red);
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 14px 24px; font-size: 1rem; border-bottom: 1px solid #2a2a2a; }

  .video-grid { grid-template-columns: 1fr; }
  .game-intro-desktop { display: none; }
  .game-intro-mobile { display: block; }
  .game-dpad { display: grid; }
  .comics-grid { grid-template-columns: repeat(2, 1fr); }
  .upcoming-card { box-shadow: 6px 6px 0 var(--red-shadow); }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .legacy-shows-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; }
  .band-card .card-image { height: 260px; }
  .hero { padding-top: 100px; }
  .upcoming-card { flex-direction: column; align-items: flex-start; }
  .upcoming-date { flex-direction: row; gap: 8px; border-right: 0; border-bottom: 3px solid var(--red); padding: 0 0 8px; min-width: 0; align-items: baseline; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
