/* Insomniacs — main.css. Colours come from :root vars set by the Customizer. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--highlight); }
img { max-width: 100%; height: auto; display: block; }

/* Decorative bird */
.bird {
  position: fixed; right: -80px; top: 50%; transform: translateY(-50%);
  width: 55vw; max-width: 700px; height: 80vh; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--ghost) 0%, transparent 70%);
  opacity: .5; transition: transform .6s cubic-bezier(.25,.1,.25,1), right .6s cubic-bezier(.25,.1,.25,1);
}
/* .bird--shifted has no effect at desktop widths — the slide-off-to-the-right behavior is mobile-only, see the @media (max-width: 760px) block below. */

/* Top bar — carries the artist name */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 6vw; background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(6px);
}
.topbar__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(33px, 4.8vw, 57px); line-height: 1; letter-spacing: .01em; margin: 0;
}
.topbar__links { font-size: 12px; }
.topbar__links a { margin-left: 16px; color: var(--text); }

/* Full-width content */
.box {
  position: relative; z-index: 1;
  width: 100%; min-height: 100vh;
  padding: 120px 6vw 120px; overflow-x: hidden;
}
.artist-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 84px); line-height: 1; text-align: center;
  margin-bottom: 30px; letter-spacing: .01em;
}
.site-section { display: none; opacity: 0; transition: opacity .35s ease; }
.site-section.is-active { display: block; opacity: 1; }
.sec-title { font-family: var(--font-display); font-size: 42px; font-weight: 400; margin-bottom: 26px; }

/* Hero — full-bleed B&W wordmark opening */
.concerts, .press, .about__hero, .about__bio, .about__lineup { max-width: 860px; }
.concerts, .press { margin: 0; }
.hero--full {
  position: relative; overflow: hidden;
  margin: -120px -6vw 0;            /* break out of .box padding to go edge-to-edge */
  min-height: 90vh; display: flex; align-items: flex-end;
  /* No opaque fallback fill — when there's no artist photo, the fixed .bird decoration shows through. */
}
.hero__bg {
  /* Cover the hero's height only, pinned to the right edge — never stretched full-width. */
  position: absolute; top: 0; bottom: 0; right: 0; left: auto;
  width: auto; height: 100%; max-width: 100%; object-fit: cover; object-position: right center;
  filter: grayscale(1) contrast(1.06) brightness(.82);   /* force monochrome regardless of source */
  z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 6vw 7vh; }
.hero__wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(54px, 12vw, 168px); line-height: .9; letter-spacing: .01em;
  text-transform: none;
}
.hero__quote { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.3; margin-top: 20px; max-width: 660px; }
.hero__credit { color: var(--accent); font-size: 13px; margin-top: 12px; }
.hero__tagline { margin-top: 22px; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--accent); }
.hero__quote2 { font-family: var(--font-display); font-style: italic; font-size: 29px; margin: 40px auto 0; max-width: 760px; text-align: center; opacity: .8; }
.hero__tagline-lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.25; letter-spacing: .01em; margin-top: 18px; color: var(--highlight); }
.hero__welcome { font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin-top: 16px; color: var(--text); opacity: .88; }
.hero__welcome strong { font-weight: 700; }

/* B&W press filmstrip under the hero */

/* Concerts */
.concerts { list-style: none; }
.concert { padding: 14px 0; border-bottom: 1px solid var(--ghost); }
.concert__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.concert__date { min-width: 110px; color: var(--accent); }
.concert__venue { flex: 1; }
.concert__tix { font-family: var(--font-body); font-size: 13px; background: none; border: 1px solid var(--text); color: var(--text); padding: 3px 12px; border-radius: 2px; text-decoration: none; }
.concert__info { font-family: var(--font-body); font-size: 13px; background: none; border: none; color: var(--text); padding: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.concert__info-arrow { display: inline-block; transition: transform .2s ease; }
.concert__info[aria-expanded="true"] .concert__info-arrow { transform: rotate(180deg); }
.concert__accordion { width: 100%; overflow: hidden; }
.concert__accordion-inner { padding: 16px 0 4px; font-size: 15px; max-width: 720px; }
.concert__accordion-inner p { margin-bottom: 1em; }
.concert__accordion-inner ul, .concert__accordion-inner ol { margin: 0 0 1em 1.4em; }
.concert__accordion-inner li { margin-bottom: .3em; }
.concert__accordion-inner h1, .concert__accordion-inner h2, .concert__accordion-inner h3, .concert__accordion-inner h4 { font-family: var(--font-display); color: var(--accent); margin: .6em 0 .4em; line-height: 1.1; }
.concert__accordion-inner img { max-width: 100%; height: auto; margin: 1em 0; }
.concert__accordion-inner a { text-decoration: underline; }

/* Projects — grid of cards */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); gap: 22px; }
.project-card { cursor: pointer; text-align: left; outline: none; }
.project-card:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.project-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; margin-bottom: 12px; transition: opacity .2s; }
.project-card:hover .project-card__img { opacity: .85; }
.project-card__name { font-family: var(--font-display); font-size: 29px; font-weight: 400; }
.project-card__quote { font-style: italic; color: var(--accent); font-size: 14px; margin-top: 4px; }

