:root {
  --paper: #faf6ea;
  --ink: #202124;
  --rail: #3a3b3f;
  --red: #e23d28;
  --gold: #f5b335;
  --blue: #2e6f95;
  --dusk: 0; /* 0 = hapon, 1 = gabi; set by app.js */
  --display: "Archivo Black", "Arial Black", sans-serif;
  --text: "IBM Plex Serif", Georgia, serif;
  --gutter: max(clamp(16px, 4vw, 56px), calc((100vw - 1440px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100dvh;
}
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 0.95; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(40px, 7vw, 96px); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
section { padding: clamp(56px, 10vw, 140px) var(--gutter); scroll-margin-top: 64px; }

/* gate: "gising". the page loads dark and wakes on its own, no tap, no sound */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  text-align: center; pointer-events: none;
  transition: transform .8s cubic-bezier(.7,0,.3,1), opacity .5s .2s, visibility 0s .9s;
}
body:not(.asleep) .gate { transform: translateY(-100%); opacity: 0; visibility: hidden; }
body.asleep { overflow: hidden; }
.gate-word { font-family: var(--display); font-size: clamp(64px, 18vw, 220px); line-height: .9; }

/* masthead: name left, rooms right, wraps on phone */
.mast {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  padding: 14px var(--gutter);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
/* the lockup from the 2016 cover and their profile mark: double-outline triangle over a light geometric sans. Figtree Light stands in for Avenir Light */
.mast-name, .foot-mark { font-family: "Figtree", "Avenir Next", "Avenir", sans-serif; font-weight: 300; font-size: 20px; letter-spacing: .14em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mast-name { margin-right: auto; }
.mark { width: 24px; height: auto; flex: none; }
.foot-mark { margin: 0 0 4px; }
.gate-mark { width: clamp(48px, 8vw, 90px); height: auto; filter: invert(1) brightness(1.1); margin-bottom: 8px; }
.setlist-mark { width: 44px; height: auto; margin-top: 28px; margin-left: auto; display: block; opacity: .85; }
.mast-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.mast-nav a { text-decoration: none; }
.mast-nav a:hover { text-decoration: underline; }

/* show page: the thing they are selling, above everything artsy, in their copy */
.show { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; position: relative; padding-top: 0; }
.show-kicker, .show-facts, .show-note { max-width: 1100px; }
.banda { margin: 0 calc(-1 * var(--gutter)) 8px; position: relative; }
.banda picture img { width: 100%; height: auto; max-height: 88vh; object-fit: cover; object-position: 50% 30%; display: block; }
.show-kicker { margin: 0; font-size: 20px; }
/* the hero carries the band's own lockup: mark over AUTOTELIC in the 2016 wordmark style, the show as the line under it */
/* the lockup is a paper label pasted on the photo wall, slightly off-square, so it reads the same at every width */
.show-title {
  position: absolute; left: var(--gutter); bottom: 7%;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  padding: 12px 18px 12px 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: rotate(-1.5deg);
  font-family: "Figtree", "Avenir Next", "Avenir", sans-serif; font-weight: 300; letter-spacing: .16em;
  font-size: clamp(20px, 2vw, 30px); line-height: 1;
  bottom: 4%; left: 2%;
}
.show-mark { width: 1.1em; height: auto; grid-row: span 2; }
.show-title small { grid-column: 2; font-family: var(--display); font-size: clamp(13px, 1.1vw, 17px); letter-spacing: 0; line-height: 1.2; margin-top: 6px; }
@media (max-width: 1100px) {
  .banda picture img { height: 70vw; max-height: none; object-position: 50% 40%; }
  .show-title { font-size: clamp(18px, 2.6vw, 26px); }
}
.show-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 40px; }
.show-facts div { border-top: 2px solid var(--ink); padding-top: 8px; }
.show-facts dt { font-family: var(--display); font-size: 14px; }
.show-facts dd { margin: 4px 0 0; }
.show-buy {
  justify-self: start;
  background: var(--red); color: var(--paper); text-decoration: none;
  font-family: var(--display); font-size: 20px; padding: 18px 28px;
  transform: rotate(-1.2deg);
  transition: transform .15s cubic-bezier(.2,1.4,.4,1);
}
.show-buy:hover { transform: rotate(0deg) scale(1.03); }
.show-note { margin: 0; opacity: .75; }

/* ruta: the gold smoke from the cover is the route. it draws as you scroll; pabalik un-draws it */
.ruta { background: #fff; color: var(--ink); padding-left: 0; padding-right: 0; }
.ruta-head { padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(200px, 420px) 1fr; gap: 32px 48px; align-items: end; }
.ruta-head > div { display: grid; gap: 16px; max-width: 620px; }
.ruta-head p { margin: 0; }
.ruta-cover { width: 100%; height: auto; display: block; }
/* the road from the Takipsilim single cover: white lines to a vanishing point, a striped sun, neon city. the songs are road markers you drive past */
.daan { position: relative; margin-top: 56px; background: #0b0b0d; color: #f7efe2; }
.daan-svg { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100dvh; }
.daan-sun { fill: #e0106a; mask: repeating-linear-gradient(#000 0 14px, transparent 14px 24px); }
.daan-city rect:nth-child(odd) { fill: #1fb8b0; }
.daan-center { animation: drive 1.1s linear infinite; }
.daan.is-back .daan-center { animation-direction: reverse; }
@keyframes drive { to { stroke-dashoffset: -44; } }
.markers { list-style: none; margin: -100vh 0 0; margin-top: -100dvh; padding: 0 var(--gutter) 30vh; position: relative; display: flex; flex-direction: column; }
.daan.is-back .markers { flex-direction: column-reverse; }
.markers li { min-height: 55vh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px; }
.markers span { font-family: var(--display); font-size: 13px; color: #1fb8b0; }
.markers strong {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 8vw, 120px); line-height: .95;
  color: #9a948c; transform: scale(.92); paint-order: stroke fill; -webkit-text-stroke: 3px #0b0b0d;
  transition: color .5s, transform .6s cubic-bezier(.2,1.2,.3,1), text-shadow .5s;
}
/* lit when the song reaches the middle of the screen, each in its own neon from the Takipsilim cover */
.markers li.is-on strong { transform: scale(1); }
.markers li:nth-child(3n+1).is-on strong { color: #e0106a; text-shadow: 0 0 30px rgba(224, 16, 106, .55); }
.markers li:nth-child(3n+2).is-on strong { color: #1fb8b0; text-shadow: 0 0 30px rgba(31, 184, 176, .55); }
.markers li:nth-child(3n+3).is-on strong { color: #f7efe2; text-shadow: 0 0 30px rgba(247, 239, 226, .45); }
.markers li.is-on span { color: #f7efe2; }
.ruta-flip {
  justify-self: start; position: relative;
  background: var(--paper); color: var(--ink); border: 0;
  font-family: var(--display); font-size: 18px;
  display: inline-grid; grid-template-columns: 1fr 1fr;
}
.ruta-flip span { padding: 12px 22px; }
.ruta-flip .flip-on { background: var(--gold); }
.ruta-flip[aria-pressed="true"] .flip-on { background: none; }
.ruta-flip[aria-pressed="true"] .flip-off { background: var(--red); color: var(--paper); }

.ruta-listen { padding: 48px var(--gutter) 0; display: grid; gap: 12px; }
.ruta-listen p { margin: 0; }

/* panoorin: their nine videos as a TV you flip through. the set borrows the Mapa video's VHS feel: dark bezel, faint scanlines */
.tv { background: #141416; color: #f7efe2; }
.tv-head { max-width: 700px; display: grid; gap: 12px; }
.tv-head p { margin: 0; }
.tv-set { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.tv-screen { position: relative; background: #000; padding: 14px; border-radius: 10px; box-shadow: 0 0 0 2px #2a2a2e, 0 30px 60px rgba(0,0,0,.5); }
.tv-screen::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,.18) 3px 4px);
}
.tv-screen iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.tv-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: ch; }
.tv-channels button {
  width: 100%; text-align: left; background: transparent; color: inherit; border: 0;
  padding: 10px 12px; display: grid; grid-template-columns: 1.6em 1fr; column-gap: 8px; align-items: baseline;
  font-family: var(--display); font-size: 18px;
  counter-increment: ch;
}
.tv-channels button::before { content: counter(ch); font-family: var(--text); font-size: 13px; opacity: .5; grid-row: span 2; }
.tv-channels button span { font-family: var(--text); font-size: 13px; opacity: .65; grid-column: 2; }
.tv-channels button:hover { background: #222226; }
.tv-channels button[aria-pressed="true"] { background: #f7efe2; color: #141416; }
.tv-channels button[aria-pressed="true"] span { opacity: .8; }

/* takipsilim: the EP cover is the room. the page goes from the cover's off-white to black with your local time */
.dusk {
  --tint: color-mix(in oklab, #f2f2f0 calc((1 - var(--dusk)) * 100%), #0b0b0d);
  background: var(--tint);
  color: color-mix(in oklab, var(--ink) calc((1 - var(--dusk)) * 100%), #f2f2f0);
  display: grid; grid-template-columns: minmax(240px, 480px) 1fr; gap: 40px 64px; align-items: center;
  transition: background 1s, color 1s;
}
.dusk-cover { width: 100%; height: auto; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dusk-text { display: grid; gap: 16px; max-width: 560px; }
.dusk-text p { margin: 0; }
.dusk-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.dusk-list strong { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 36px); display: block; line-height: 1.05; }
.dusk-list em { font-style: normal; opacity: .75; font-size: 15px; }
.dusk-listen { justify-self: start; font-family: var(--display); text-decoration: none; border-bottom: 3px solid currentColor; padding-bottom: 2px; }

/* singles: a record shelf you swipe. covers sit flat, snap one at a time, the three unreleased songs are a note, not blank cards */
.singles { background: #d9d4c7; color: var(--ink); padding-left: 0; padding-right: 0; }
.singles-head { max-width: 700px; display: grid; gap: 12px; padding: 0 var(--gutter); }
.singles-head p { margin: 0; }
.shelf {
  list-style: none; margin: 40px 0 0; padding: 0 0 24px; scroll-padding-left: var(--gutter);
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-bottom: 4px solid var(--ink);
}
.shelf::-webkit-scrollbar { display: none; }
.shelf li { flex: 0 0 clamp(200px, 24vw, 300px); scroll-snap-align: start; }
.shelf li:first-child { margin-left: var(--gutter); }
.shelf li:last-child { margin-right: var(--gutter); }
.shelf a { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.shelf img { width: 100%; height: auto; display: block; box-shadow: 0 12px 28px rgba(32,33,36,.28); transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.shelf a:hover img { transform: translateY(-8px); }
.shelf strong { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.05; margin-top: 6px; }
.shelf span { font-size: 14px; opacity: .7; }
.shelf-nav { display: flex; gap: 8px; }
.shelf-nav button { background: var(--ink); color: var(--paper); border: 0; width: 44px; height: 44px; font-size: 22px; font-family: var(--text); }
.shelf-nav button:disabled { opacity: .3; }
.shelf:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.shelf-note { margin: 28px var(--gutter) 0; max-width: 560px; font-size: 17px; }

/* setlist: the one they handwrote in marker and taped up. heavy sans stands in for the marker; NEW in red */
.setlist { background: #f4f1ea; color: var(--ink); }
.setlist-head { max-width: 700px; display: grid; gap: 12px; }
.setlist-head p { margin: 0; }
.setlist-paper {
  margin: 40px 0 0; padding: 36px 32px 40px; max-width: 560px;
  list-style: none; counter-reset: song;
  background: #fff; box-shadow: 0 14px 40px rgba(32, 33, 36, .14);
  transform: rotate(-1deg);
  font-family: var(--display); font-size: clamp(22px, 3vw, 30px); line-height: 1.35;
}
.setlist-paper li { counter-increment: song; padding-left: 1.8em; text-indent: -1.8em; }
.setlist-paper li::before { content: counter(song) "."; font-family: var(--text); font-size: .6em; opacity: .5; display: inline-block; width: 1.8em; text-indent: 0; }
.setlist-paper .is-new { color: var(--red); }
.setlist-paper .is-new::after { content: "bago"; font-family: var(--text); font-size: 14px; border-bottom: 2px solid currentColor; margin-left: 4px; }

.foot { padding: 48px var(--gutter); border-top: 2px solid var(--ink); display: grid; gap: 8px; font-size: 15px; }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .tv-set, .dusk { grid-template-columns: 1fr; }
  .dusk-cover { max-width: 420px; }
  .tv-channels { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate { display: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
  .mast { padding: 10px var(--gutter); gap: 6px 0; }
  .mast-name { font-size: 17px; flex: 1 0 100%; }
  .mast-nav { flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 16px; scrollbar-width: none; font-size: 14px; }
  .mast-nav::-webkit-scrollbar { display: none; }
  .mast-nav { mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
  section { scroll-margin-top: 76px; }
}
@media (max-width: 700px) {
  h2 { font-size: clamp(34px, 11vw, 48px); }
  .banda picture img { height: auto; object-position: 50% 50%; }
  .show-title { font-size: 5vw; bottom: 3%; left: 3%; padding: 10px 14px; }
  .show-title small { font-size: 12px; }
  .ruta-head { grid-template-columns: 1fr; }
  .setlist-paper { padding: 28px 20px; }
  .ruta-cover { max-width: 260px; }
  .shelf li { flex-basis: 68vw; }
}
