/* Palette pulled from the Halfway Home cover painting + their gig posters */
:root {
  --night: #0e1a22;
  --deep: #1f2e3e;
  --dusk: #3b4a60;
  --moon: #f2b28f;
  --cream: #efe6d6;
  --orange: #e0782f;
  --red: #d9432f;
  --sky: #6cb4ee;
  --ink: #1b2430;
  --card-blue: #3c66a0;
  --card-title: #0a3a8f;
  --card-name: #5cc0ff;
  --card-ink: #050b1f;
  --display: "Lilita One", "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  --mono: "Courier Prime", Courier, "Courier New", monospace;
  --body: "Source Serif 4", Georgia, serif;
  --hand: "Nanum Pen Script", cursive;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: .95; margin: 0 0 .5em; }
h2 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moon); margin-bottom: .6em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section-night { background: var(--deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top));
  transition: background .25s;
}
.nav.scrolled { background: rgb(14 26 34 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* blur would trap the fixed menu overlay inside the bar, so drop it while open */
.nav.open { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-mark { font: 1.35rem var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .03em; position: relative; z-index: 2; }
.menu-btn {
  position: relative; z-index: 2; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; display: grid; place-content: center; gap: 7px;
}
.menu-btn span { display: block; width: 26px; height: 2.5px; background: var(--cream); border-radius: 2px; transition: transform .25s; }
.nav.open .menu-btn span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-4.75px) rotate(-45deg); }
.nav-links {
  position: fixed; inset: 0; z-index: 1; background: var(--night);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 28px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.nav.open .nav-links { opacity: 1; visibility: visible; }
.nav-links a { font: clamp(2.6rem, 13vw, 3.4rem)/1.15 var(--display); text-transform: uppercase; text-decoration: none; }
.nav-links a:nth-child(odd) { color: var(--moon); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 96px var(--gutter) calc(72px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgb(14 26 34 / .55) 0%, rgb(14 26 34 / .15) 35%, rgb(14 26 34 / .85) 78%, var(--night) 100%),
    var(--hero-img, none) 50% 40% / cover no-repeat,
    var(--deep);
}
.hero-inner { width: 100%; max-width: 1080px; margin: 0 auto; }
.hero-kicker { font: 700 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--moon); }
.wordmark { font-size: clamp(3.4rem, 20vw, 10rem); line-height: .85; margin: 0 0 24px; color: var(--cream); text-shadow: 0 4px 30px rgb(0 0 0 / .4); }
.hero-release { border-left: 3px solid var(--orange); padding-left: 14px; margin-bottom: 28px; }
.hero-release p { margin: 0; }
.hero-release .mono { font-size: .95rem; letter-spacing: .04em; }
.hero-title { font: clamp(1.9rem, 8vw, 2.8rem)/1.1 var(--mono); font-weight: 700; color: var(--sky); }
.countdown { color: var(--moon); font-weight: 700; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.scroll-hint { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  text-decoration: none; font: 1.15rem var(--display); letter-spacing: .04em; text-transform: uppercase;
  padding: 0 24px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-orange { background: var(--orange); color: var(--night); }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-small { min-height: 44px; font-size: 1rem; padding: 0 18px; }

/* ---------- Release ---------- */
.release { display: grid; gap: 36px; }
.cover { margin: 0; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px rgb(0 0 0 / .5); }
.cover figcaption { font-size: .8rem; opacity: .6; margin-top: 10px; }
.release-title { font: 700 clamp(2.4rem, 10vw, 3.4rem)/1 var(--mono); color: var(--sky); text-transform: none; letter-spacing: -.01em; }
.lede { font-size: 1.25rem; line-height: 1.45; color: var(--cream); }
.release-info p:not(.eyebrow):not(.lede) { opacity: .8; }
.stream-links { display: grid; gap: 10px; margin: 28px 0; }
.stream {
  display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 20px;
  border-radius: 12px; background: var(--cream); color: var(--ink); text-decoration: none; font: 1.2rem var(--display); letter-spacing: .03em;
}
.stream span { font: 700 .85rem var(--mono); letter-spacing: 0; }
.stream-soon { background: transparent; color: var(--cream); border: 2px solid rgb(239 230 214 / .25); }
.stream-soon span { color: var(--moon); }
.credits { display: grid; gap: 8px; margin: 0; font-size: .9rem; border-top: 1px dashed rgb(239 230 214 / .25); padding-top: 18px; }
.credits div { display: flex; justify-content: space-between; gap: 12px; }
.credits dt { opacity: .6; }
.credits dd { margin: 0; color: var(--sky); font-weight: 700; text-align: right; }
.video { margin-top: 48px; }
.video-frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Shows ---------- */
.shows { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.show {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: center;
  background: var(--night); border-radius: 14px; padding: 18px;
  border: 2px solid rgb(224 120 47 / .5);
}
.show-date { text-align: center; line-height: 1; grid-row: span 2; align-self: start; }
.show-date span { display: block; font: 700 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.show-date strong { font: 2.6rem var(--display); font-weight: 400; }
.show-info p { margin: 0; }
.show-title { font: 700 .85rem var(--mono); color: var(--moon); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px !important; }
.show-venue { font: 1.45rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.show-city { opacity: .7; font-size: .95rem; }
.show .btn, .show-soon { grid-column: 2; justify-self: start; }
.show-soon { font-size: .8rem; opacity: .6; text-transform: uppercase; letter-spacing: .1em; }
.show-empty { opacity: .8; }
.shows-note { font: .9rem/1.6 var(--mono); opacity: .65; max-width: 60ch; }

/* ---------- About: styled after their Halfway Home credits card ---------- */
.card-section { background: var(--card-blue); color: var(--card-ink); font-family: var(--mono); }
.about { max-width: 760px; }
.about h2 { font: 700 clamp(2.2rem, 9vw, 3.4rem)/1.05 var(--mono); text-transform: none; letter-spacing: -.01em; color: var(--card-title); }
.about-line { font-size: 1.1rem; line-height: 1.55; max-width: 62ch; margin-bottom: 32px; }
.members { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.members li { font-size: clamp(1.1rem, 4.6vw, 1.45rem); line-height: 1.3; }
.member-name { color: var(--card-name); font-weight: 700; display: block; }

/* ---------- Photos: swipeable row on phones ---------- */
.swipe-hint { font-size: .85rem; color: var(--moon); margin: -8px 0 16px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4/5; overflow: hidden; border-radius: 12px; background: var(--night); scroll-snap-align: start; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 90vh; }
.lightbox::backdrop { background: rgb(8 14 19 / .94); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox-close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; font-size: 36px; background: none; border: 0; color: var(--cream); cursor: pointer; }

/* ---------- Contact ---------- */
.contact-section { background: var(--night); }
.contact { text-align: center; }
.contact p:not(.eyebrow) { opacity: .8; }
.contact-email { display: block; font: clamp(1rem, 5.4vw, 1.6rem) var(--display); color: var(--orange); margin: 4px 0 28px; text-decoration: none; white-space: nowrap; }
.contact .btn { width: 100%; max-width: 360px; font-size: 1rem; }

.footer { background: var(--night); text-align: center; padding: 32px var(--gutter) calc(64px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(239 230 214 / .1); }
.footer p { margin: 0; }
.footer .mono { font-size: .8rem; opacity: .5; }

/* ---------- Bigger screens ---------- */
@media (min-width: 820px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .section { padding: 112px 0; }
  .menu-btn { display: none; }
  .nav-links { position: static; opacity: 1; visibility: visible; background: none; flex-direction: row; gap: 28px; padding: 0; }
  .nav-links a, .nav-links a:nth-child(odd) { font: 700 .85rem var(--mono); letter-spacing: .14em; color: var(--cream); }
  .nav-links a:hover { color: var(--moon); }
  .hero { align-items: center; }
  .hero-actions { display: flex; }
  .scroll-hint { display: block; position: absolute; bottom: 24px; left: 50%; translate: -50% 0; font-size: 1.6rem; text-decoration: none; opacity: .6; }
  .release { grid-template-columns: minmax(0, 440px) 1fr; gap: 64px; align-items: center; }
  .stream-links { grid-template-columns: 1fr 1fr; }
  .show { grid-template-columns: 80px 1fr auto; padding: 22px 28px; }
  .show-date { grid-row: auto; align-self: center; }
  .show .btn, .show-soon { grid-column: auto; justify-self: end; }
  .member-name { display: inline; margin-right: .5em; }
  .swipe-hint { display: none; }
  .gallery {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible;
    max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter);
  }
  .gallery button { aspect-ratio: 4/3; }
  .gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery button:hover img { transform: scale(1.04); }
}

/* If the web fonts don't load (e.g. iMessage file preview), fall back to a bold
   system font instead of a thin one. Lilita One has only one weight, and
   font-synthesis: none stops the browser from faking a bolder version of it. */
h1, h2, .nav-mark, .nav-links a, .btn, .stream, .show-date strong, .show-venue, .contact-email {
  font-weight: 700;
  font-synthesis: none;
}
