/* ================================================================
   The Dirty Middle — site stylesheet
   "Brain on Black": the hand-drawn brain logo on true black, with the
   palette pulled straight from the band's artwork. Rounded, chunky
   display type; friendly body type; a marker hand for annotations.
   ================================================================ */

:root {
  --black: #000;
  --paper: #F6F0F3;   /* brain white */
  --pink: #FC527D;    /* brain lettering */
  --pencil: #E97E9B;  /* pencil shading */
  --teal: #769A95;    /* avatar outline */
  --coral: #CF7670;   /* avatar lettering */
  --soft: #B9AEB3;    /* secondary text on black */
  --line: #3A3336;    /* quiet dividers */

  --display: 'Titan One', 'Arial Rounded MT Bold', sans-serif;
  --body: 'Rubik', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;

  --col: 680px;
  --wide: 1040px;

  /* Aliases used by the admin panel's inline styles */
  --bg: var(--black);
  --surface: #151214;
  --surface-hi: #1F1B1D;
  --rule: var(--line);
  --text: var(--paper);
  --muted: var(--soft);
  --accent: var(--pink);
  --mono: ui-monospace, 'SF Mono', monospace;
}

/* --- Base ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--black);
  color: var(--paper);
  font: 400 17px/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--pink); color: var(--black); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

main { flex: 1; padding: 24px 0 40px; }
.col { max-width: var(--col); margin: 0 auto; padding: 0 20px; }

/* --- Header ---------------------------------------------------- */

.site-header { max-width: var(--wide); margin: 0 auto; width: 100%; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--display); font-size: 20px; line-height: 1; }
.brand:hover { color: var(--paper); }
.brand img { width: 38px; height: 38px; }
nav.primary { display: flex; gap: 18px; font-weight: 500; font-size: 15px; }
nav.primary a { color: var(--soft); text-decoration: none; padding: 4px 0; }
nav.primary a:hover { color: var(--paper); }
nav.primary a.vote { color: var(--pink); }
nav.primary a.current { color: var(--paper); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--soft); color: var(--paper); border-radius: 10px; padding: 4px 12px; font: 500 15px var(--body); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.primary { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 6px; }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; font-size: 18px; border-top: 1px solid var(--line); }
}

/* --- Footer ---------------------------------------------------- */

.site-footer { margin-top: 72px; padding: 28px 20px 44px; text-align: center; color: var(--soft); font-size: 14px; }
.site-footer img { width: 44px; height: 44px; margin: 0 auto 10px; }
.site-footer .socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 8px; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--paper); }

/* --- Type ------------------------------------------------------ */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; text-wrap: balance; }
.page-title { font-size: clamp(44px, 10vw, 72px); margin: 12px 0 10px; }
.page-intro { color: var(--soft); font-size: 18px; max-width: 42ch; margin-bottom: 44px; }
.section-title { font-size: clamp(28px, 6vw, 40px); margin: 64px 0 18px; }
.aside { font-style: italic; color: var(--pencil); font-size: 18px; }
.hand { font-family: var(--hand); font-weight: 600; }
.loading { color: var(--soft); font-style: italic; padding: 16px 0; }

.prose { font-size: 18px; line-height: 1.65; }
.prose p { margin-bottom: 18px; max-width: 62ch; }
.prose h2 { font-size: 30px; margin: 36px 0 12px; }
.prose h3 { font-size: 24px; margin: 28px 0 10px; }
.prose ol, .prose ul { margin: 12px 0 20px 24px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--pink); font-family: var(--display); }
.prose strong { font-weight: 700; color: var(--paper); }
.prose blockquote { border-left: 4px solid var(--pink); padding: 4px 0 4px 18px; margin: 22px 0; font-size: 20px; }
.prose img { margin: 24px 0; border-radius: 6px; }
.prose code { font-family: var(--mono); font-size: 0.9em; }

/* --- Buttons & pills ------------------------------------------- */