/* Project detail modal */
.project-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.project-modal[hidden] { display: none; }
.project-modal__inner { position: relative; background: var(--bg); border: 1px solid var(--ghost); border-radius: 6px; max-width: 680px; width: 100%; max-height: 86vh; overflow: auto; padding: 34px; }
.project-modal__close { position: absolute; top: 10px; right: 16px; background: none; border: none; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.project-modal img { width: 100%; border-radius: 4px; margin-bottom: 18px; }
.project__name { font-family: var(--font-display); font-size: 36px; font-weight: 400; }
.project__quote { font-style: italic; color: var(--accent); margin: 10px 0; }
.project__credit { font-style: normal; font-size: 13px; }
.project__hero { font-size: 18px; margin: 14px 0; }
.project__bio { margin-top: 12px; }
.project__lineup { color: var(--accent); font-size: 14px; margin-top: 14px; }
body.modal-open { overflow: hidden; }

/* About — two columns: image left, text right */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid__media { position: sticky; top: 110px; }
.about__photo { width: 100%; border-radius: 4px; }
.about-grid__text { max-width: none; }
.about-grid .about__hero, .about-grid .about__bio, .about-grid .about__lineup { max-width: none; }
.about__quote { font-family: var(--font-display); font-style: italic; font-size: 34px; }
.about__hero { font-size: 18px; margin: 20px 0; }
.about__lineup { color: var(--accent); margin: 16px 0; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid__media { position: static; }

  /* Bird — 3x bigger on mobile, still entering from the right, only this large on Home.
     Shift uses `right` directly (not a compounding transform) so "1/4 visible" is exact
     regardless of the Home baseline offset. */
  .bird { width: 130vw; max-width: none; height: 95vh; right: calc(-10vw - 50px); opacity: 1; }
  /* Non-Home sections: bird slides further right, leaving exactly 1/4 of its width (32.5vw of 130vw) visible. Faded back down, unchanged from before. */
  .bird--shifted { right: -97.5vw; opacity: .6; }

  /* Concerts listing needs a legible surface over the (much bigger) bird on mobile. */
  .concerts { background: rgba(255, 255, 255, .2); border-radius: 4px; padding: 10px 14px; }

  /* Bandcamp's 600px desktop minimum overflows any phone screen — drop it and fill the column instead. */
  .rudi-embed-frame--bandcamp { min-width: 0; width: 100%; height: 300px; }

  /* Hero text — top of the page, 20px under the fixed topbar, instead of bottom-aligned. */
  .hero--full { align-items: flex-start; }
  .hero__inner { padding-top: calc(72px + 20px); }
}

/* Releases — card grid + modal (mirrors project-card/project-modal) */
.releases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.release-card { cursor: pointer; text-align: left; outline: none; }
.release-card:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.release-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; margin-bottom: 12px; transition: opacity .2s; }
.release-card:hover .release-card__img { opacity: .85; }
.release-card__title { font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.release-card__year { color: var(--accent); font-size: 13px; }

.release-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.release-modal[hidden] { display: none; }
.release-modal__inner { position: relative; background: var(--bg); border: 1px solid var(--ghost); border-radius: 6px; max-width: 820px; width: 100%; max-height: 86vh; overflow: auto; padding: 34px; }
.release-modal__close { position: absolute; top: 10px; right: 16px; background: none; border: none; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.release-modal__top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.release-modal__media img { width: 100%; border-radius: 4px; }
.release-modal__meta { display: flex; flex-direction: column; gap: 4px; }
.release-modal__body { margin-top: 26px; }
.release__title { font-family: var(--font-display); font-size: 78px; line-height: 1.05; font-weight: 400; }
.release__artist { color: var(--accent); font-size: 14px; margin-top: 2px; }
.release__year { color: var(--accent); font-size: 13px; font-weight: 700; }
.release__project { font-size: 14px; margin-top: 4px; font-weight: 700; }
.release__description { font-size: 15px; line-height: 1.5; }
.release__description p { margin: 0 0 12px; }
.release__smartlink { display: inline-block; margin-top: 14px; border: 1px solid var(--ghost); border-radius: 999px; padding: 8px 18px; font-size: 13px; color: var(--text); text-decoration: none; width: fit-content; }
.release__smartlink:hover { border-color: var(--accent); color: var(--accent); }
.release__logos { display: flex; gap: 12px; margin-top: 12px; }
.release__logo { color: var(--text); width: 22px; height: 22px; display: inline-flex; transition: color .15s ease; }
.release__logo svg { width: 100%; height: 100%; }
.release__logo:hover { color: var(--accent); }
.release__credits { margin-top: 22px; font-size: 13px; color: var(--text); }
.release__credits h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; }
.release__credits p { margin: 0 0 8px; }
@media (max-width: 600px) {
  .release-modal__top { grid-template-columns: 1fr; }
}

/* Platform embeds — click-to-load, ghost-bordered pills */
.rudi-embeds { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.rudi-embed-frame { display: block; width: 100%; border: 0; border-radius: 6px; }
.rudi-embed-frame--bandcamp { min-width: 600px; height: 470px; }
.rudi-embed-frame--youtube { aspect-ratio: 16 / 9; height: auto; }
.rudi-embed-frame--spotify { height: 352px; }
.rudi-embed-frame--generic { height: 300px; }

/* Media */
.press__item { border-left: 2px solid var(--accent); padding: 6px 0 6px 18px; margin-bottom: 22px; font-family: var(--font-display); font-style: italic; font-size: 20px; }
.press__item cite { display: block; font-style: normal; font-family: var(--font-body); font-size: 13px; color: var(--accent); margin-top: 8px; }
.videos { display: grid; gap: 26px; max-width: 1280px; }
.video { max-width: 1280px; }
.video__title { font-family: var(--font-display); font-weight: 400; margin-bottom: 8px; }
.video__embed { position: relative; aspect-ratio: 16/9; }
.video__embed :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.shot figcaption { font-size: 11px; color: var(--accent); margin-top: 5px; }

/* Bottom bar */
.bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 22px; min-height: 64px;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-top: 1px solid var(--ghost);
}
.bottombar__nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-btn {
  background: transparent; color: var(--text); border: 1px solid var(--ghost);
  border-radius: 4px; padding: 7px 15px; font: inherit; font-size: 13px; cursor: pointer;
  min-height: 40px;
}
.nav-btn.is-active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.player { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; }
.player button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; min-width: 32px; min-height: 32px; }
.player__title { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bottombar__right { display: flex; align-items: center; gap: 14px; }
.bottombar__social { display: flex; align-items: center; gap: 12px; }
.bottombar__social a { color: var(--text); display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; transition: color .2s; }
.bottombar__social a:hover { color: var(--accent); }
.bottombar__social svg { width: 27px; height: 27px; }
.bottombar__textlink {
  background: none; border: none; cursor: pointer; padding: 6px 0; font: inherit;
  font-size: 13px; color: color-mix(in srgb, var(--text) 60%, transparent);
  white-space: nowrap;
}
.bottombar__textlink:hover { color: var(--text); }

/* Burger toggle — hidden by default, shown only when nav is collapsed (see breakpoint below) */
.bottombar__burger {
  display: none; background: none; border: 1px solid var(--ghost); border-radius: 4px;
  cursor: pointer; padding: 8px; min-width: 40px; min-height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.bottombar__burger span { width: 20px; height: 2px; background: var(--text); display: block; }

@media (max-width: 600px) {
  .releases, .gallery, .projects-grid { grid-template-columns: 1fr; }
  .hero__quote { font-size: 30px; }
  .bottombar { gap: 10px; }
  .player { width: 100%; margin-left: 0; order: 3; }
  .bottombar__right { width: 100%; order: 4; flex-wrap: wrap; row-gap: 8px; justify-content: flex-start; }
}

/* Collapse the nav behind a hamburger below ~760px — five/six nav buttons plus the
   player and social icons don't fit a phone-width bottombar without wrapping into a
   crowded multi-row bar. Player and social icons stay visible; only the section nav
   moves into a toggleable panel. */
@media (max-width: 760px) {
  .bottombar__burger { display: flex; }
  .bottombar__nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 9;
    flex-direction: column; gap: 0; padding: 8px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    border-top: 1px solid var(--ghost);
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .bottombar__nav.is-open { display: flex; }
  .bottombar__nav .nav-btn {
    width: 100%; text-align: left; border: none; border-radius: 0;
    padding: 12px 10px; border-bottom: 1px solid var(--ghost);
  }
  .bottombar__nav .nav-btn.is-active { background: none; color: var(--accent); border-color: var(--ghost); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .bird { transition: none !important; }
}

/* ===== COO monochrome overrides ===== */
/* Remove all border radius */
.nav-btn, .project-card__img, .release__cover, .about__photo, .project-modal__inner,
.hero__image, .shot img, .project-modal img, .project__img, img,
.release-card__img, .release-modal__inner, .release-modal img { border-radius: 0; }

/* Media: press quotes left-aligned, not centered */
.press { margin: 0; text-align: left; }
.press__item { text-align: left; }

/* Salon gallery — masonry columns, ~4 wide, 3em gap */
.gallery { display: block; column-width: 240px; column-gap: 3em; margin-top: 26px; }
.shot { break-inside: avoid; margin-bottom: 3em; }

/* logo link, music width, about variants, lineup grid */
.topbar__name a { color: inherit; text-decoration: none; }
.releases { max-width: 860px; }
.about-textonly { max-width: 860px; }
.about-lineup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 0 0 32px; }
.about-lineup-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* Generic Page template */
.page-content { max-width: 860px; }
.page-body { font-size: 17px; }
.page-body p { margin-bottom: 1em; }
.page-back { max-width: 860px; margin-top: 40px; }
