:root {
  --bg: #91938f;
  --text: #000;
  --accent: #1653ff;
  --dark-accent: #dbdbdb;
  --max-width: 2000px;
  --pad: 5vw;
  --gutter: 17px;
  --font-body: 'Iosevka Term', ui-monospace, monospace;
  --font-head: 'Panama', sans-serif;
}
@media (max-width: 767px) { :root { --pad: 6vw; } }

/* Squarespace fluid type: size value --s in rem */
.page, h1, h2, h3, h4, .header-title, .header-nav a, .b-text .large, .b-text .small {
  font-size: min(calc((var(--s) - 1) * 1.2vw + 1rem),
                 max(calc((var(--s) - 1) * 0.012 * var(--max-width) + 1rem), calc(var(--s) * 1rem)));
}
@media screen and (max-width: 767px) and (orientation: portrait) {
  .page, h1, h2, h3, h4, .header-title, .header-nav a, .b-text .large, .b-text .small {
    font-size: calc((var(--s) - 1) * 0.012 * min(100vh, 900px) + 1rem);
  }
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
* , *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.5em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: underline 1px; text-underline-offset: .2em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--bg); }

h1, h2, h3, h4 { margin: 2rem 0; }
h1 { --s: var(--h1-size, 4.9); font-family: var(--h1-font, var(--font-head)); font-weight: var(--h1-weight, 400); text-transform: var(--h1-tt, uppercase); letter-spacing: var(--h1-ls, -0.02em); line-height: calc(var(--h1-lh, 1.2em) * (1 + (1 - var(--s)) / 25)); color: var(--h1-color, var(--text)); }
h2 { --s: var(--h2-size, 2.2); font-family: var(--h2-font, var(--font-head)); font-weight: var(--h2-weight, 400); text-transform: var(--h2-tt, uppercase); letter-spacing: var(--h2-ls, -0.02em); line-height: calc(var(--h2-lh, 1.2em) * (1 + (1 - var(--s)) / 25)); color: var(--h2-color, var(--accent)); }
h3 { --s: var(--h3-size, 1.9); font-family: var(--h3-font, var(--font-head)); font-weight: var(--h3-weight, 400); text-transform: var(--h3-tt, uppercase); letter-spacing: var(--h3-ls, -0.02em); line-height: calc(var(--h3-lh, 1.2em) * (1 + (1 - var(--s)) / 25)); color: var(--h3-color, var(--text)); }
h4 { --s: var(--h4-size, 1.3); font-family: var(--h4-font, var(--font-head)); font-weight: var(--h4-weight, 400); text-transform: var(--h4-tt, uppercase); letter-spacing: var(--h4-ls, -0.02em); line-height: calc(var(--h4-lh, 1.2em) * (1 + (1 - var(--s)) / 25)); color: var(--h4-color, var(--text)); }
b, strong { font-weight: 700; }

.b-text p { margin: 1rem 0; line-height: var(--p2-lh, 1.5em); white-space: pre-wrap; }
.b-text > article > :first-child { margin-top: 0; }
.b-text > article > :last-child { margin-bottom: 0; }
.b-text ul { list-style: none; margin: 1rem 0; padding: 0; }
.b-text li { line-height: var(--p2-lh, 1.5em); }
.b-text ul:not(.gigs) li::before { content: '+ '; }
.b-gigs:not(:has(li:not([hidden]), .b-empty)) { display: none; }
.b-gigs ul.gigs { margin: 0; }
.gigs li { line-height: var(--p2-lh, 1.5em); }
.gigs li.ny { margin-top: 1rem; }