.btn { display: inline-block; font: 500 16px var(--body); text-decoration: none; text-align: center; color: var(--paper); background: none; border: 2px solid var(--teal); padding: 11px 22px; border-radius: 999px; }
.btn:hover { background: var(--teal); color: var(--black); }
.btn--primary { font-family: var(--display); font-size: 22px; background: var(--pink); color: var(--black); border-color: var(--pink); padding: 14px 30px; }
.btn--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--black); }
.btn--ink { font-family: var(--display); font-size: 24px; background: var(--black); color: var(--pink); border-color: var(--black); padding: 16px 30px; }
.btn--ink:hover { background: var(--black); color: var(--paper); }
.btn--huge { display: block; width: 100%; font-size: clamp(28px, 7vw, 36px); padding: 20px 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Home ------------------------------------------------------ */

.hero { text-align: center; padding: 0 20px 56px; }
.hero-logo { width: min(78%, 380px); margin: 4px auto 0; aspect-ratio: 1100 / 1282; display: block; }
.hero h1 { font-size: clamp(40px, 9vw, 76px); line-height: 1.02; margin-top: 4px; }
.hero p { color: var(--soft); max-width: 34ch; margin: 16px auto 0; font-size: 18px; }

.vote-slab { background: var(--pink); color: var(--black); border-radius: 28px; padding: 28px 20px 24px; max-width: 640px; margin: 0 auto 72px; text-align: center; }
.vote-slab .eyebrow { font: 700 11px/1.3 var(--body); letter-spacing: .15em; text-transform: uppercase; color: rgba(0,0,0,.62); }
.vote-slab h2 { font-size: clamp(26px, 6.2vw, 40px); margin: 10px auto 0; max-width: 15ch; }
.vote-slab .ticket { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0; border-top: 2px dashed rgba(0,0,0,.4); border-bottom: 2px dashed rgba(0,0,0,.4); }
.vote-slab .ticket > div { padding: 13px 8px; }
.vote-slab .ticket > div + div { border-left: 2px dashed rgba(0,0,0,.4); }
.vote-slab .ticket .k { display: block; font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(0,0,0,.62); margin-bottom: 7px; }
.vote-slab .ticket strong { display: block; font: 400 clamp(17px, 4.4vw, 23px)/1.1 var(--display); }
.vote-slab .actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vote-slab .btn--ink { width: 100%; max-width: 400px; }
.vote-slab a:not(.btn) { color: var(--black); font-weight: 700; }
.vote-slab .note { font-family: var(--hand); font-weight: 600; font-size: 26px; line-height: 1; margin-top: 16px; transform: rotate(-2deg); }
.vote-slab .counter { margin-top: 10px; font-weight: 500; font-size: 15px; color: rgba(0,0,0,.72); }
@media (max-width: 430px) {
  .vote-slab .ticket { grid-template-columns: 1fr; }
  .vote-slab .ticket > div + div { border-left: 0; border-top: 2px dashed rgba(0,0,0,.4); }
}

.polaroid { background: var(--paper); padding: 12px 12px 10px; transform: rotate(-2deg); width: calc(100% - 36px); max-width: 600px; margin: 0 auto 72px; position: relative; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(118,154,149,.75); transform: rotate(3deg); }
.polaroid img { width: 100%; }
.polaroid figcaption { font-family: var(--hand); font-weight: 600; font-size: 26px; color: #222; padding: 8px 6px 2px; line-height: 1.1; }

.name blockquote { font-size: clamp(20px, 4.4vw, 26px); line-height: 1.4; margin: 0 0 6px; max-width: 30ch; }
.name cite { color: var(--soft); font-style: normal; }
.name .aside { margin-top: 36px; }
.curve { margin: 14px -6px 12px; }
.curve svg { width: 100%; height: auto; overflow: visible; }

.press-line { font-size: 20px; margin: 40px 0 0; }
.press-line cite { display: block; color: var(--soft); font-style: normal; font-size: 15px; margin-top: 4px; }

/* --- News feed ------------------------------------------------- */

.post { padding: 26px 0; border-top: 2px dashed var(--line); }
.post:last-child { border-bottom: 2px dashed var(--line); }
.post-by { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; color: var(--soft); font-size: 14px; margin-bottom: 12px; }
.post-by img { width: 32px; height: 32px; flex: none; }
.post-by strong { color: var(--paper); font-weight: 500; }
.post-by .when { margin-left: auto; white-space: nowrap; }
.feed-tag { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 9px 4px; }
.feed-tag--news { color: var(--pink); }
.feed-tag--social { color: var(--teal); }
@media (max-width: 430px) { .post-by .when { margin-left: 0; width: 100%; } }
.post h3 { font-size: clamp(24px, 5vw, 30px); margin-bottom: 10px; }
.post h3 a { color: var(--paper); text-decoration: none; }
.post h3 a:hover { color: var(--pink); }
.post p { max-width: 60ch; margin-bottom: 12px; }
.post .more { font-weight: 700; }
.post .source { color: var(--teal); }
.post-embed { max-width: 540px; }

.post-page .post-meta { color: var(--soft); font-size: 15px; margin: 18px 0 0; }
.post-page .back { font-size: 15px; color: var(--soft); }
.share { margin-top: 48px; padding-top: 24px; border-top: 2px dashed var(--line); }
.share h2 { font-size: 24px; margin-bottom: 14px; }

/* --- Shows ----------------------------------------------------- */

.show { display: grid; grid-template-columns: 76px 1fr; gap: 4px 20px; align-items: start; padding: 22px 0; border-top: 2px dashed var(--line); }
.show-date { font-family: var(--display); text-align: center; line-height: .9; color: var(--pink); }
.show-date .d { display: block; font-size: 44px; }
.show-date .d--word { font-size: 26px; padding-top: 8px; }
.show-date .m { display: block; font-size: 20px; color: var(--pencil); margin-top: 2px; }
.show-date .y { display: block; font: 500 13px var(--body); color: var(--soft); margin-top: 6px; }
.show h3 { font-size: 24px; }
.show p { color: var(--soft); margin-top: 4px; }
.show p a { font-weight: 700; }
.show--big { border: 2px dashed var(--teal); border-radius: 24px; padding: 24px 20px; margin-bottom: 8px; }
.show--big .show-date .d { font-size: 60px; }
.show--big h3 { font-size: clamp(26px, 6vw, 34px); }
.show--big + .show { border-top: none; }
.shows-list .show:last-child { border-bottom: 2px dashed var(--line); }
.shows-list .show--big { margin: 12px 0; }
.shows-list .show--big:last-child { border-bottom: 2px dashed var(--teal); }
.shows-list .show--big + .show { border-top: none; }

/* --- Music ----------------------------------------------------- */

.embed { margin: 18px 0 8px; border-radius: 14px; overflow: hidden; background: var(--surface); }
.embed iframe { display: block; border: 0; width: 100%; }

.videos { display: grid; gap: 32px; margin-top: 18px; }
.video { max-width: 100%; }
.video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s; }
.video-thumb:hover img { opacity: 1; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: var(--pink); color: var(--black); font-size: 28px; display: grid; place-items: center; padding-left: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.video-thumb:hover .video-play { background: var(--paper); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.video figcaption { margin-top: 10px; }
.video figcaption strong { display: block; font-weight: 500; }
.video figcaption span { color: var(--soft); font-size: 15px; }

/* --- About ----------------------------------------------------- */

.members { display: grid; grid-template-columns: 1fr; gap: 0; }
.member { padding: 22px 0; border-top: 2px dashed var(--line); }
.member-photo { border-radius: 14px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 1; background: var(--surface); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 28px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.member .founder { font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--teal); }
.member .role { color: var(--pink); font-weight: 500; margin: 4px 0 10px; }
.member p { color: var(--paper); font-size: 16px; line-height: 1.6; }

.timeline { list-style: none; border-left: 3px solid var(--line); margin: 8px 0 0 8px; padding-left: 26px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--pink); }
.timeline .yr { font-family: var(--display); color: var(--pink); font-size: 22px; line-height: 1; }
.timeline h3 { font: 500 18px/1.35 var(--body); margin: 4px 0 2px; letter-spacing: 0; }
.timeline p { color: var(--soft); font-size: 16px; }


/* --- About: the crew ticker ------------------------------------ */

.crew { margin-top: 6px; }
.crew-bar { display: flex; align-items: center; gap: 10px; }
.crew-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--teal); background: none; color: var(--paper); font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.crew-arrow:hover { background: var(--teal); color: var(--black); }
.crew-label { flex: 1; min-width: 0; text-align: center; font-family: var(--display); font-size: clamp(23px, 5.6vw, 34px); line-height: 1.05; }
.crew-dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.crew-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--soft); background: none; }
.crew-dot[aria-selected="true"] { background: var(--pink); border-color: var(--pink); }
.crew-dot:hover { border-color: var(--paper); }

