/* Time Machine PDX
   Recreated from the Squarespace site for static hosting on Cloudflare. */

:root {
  --blue: #0303ab;
  --blue-soft: #4b4bc8;
  --ink: #000;
  --paper: #fff;
  --field: #e0dfdb;
  --header-h: 80px;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--ink);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 4vw;
}
.site-nav { display: flex; gap: 1em; font-size: 19px; }
.site-nav a { text-decoration: none; padding: 2px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.site-title { font-size: 28px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.social { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.social a { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; justify-self: end; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #000; margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 799px) {
  :root { --header-h: 64px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .site-nav, .site-header .social { display: none; }
  .site-title { font-size: 22px; }
  .menu-toggle { display: block; }
  .mobile-menu {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6em;
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 49;
    font-size: 30px; opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .mobile-menu a { text-decoration: none; }
  .mobile-menu .social { margin-top: 1em; justify-content: center; }
  .mobile-menu .social svg { width: 22px; height: 22px; }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 700 17px/1 var(--font);
  padding: 18px 40px; border-radius: 300px; text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff; border: 2px solid #fff;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; }
.btn-outline { background: transparent; }
.btn-white { background: #fff; color: #000; border-color: #fff; }

/* ---------- Film grain ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .14; mix-blend-mode: overlay;
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); }
}

/* ---------- Home: hero ---------- */
.hero { background: #000; height: min(825px, 100vw); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Home: intro ---------- */
.intro { background: #000; color: #fff; padding: 72px 6vw 110px; }
.intro-grid {
  max-width: 780px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 84px; align-items: start;
}
.intro-text { font-size: 22px; line-height: 1.5; margin-bottom: 1.2em; }
.intro video { width: 100%; aspect-ratio: 9 / 16; background: #111; object-fit: cover; }
@media (max-width: 767px) {
  .intro { padding: 48px 7vw 64px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-text { font-size: 19px; }
  .intro video { max-width: 360px; margin: 0 auto; }
}

/* Audio player */
.audio-player {
  display: flex; align-items: stretch; background: #222; color: #fff; max-width: 336px; min-height: 60px;
  border: 0; padding: 0; font: inherit; text-align: left; width: 100%;
}
.audio-player .ap-btn {
  flex: 0 0 60px; display: flex; align-items: center; justify-content: center;
  background: #1a1a1a; border: 0; color: #fff; cursor: pointer;
}
.audio-player .ap-btn svg { width: 16px; height: 16px; fill: currentColor; }
.audio-player .ap-meta { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ap-title { font-size: 14px; line-height: 1.3; }
.ap-author { font-size: 11px; color: #aaa; line-height: 1.3; }
.ap-progress { height: 3px; background: #444; margin-top: 8px; position: relative; cursor: pointer; display: none; }
.ap-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; }
.ap-time { font-size: 11px; color: #aaa; margin-top: 4px; display: none; }
.audio-player.is-active .ap-progress, .audio-player.is-active .ap-time { display: block; }

/* ---------- Home: events calendar ---------- */
.events {
  color: #fff; padding: 90px 4vw 110px; text-align: center;
  background:
    radial-gradient(ellipse 45% 40% at 85% 85%, rgba(120,120,120,.45), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 15%, rgba(90,90,90,.35), transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(60,60,60,.35), transparent 70%),
    linear-gradient(180deg, #000 0%, #111 45%, #3a3a3a 100%);
}
.section-heading { font-size: clamp(36px, 4.2vw, 53px); font-weight: 700; margin-bottom: 1em; }
.calendar { max-width: 872px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.cal-head h3 { font-size: 28px; margin: 0; }
.cal-nav { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 10px; opacity: .8; }
.cal-nav:hover { opacity: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: 11px; letter-spacing: .1em; opacity: .7; padding: 6px 0 10px; }
.cal-day {
  position: relative; aspect-ratio: 1.55; background: rgba(255,255,255,.055);
  text-align: right; font-size: 11px; padding: 6px 8px; color: rgba(255,255,255,.75); overflow: hidden;
}
.cal-day.is-empty { background: transparent; }
.cal-day.has-event { padding: 0; cursor: pointer; border: 0; font: inherit; color: #000; }
.cal-day.has-event img { width: 100%; height: 100%; object-fit: cover; }
.cal-day.has-event .num {
  position: absolute; top: 6px; right: 6px; background: #fff; color: #000;
  font-size: 11px; line-height: 1; padding: 4px 5px; min-width: 18px; text-align: center;
}
.cal-day.has-event.no-img { background: var(--blue); }
.cal-day.is-today:not(.has-event) { outline: 1px solid rgba(255,255,255,.4); }
@media (max-width: 600px) {
  .cal-day { aspect-ratio: 1; padding: 4px; font-size: 10px; }
  .cal-day.has-event .num { top: 3px; right: 3px; font-size: 10px; padding: 3px 4px; }
}

/* Event modal */
.modal { border: 0; padding: 0; max-width: min(560px, 92vw); width: 100%; background: #fff; color: #000; }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.modal-body { padding: 24px 28px 30px; text-align: left; }
.modal-body h3 { font-size: 26px; margin-bottom: .4em; }
.modal-body .meta { font-size: 15px; line-height: 1.5; margin-bottom: 1em; }
.modal-body .desc { font-size: 15px; }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 0; font-size: 22px; line-height: 1; cursor: pointer;
}

/* ---------- Home: band ---------- */
.band { background: #000; color: #fff; padding: 80px 4vw 90px; text-align: center; }
.band img { width: 100%; max-width: 1180px; margin: 0 auto; }
.band-names {
  max-width: 1180px; margin: 30px auto 0; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-weight: 700; font-size: 16px;
}
@media (max-width: 700px) { .band-names { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Home: reviews ---------- */
.reviews { background: #fff; color: #000; padding: 150px 4vw; position: relative; text-align: center; }
.review-track { max-width: 820px; margin: 0 auto; position: relative; min-height: 200px; }
.review { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.review.is-active { opacity: 1; pointer-events: auto; position: relative; }
.review blockquote { margin: 0 0 .9em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; }
.review cite { font-style: normal; font-size: 15px; }
.review-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue-soft); color: #fff; display: flex; align-items: center; justify-content: center;
}
.review-arrow svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.5; }
.review-arrow.prev { left: 3vw; }
.review-arrow.next { right: 3vw; }
@media (max-width: 700px) {
  .reviews { padding: 90px 4vw 120px; }
  .review-arrow { top: auto; bottom: 40px; transform: none; }
  .review-arrow.prev { left: calc(50% - 56px); }
  .review-arrow.next { right: calc(50% - 56px); }
}

/* ---------- Home: book us ---------- */
.book {
  position: relative; overflow: hidden; color: #fff; padding: 110px 4vw 130px;
  background: linear-gradient(160deg, #000 0%, #000 18%, #00003a 45%, #000080 80%, #00009a 100%);
}
.book .iso {
  position: absolute; inset: -20%; z-index: 0; opacity: .55; pointer-events: none;
  background:
    repeating-linear-gradient(30deg, rgba(0,0,0,.55) 0 60px, transparent 60px 120px),
    repeating-linear-gradient(150deg, rgba(0,0,0,.45) 0 60px, transparent 60px 120px),
    repeating-linear-gradient(90deg, rgba(10,10,120,.35) 0 104px, transparent 104px 208px);
  animation: iso-drift 40s linear infinite;
}
.book .glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(150deg, transparent 58%, rgba(40,40,255,.55) 58.3%, transparent 58.8%),
    linear-gradient(30deg, transparent 70%, rgba(40,40,255,.45) 70.3%, transparent 70.7%),
    linear-gradient(150deg, transparent 82%, rgba(40,40,255,.35) 82.3%, transparent 82.7%);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes iso-drift { to { transform: translate(208px, 120px); } }
@keyframes glow-pulse { from { opacity: .5; } to { opacity: 1; } }
.book-grid {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start;
}
.book h2 { font-size: clamp(40px, 4.2vw, 53px); }
.book-copy { max-width: 450px; }
.book-copy p { font-size: 16px; }
.book-copy .btn { margin-top: .8em; }
@media (max-width: 800px) {
  .book { padding: 80px 6vw 90px; }
  .book-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; font-size: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form .label { font-size: 15px; margin-bottom: 4px; padding: 0; }
.form label { display: block; font-size: 12px; margin-bottom: 4px; }
.form .req { opacity: .7; margin-left: 4px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: 16px var(--font); color: #000; background: var(--field);
  border: 0; border-radius: 300px; padding: 12px 18px; outline: none;
}
.form textarea { border-radius: 24px; min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 2px currentColor; }
.form .choice { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0 0; cursor: pointer; }
.form .choice input { width: 18px; height: 18px; accent-color: #fff; margin: 0; }
.form .submit-row { text-align: center; }
.form button[type="submit"] {
  font: 700 14px/1 var(--font); letter-spacing: .05em; text-transform: uppercase;
  padding: 18px 34px; border-radius: 300px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer;
}
.form button[type="submit"]:hover { background: rgba(255,255,255,.1); }
.form button[disabled] { opacity: .5; cursor: wait; }
.form-status { font-size: 15px; margin: 0; }
.form-status:empty { display: none; }
.form-status.error { color: #ffb3b3; }
.form-done { font-size: 20px; padding: 30px 0; }
.hp { display: none !important; }

/* ---------- Home: subscribe ---------- */
.subscribe {
  position: relative; color: #fff; text-align: center; padding: 140px 6vw;
  background: #0a1530 url("../images/subscribe-delorean.webp") center / cover no-repeat fixed;
}
.subscribe::before { content: ""; position: absolute; inset: 0; background: rgba(0, 10, 40, .35); }
.subscribe > * { position: relative; }
.subscribe h2 { font-size: 34px; margin-bottom: .4em; }
.subscribe p { max-width: 480px; margin: 0 auto 1.6em; font-size: 15px; }
.subscribe-form { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.subscribe-form input[type="email"] {
  width: 232px; font: 14px var(--font); padding: 12px 16px; border: 0; border-radius: 0; background: #fff; color: #000;
}
.subscribe-form button {
  font: 700 14px/1 var(--font); padding: 14px 26px; border-radius: 300px; border: 0; background: #fff; color: #000; cursor: pointer;
}
.subscribe small { font-size: 12px; display: block; margin-top: 18px; }
@media (hover: none), (max-width: 800px) { .subscribe { background-attachment: scroll; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #000; color: #fff; padding: 80px 4vw;
  display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 40px;
}
.site-footer h4 { font-size: 22px; font-weight: 700; margin-bottom: .8em; }
.site-footer a { font-size: 14px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .social { justify-content: center; }
.site-footer .social svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .site-footer { grid-template-columns: 1fr; } }

/* ---------- Schedule list ---------- */
.page-light { background: #fff; }
.schedule { max-width: 1180px; margin: 0 auto; padding: 70px 4vw 100px; }
.event-row {
  display: grid; grid-template-columns: minmax(0, 412px) minmax(0, 1fr); gap: 32px;
  padding: 44px 0; border-bottom: 1px solid #eee;
}
.event-row:first-child { padding-top: 0; }
.event-thumb { position: relative; display: block; aspect-ratio: 3 / 2; background: #eee; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.datetag {
  position: absolute; top: 12px; right: 12px; background: #fff; color: #333;
  width: 44px; padding: 6px 0; text-align: center; font-size: 11px; line-height: 1.2;
}
.datetag b { display: block; font-weight: 400; font-size: 15px; }
.datetag.past::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - .5px), #333 calc(50% - .5px), #333 calc(50% + .5px), transparent calc(50% + .5px));
}
.event-row h2 { font-size: 28px; margin-bottom: .45em; }
.event-row h2 a { color: var(--blue); text-decoration: none; }
.event-row h2 a:hover { opacity: .8; }
.event-meta { font-size: 15px; line-height: 1.55; margin: 0 0 1.2em; padding: 0; list-style: none; }
.event-meta a { text-decoration: none; }
.event-meta a:hover { text-decoration: underline; }
.event-row .btn { font-size: 15px; padding: 15px 34px; }
@media (max-width: 760px) {
  .event-row { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Event detail ---------- */
.event-page { max-width: 1180px; margin: 0 auto; padding: 60px 4vw 100px; color: #000; }
.back-link { font-size: 15px; text-decoration: none; display: inline-block; margin-bottom: 50px; }
.back-link:hover { text-decoration: underline; }
.event-page h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: .8em; }
.event-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 50px; }
.event-detail .event-meta { font-size: 14px; }
.event-detail .event-meta li { margin-bottom: 12px; }
.event-body { font-size: 17px; }
.event-body img { margin-bottom: 1.4em; max-height: 520px; width: auto; }
.event-body a { color: var(--blue); word-break: break-word; }
.event-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 30px; border-top: 1px solid #eee; }
.event-pager a { text-decoration: none; font-size: 15px; max-width: 45%; }
.event-pager small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #666; }
.event-pager .next { text-align: right; margin-left: auto; }
@media (max-width: 760px) { .event-detail { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Song list ---------- */
.songs-page {
  position: relative; overflow: hidden; color: #fff; padding: 80px 5vw 110px;
  min-height: calc(100vh - var(--header-h)); background: #1b0b03;
}
.songs-page::before {
  content: ""; position: fixed; inset: var(--header-h) 0 0 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 26% 62% at 50% 100%, #e8702f 0 98%, transparent 100%),
    radial-gradient(ellipse 34% 82% at 50% 100%, #c75824 0 98%, transparent 100%),
    radial-gradient(ellipse 70% 120% at 12% 0%, rgba(150,62,20,.75) 0 25%, transparent 60%),
    radial-gradient(ellipse 70% 120% at 88% 0%, rgba(150,62,20,.6) 0 25%, transparent 60%),
    linear-gradient(180deg, #2c1307, #1b0b03);
}
.songs-page + .site-footer, .site-footer { position: relative; z-index: 3; }
.songs-page > * { position: relative; z-index: 2; }
.songs-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.songs-intro { text-align: center; max-width: 440px; justify-self: center; width: 100%; }
.songs-intro h1 { font-size: clamp(40px, 4.2vw, 53px); margin-bottom: 1.6em; }
.songs-intro > p { font-size: 15px; margin-bottom: 2em; }
.songs-intro .form { text-align: left; }
.song-list { list-style: none; margin: 0; padding: 0; text-align: center; font-size: 17px; line-height: 1.35; }
.song-list li { margin-bottom: 22px; }
.song-list span { display: block; }
@media (max-width: 800px) {
  .songs-grid { grid-template-columns: 1fr; }
  .song-list { order: 2; }
}

/* ---------- 404 ---------- */
.notfound { background: #000; color: #fff; text-align: center; padding: 140px 6vw; min-height: 60vh; }
.notfound h1 { font-size: 48px; }

@media (prefers-reduced-motion: reduce) {
  .grain::after, .book .iso, .book .glow { animation: none; }
  .review { transition: none; }
}