/* Header */
.header {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  background: var(--bg);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.6vw var(--pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.header-title {
  --s: var(--title-size, 3.8);
  flex: 0 0 100%;
  font-family: var(--title-font, var(--font-head));
  font-weight: var(--title-weight, 400);
  text-transform: var(--title-tt, uppercase);
  letter-spacing: var(--title-ls, -0.02em);
  line-height: var(--title-lh, 1.2em);
  color: var(--title-color, var(--text));
  text-decoration: none;
}
.header-nav {
  flex: 0 0 100%;
  margin-top: 1.9vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav a {
  --s: var(--nav-size, 1);
  position: relative;
  display: inline-block;
  margin: 0 .5vw;
  font-family: var(--nav-font, var(--font-body));
  font-weight: var(--nav-weight, 300);
  text-transform: var(--nav-tt, none);
  letter-spacing: var(--nav-ls, -0.01em);
  line-height: var(--nav-lh, 1.3em);
  color: var(--nav-color, var(--text));
  text-decoration: none;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: .1em;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-nav a[aria-current='page'] { text-decoration: underline 1px; text-underline-offset: .1em; }
.header-nav a[aria-current='page']::after { display: none; }

.header-burger { display: none; }

@media only screen and (pointer: coarse) and (max-width: 1024px), screen and (max-width: 799px) {
  .header-inner { justify-content: space-between; text-align: left; padding: 6vw; flex-wrap: nowrap; }
  .header-title {
    --s: var(--titleM-size, .9);
    flex: 1 1 auto;
    font-family: var(--titleM-font, 'Shippori Mincho B1', var(--font-head));
    font-weight: var(--titleM-weight, 400);
    text-transform: var(--titleM-tt, uppercase);
    letter-spacing: var(--titleM-ls, -0.02em);
    line-height: var(--titleM-lh, 1.2em);
    color: var(--titleM-color, var(--text));
  }
  .header-nav { display: none; }
  .header-burger { display: block; }
  .header-burger summary { list-style: none; cursor: pointer; width: 28px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 11; }
  .header-burger summary::-webkit-details-marker { display: none; }
  .header-burger summary span { display: block; height: 1px; background: var(--text); }
  .header-burger[open] .burger-nav {
    position: fixed; inset: 0; z-index: 10; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
  }
  .burger-nav a {
    margin: 3vw 5vw;
    color: var(--navM-color, var(--text));
    text-decoration: none;
    font-family: var(--navM-font, var(--font-body));
    font-weight: var(--navM-weight, 300);
    text-transform: var(--navM-tt, none);
    font-size: calc(var(--navM-size, 8.5) * 1vmin);
    line-height: var(--navM-lh, 1.3em);
    letter-spacing: var(--navM-ls, -0.01em);
  }
}
@media screen and (min-width: 576px) { .burger-nav a { font-size: calc(var(--navM-size, 8.5) * .7765vmin); } }
@media screen and (min-width: 768px) { .burger-nav a { font-size: calc(var(--navM-size, 8.5) * .7059vmin); } }

/* Page + blocks */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.3vmax var(--pad);
  --s: var(--p2-size, .9);
  font-family: var(--p2-font, var(--font-body));
  font-weight: var(--p2-weight, 300);
  letter-spacing: var(--p2-ls, -0.01em);
  text-transform: var(--p2-tt, none);
  color: var(--p2-color, var(--text));
}
.b, .b-spacer { padding: var(--gutter); }
.b-divider hr { height: 1px; border: 0; margin: 0; background: var(--text); }
.b-cols {
  display: grid;
  grid-template-columns: var(--cols, 1fr 1fr);
  margin: 0 calc(-1 * var(--gutter));
}
.page > div > .b, .page > div > .b-spacer { margin: 0 calc(-1 * var(--gutter)); }
.b-col { min-width: 0; }
.b-col > .b-cols { margin: 0; }
.page > div > :first-child.b,
.page > div > .b-banner:first-child + .b,
.page > div > .b-cols:first-child > .b-col > :first-child { padding-top: 0; }
@media (max-width: 767px) {
  .b-cols { grid-template-columns: 1fr; }
  .b-spacer { display: none; }
  .page > div > :first-child.b,
  .page > div > .b-banner:first-child + .b,
  .page > div > .b-cols:first-child > .b-col > :first-child { padding-top: var(--gutter); }
}

.b-text.align-center { text-align: center; }
.b-text.align-justify { text-align: justify; }
.b-text .large { --s: var(--p1-size, 1); font-family: var(--p1-font, var(--p2-font, var(--font-body))); font-weight: var(--p1-weight, var(--p2-weight, 300)); letter-spacing: var(--p1-ls, var(--p2-ls, -0.01em)); text-transform: var(--p1-tt, var(--p2-tt, none)); line-height: var(--p1-lh, var(--p2-lh, 1.5em)); color: var(--p1-color, var(--p2-color, var(--text))); }
.b-text .small { --s: var(--p3-size, .9); font-family: var(--p3-font, var(--p2-font, var(--font-body))); font-weight: var(--p3-weight, var(--p2-weight, 300)); letter-spacing: var(--p3-ls, var(--p2-ls, -0.01em)); text-transform: var(--p3-tt, var(--p2-tt, none)); line-height: var(--p3-lh, var(--p2-lh, 1.5em)); color: var(--p3-color, var(--p2-color, var(--text))); }
.b-text .left { text-align: left; }
.b-text .center { text-align: center; }
.b-text .right { text-align: right; }
.b-text .justify { text-align: justify; }

/* Banner: full-bleed band, image sized like Squarespace's fluid-engine grid
   (24 cols, rows = container * 0.0215, 11px gaps; image spans 18 cols x 8 rows, 2 rows above, 1 below) */
.b-banner {
  --c: min(var(--max-width), 90vw);
  --row: calc(var(--c) * 0.0215);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: calc(2 * var(--row) + 22px) 0 calc(var(--row) + 11px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.b-banner img {
  display: block;
  width: calc(var(--c) * 0.75);
  height: calc(8 * var(--row) + 77px);
  object-fit: contain;
}
.b-banner.bg-bright { background: #0064ff; }
.b-banner.bg-black { background: #000; }
.page > div > .b-banner:first-child { margin-top: -3.3vmax; margin-bottom: 3.3vmax; }
@media (max-width: 767px) {
  .b-banner { padding: 0; }
  .b-banner img { width: 88vw; height: 199px; }
}

.b-video { position: relative; }
.b-video iframe { display: block; width: 100%; aspect-ratio: 1 / .565; height: auto; border: 0; }
.b-table { overflow-wrap: break-word; }
.b-table table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: .85em; line-height: 1.4; }
.b-table thead { border-bottom: 1px solid var(--text); }
.b-table tbody tr { border-bottom: 1px solid rgba(0, 0, 0, .2); }
.b-table th { font-weight: 700; text-align: left; padding: .65em .5em; vertical-align: bottom; }
.b-table td { padding: .65em .5em; vertical-align: top; }
.b-table .num { text-align: right; white-space: nowrap; }
.b-table td a + a { margin-left: .5em; }
@media (max-width: 767px) {
  .b-table thead { display: none; }
  .b-table table, .b-table tbody, .b-table tr, .b-table td { display: block; width: 100%; }
  .b-table tbody tr { border-bottom: 1px solid var(--text); padding: .5em 0; }
  .b-table td, .b-table td.num { display: grid; grid-template-columns: 7.5em 1fr; gap: .75em; padding: .2em 0; text-align: left; white-space: normal; }
  .b-table td::before { content: attr(data-label); font-weight: 700; }
  .b-table td:has(> span:empty) { display: none; }
}
.b-image { margin: 0; }
.b-image img { display: block; width: 100%; height: auto; }
.b-image figcaption p { margin: 1rem 0; line-height: 1.5em; white-space: pre-wrap; }
.b-image .b-crop { position: relative; overflow: hidden; }
.b-image .b-crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Editor placeholders (only rendered inside the Puck editor) */
.b-empty {
  padding: 24px;
  border: 1px dashed currentColor;
  opacity: .5;
  text-align: center;
  font-size: .8rem;
}
.b-col:empty { min-height: 34px; }

/* Section: container with minimum height and vertical alignment */
.b-section { display: flex; flex-direction: column; box-sizing: border-box; }
.b-section.align-top { justify-content: flex-start; }
.b-section.align-middle { justify-content: center; }
.b-section.align-bottom { justify-content: flex-end; }
.b-section-inner { width: 100%; }

/* Gallery: padded like Squarespace's full-width gallery section */
.b-gallery { padding: var(--pad) 0; }
.b-gallery.layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.b-gallery.layout-masonry { column-count: var(--cols); column-gap: var(--gap); }
.b-gallery.layout-masonry .g-item { break-inside: avoid; margin-bottom: var(--gap); }
.b-gallery .g-item { display: block; margin: 0; }
.b-gallery .g-item > a { display: block; }
.b-gallery figcaption { padding: 15px 0; font-size: 14px; line-height: 1.5em; }
.b-gallery img { display: block; width: 100%; height: auto; }
@media (max-width: 992px) {
  .b-gallery.layout-grid { grid-template-columns: repeat(var(--cols-t), minmax(0, 1fr)); }
  .b-gallery.layout-masonry { column-count: var(--cols-t); }
}
@media (max-width: 768px) {
  .b-gallery.layout-grid { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); }
  .b-gallery.layout-masonry { column-count: var(--cols-m); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(145, 147, 143, .97);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer;
  font: 300 2.5rem/1 var(--font-body); color: var(--text); padding: 1rem;
}
.lightbox .lb-prev { left: 1vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1vw; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close { right: 1vw; top: 1vw; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