.crew-stage { position: relative; margin-top: 20px; }
.crew.is-animated .crew-stage { transition: height .34s cubic-bezier(.4, 0, .2, 1); }
.crew-panel .role { color: var(--pink); font-weight: 500; margin-bottom: 12px; }
.crew-panel .founder { font-family: var(--hand); font-weight: 600; font-size: 20px; color: var(--teal); margin-left: 8px; }
.crew-panel p { margin-bottom: 15px; max-width: 62ch; font-size: 17px; line-height: 1.6; }
.crew-panel p:last-child { margin-bottom: 0; }
.crew-name { font-size: clamp(26px, 6vw, 34px); margin-bottom: 4px; }

/* Enhanced: panels stack in one place, so the photo below never moves. */
.crew.is-ready .crew-panel { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.crew.is-ready .crew-panel.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.crew.is-ready .crew-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crew:not(.is-ready) .crew-bar, .crew:not(.is-ready) .crew-dots { display: none; }
.crew:not(.is-ready) .crew-panel + .crew-panel { margin-top: 30px; padding-top: 26px; border-top: 2px dashed var(--line); }

.crew-photo { margin-top: 26px; margin-bottom: 44px; }
.crew-frames { position: relative; line-height: 0; }
.crew-frames img { width: 100%; }
.crew-frames img + img { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .38s ease; }
.crew-frames img.is-on { opacity: 1; }
.crew-photo figcaption { position: relative; min-height: 1.15em; }
.crew-cap { position: absolute; left: 0; top: 0; white-space: nowrap; transition: left .38s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .crew-cap { transition: none; } }

/* --- Press ----------------------------------------------------- */

.clip { padding: 26px 0; border-top: 2px dashed var(--line); }
.clip:last-child { border-bottom: 2px dashed var(--line); }
.clip .src { color: var(--soft); font-size: 15px; }
.clip h2 { font-size: clamp(22px, 5vw, 28px); margin: 6px 0 10px; }
.clip blockquote { font-size: 20px; line-height: 1.45; border-left: 4px solid var(--pink); padding-left: 16px; margin: 12px 0; max-width: 40ch; }
.clip p { color: var(--soft); max-width: 60ch; }
.clip .go { font-weight: 700; display: inline-block; margin-top: 10px; }

/* --- Vote page ------------------------------------------------- */

.vote-top { text-align: center; }
.vote-top .brain-sm { width: 168px; margin: 0 auto; aspect-ratio: 899 / 770; }
.vote-top .kicker { font-family: var(--display); font-size: clamp(21px, 5.2vw, 30px); line-height: 1.05; margin: 12px 0 0; }
.vote-top .thanks { font-family: var(--hand); font-weight: 600; color: var(--pink); font-size: clamp(36px, 9.5vw, 54px); line-height: .95; margin: 2px 0 16px; transform: rotate(-1.5deg); }
.vote-top h1 { font-size: clamp(29px, 7.2vw, 46px); margin: 0 auto 22px; max-width: 17ch; }
.vote-top .counter { font-family: var(--display); color: var(--pink); font-size: 22px; margin-top: 16px; min-height: 1.2em; }

.cadence { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border: 2px dashed var(--teal); border-radius: 18px; max-width: 520px; margin: 0 auto 24px; overflow: hidden; }
.cadence li { padding: 13px 4px; font: 500 15px/1.25 var(--body); color: var(--soft); }
.cadence li + li { border-left: 2px dashed var(--teal); }
.cadence .hot { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: clamp(15px, 4.2vw, 19px); letter-spacing: .02em; }
@media (max-width: 360px) { .cadence li { font-size: 13px; padding: 11px 2px; } }

.steps { list-style: none; counter-reset: step; margin-top: 8px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 2px dashed var(--line); }
.steps li:last-child { border-bottom: 2px dashed var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); color: var(--pink); font-size: 40px; line-height: 1; }
.steps h3 { font: 500 19px/1.3 var(--body); letter-spacing: 0; }
.steps p { color: var(--soft); margin-top: 4px; }

