/* Gabriele Donati — styled to match the original Squarespace site. Plain CSS, no build step. */
:root {
  --dark: #38383a;
  --white: #fff;
  --black: #000;
  --dim: #a9a9aa;
  --logo: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.4rem);      /* header + footer edge padding */
  --margin: clamp(2.5rem, 10.9vw, 10rem);    /* left + right margin of ALL page content: same on every page, same both sides */
  --col: 17.5rem;                          /* width of one show column (upcoming + past, home + /live) */
  --col-gap: 2.2rem;                       /* space between show columns */
  --grid-w: calc(3 * var(--col) + 2 * var(--col-gap));   /* total width of the three show columns */
}
@media (max-width: 760px) { :root { --margin: var(--pad); } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75; font-weight: 350; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid #e0a020; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); }

.wrap { padding-inline: var(--margin); max-width: 90rem; margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.dark { background: var(--dark); color: var(--white); }
.center { text-align: center; }
.dark :focus-visible { outline-color: #fff; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: flex-start; justify-content: space-between; padding: clamp(1rem, 2.5vw, 1.6rem) var(--pad); color: #fff; }
.logo { text-decoration: none; display: block; line-height: 1; }
.logo b { display: block; font: 600 clamp(1.35rem, 3vw, 1.85rem)/1 var(--logo); letter-spacing: .09em; text-transform: uppercase; }
.logo span { display: block; margin-top: .5rem; margin-left: .15rem; font: 400 clamp(.7rem, 1.4vw, .85rem)/1 var(--logo); letter-spacing: .28em; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: .9rem; padding-top: .5rem; }
.header-links a { color: #fff; text-decoration: none; display: inline-flex; }
.header-links .live { font: 400 .95rem/1 var(--logo); letter-spacing: .22em; margin-right: .3rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.header-links .live:hover, .header-links .live[aria-current="page"] { border-bottom-color: #fff; }
.header-links svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
/* phones: only the LIVE link at the top right */
@media (max-width: 640px) { .header-links a:not(.live) { display: none; } .header-links .live { margin-right: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(20rem, 75vw, 100svh); background: #000; overflow: hidden; }
.hero picture { display: block; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 17%; }
/* phones held upright: full-screen portrait photo (the picture itself is swapped in index.html) */
@media (max-width: 640px) and (orientation: portrait) {
  .hero { height: 100svh; }
  .hero img { object-position: 50% 50%; }   /* first number moves the photo left/right: 0% shows its left side, 100% its right */
}
.page-banner { position: relative; height: clamp(9rem, 23.1vw, 26rem); background: #000; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43.3%; }
/* Live banner: a light grey veil over the photo, measured from the original site (grey #acacac at about 23%) */
.page-banner::after { content: ""; position: absolute; inset: 0; background: #acacac; opacity: .227; pointer-events: none; }

/* ---------- quote ---------- */
.quote { padding: clamp(3rem, 7vw, 5.5rem) var(--margin); text-align: center; }
/* the quote breaks at fixed points (see index.html); the size follows the window so each line fits */
.quote blockquote { margin: 0 auto; font: 700 clamp(1.25rem, 2.25vw, 2rem)/1.3 var(--sans); }
@media (max-width: 899px) { .quote blockquote { max-width: 42rem; font-size: clamp(1.3rem, 3.3vw, 2rem); } .quote br.lb { display: none; } }
.quote blockquote p { margin: 0; }
.quote cite { display: block; margin-top: 1.8rem; font-style: normal; font-size: .95rem; font-weight: 400; }
.quote cite i { font-weight: 700; }

/* ---------- video + about ---------- */
/* the video box has exactly the same width as the photos and the text */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* our own picture is shown instead of the YouTube player (no title bar, no channel info) until play is pressed */
.video-poster { position: absolute; inset: 0; display: block; background: #000; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.video-poster:hover img { opacity: .9; }
.video-caption { margin: 1.4rem 0 0; text-align: right; font-style: italic; font-size: .95rem; }
.about h2 { margin: 3.5rem 0 1.8rem; }
.about p { margin: 0; }
.about-wrap { padding-bottom: clamp(2rem, 5vw, 4rem); }

/* ---------- gallery ---------- */
.gallery { display: flex; flex-direction: column; gap: var(--gap, 1.25rem); }
.g-row { display: flex; gap: var(--gap, 1.25rem); margin-inline: auto; }
.g-row button { flex: var(--ar) 1 0; min-width: 0; margin: 0; padding: 0; border: 0; background: #ddd; cursor: zoom-in; display: block; position: relative; overflow: hidden; }
.g-row button img { width: 100%; height: auto; display: block; transition: opacity .2s; }
.g-row button:hover img { opacity: .85; }
.gallery-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
dialog.lightbox { border: 0; padding: 0; background: transparent; color: #fff; max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / .95); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 1rem; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-caption { text-align: center; padding: .9rem 4rem 0; font-size: .95rem; color: #ccc; min-height: 3rem; }
.lb-caption b { color: #fff; font-weight: 700; }
.lb-btn { position: absolute; top: 50%; translate: 0 -50%; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid #666; background: rgb(0 0 0 / .7); color: #fff; font: inherit; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover { border-color: #fff; }
.lb-prev { left: .75rem; } .lb-next { right: .75rem; }
.lb-close { top: 1.5rem; right: .75rem; }

/* ---------- events ---------- */
.events h2 { text-align: center; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, var(--col))); justify-content: center; gap: 2.6rem var(--col-gap); margin-top: clamp(2.2rem, 5vw, 3.5rem); font-size: .95rem; line-height: 1.85; }
/* phones: shows in a single column */
@media (max-width: 640px) { .ev-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.ev h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
.ev .venue { margin: 0 0 .9rem; }
.ev .venue b { text-transform: uppercase; font-size: .85rem; }
.ev .venue a { text-decoration: underline; }
.ev .lineup { margin: 0 0 .9rem; }
.ev .lineup div { padding: 0; }
.ev .time { margin: 0; }
.ev-year { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.shows-empty { text-align: center; margin: 2.5rem 0 0; color: inherit; opacity: .85; }
.past-title { margin-top: clamp(3.5rem, 8vw, 6rem) !important; }

.acc { max-width: var(--grid-w); margin: 2.5rem auto 0; }
.acc details { border-top: 1px solid rgb(255 255 255 / .85); }
.acc details:last-child { border-bottom: 1px solid rgb(255 255 255 / .85); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: .85rem .25rem; font-size: 1.1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; }
.acc details[open] summary::after { content: "−"; }
.acc .ev { padding: .25rem .25rem 1.4rem; font-size: .95rem; }
.btn-outline { display: inline-block; padding: .65rem 2rem; border: 2px solid #8d8d8e; color: var(--dim); text-decoration: none; font-size: .9rem; letter-spacing: .03em; background: transparent; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.more { text-align: center; margin-top: 3.5rem; }

/* live page: past shows sit on white */
.live-past .ev-year, .live-past .ev h3 { color: #000; }

/* desktop: show layout measured from the reference screenshot of the original site (taken in a 1420px window):
   side margin 10.9vw, three equal columns with a gap as wide as the side margin, sizes scale gently with the window */
@media (min-width: 1200px) {
  .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--margin); row-gap: 4.07em; font-size: clamp(.8125rem, 1.014vw, .9rem); line-height: 1.885; }
  .ev-grid .ev h3, .ev-grid .ev-year { font-size: 1.61em; }
  .ev-grid .ev h3 { margin-bottom: 1.38em; }
  .ev-grid .ev .venue, .ev-grid .ev .lineup { margin-bottom: 1.04em; }
  .ev-grid .ev .venue b { font-size: 1.04em; }
  .ev-grid .ev .venue { white-space: nowrap; }   /* venue + city always on one line, as on the original */
  .acc { max-width: none; }
}
}

/* ---------- buy music ---------- */
.buy { padding-bottom: clamp(4rem, 9vw, 7rem); }
.buy .txt { max-width: 33rem; margin: 1.6rem auto 0; font-size: 1.02rem; }
.buy .txt p { margin: 0 0 1rem; }
.buy .txt a { font-weight: 700; color: #9a9a9a; }
.tiles { display: flex; gap: clamp(1.5rem, 4vw, 2.2rem); justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.tile { width: min(13.8rem, 42vw); aspect-ratio: 1; background: #ebebeb center / cover no-repeat; display: grid; place-items: center; text-align: center; color: #fff; font-size: 1.55rem; font-weight: 700; line-height: 1.25; text-decoration: none; padding: 1rem; }
.tile span { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.tile.order { background-image: url("/images/cd.png"); }
.tile.digital { background-image: url("/images/cd-digital.png"); }
.tile:hover { filter: brightness(.9); }

/* ---------- contact + footer ---------- */
.contact { padding-block: clamp(5rem, 14vw, 9.5rem); text-align: center; }
.contact .btn-outline { margin-top: 2.2rem; border-color: #a9a9aa; font-size: 1rem; padding: .9rem 2.4rem; }
.site-footer { padding: 2.4rem var(--pad); text-align: center; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