.qr { background: var(--paper); color: #1a1a1a; border-radius: 18px; padding: 18px 18px 16px; text-align: center; width: min(100%, 320px); margin: 48px auto 12px; transform: rotate(1.5deg); }
.qr img { width: 100%; }
.qr-cap { margin-top: 12px; }
.qr-cap .top { display: block; font: 700 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #4a4146; }
.qr-cap .mid { display: block; font-family: var(--display); font-size: clamp(26px, 8vw, 32px); line-height: 1; color: #111; margin: 6px 0 7px; }
.qr-cap .bot { display: block; font: 500 13px/1.35 var(--body); color: #4a4146; }
.qr-note { text-align: center; color: var(--soft); font-size: 15px; }

.why { margin-top: 44px; padding: 24px; border: 2px dashed var(--teal); border-radius: 24px; }
.why h2 { font-size: 28px; margin-bottom: 8px; }
.why p { margin-bottom: 12px; }
.why p:last-child { margin-bottom: 0; }

/* --- Contact --------------------------------------------------- */

.contact-main { margin-bottom: 8px; }
.contact-main .label { color: var(--soft); }
.contact-main a { font-family: var(--display); font-size: clamp(19px, 5.3vw, 38px); color: var(--pink); text-decoration: none; word-break: break-word; }
.contact-main a:hover { color: var(--paper); }
.post-hero { width: 100%; border-radius: 14px; margin: 8px 0 24px; }
@media (max-width: 480px) {
  .show h3 { font-size: 22px; text-wrap: wrap; }
}
.post-page .page-title { margin-bottom: 22px; }

/* --- 404 ------------------------------------------------------- */
.plain-links { list-style: none; padding: 0; margin: 22px 0 0; }
.plain-links li { margin-bottom: 12px; font-size: 19px; }
