@font-face { font-family: 'Iosevka Term'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/iosevka-term-300.woff2') format('woff2'); }
@font-face { font-family: 'Iosevka Term'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/iosevka-term-300i.woff2') format('woff2'); }
@font-face { font-family: 'Iosevka Term'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/iosevka-term-400.woff2') format('woff2'); }
@font-face { font-family: 'Iosevka Term'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/iosevka-term-400i.woff2') format('woff2'); }
@font-face { font-family: 'Iosevka Term'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/iosevka-term-700.woff2') format('woff2'); }
@font-face { font-family: 'Panama'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/panama-400.ttf') format('truetype'); }
@font-face { font-family: 'Shippori Mincho B1'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/shippori-mincho-b1-400.woff2') format('woff2'); }
@font-face { font-family: 'Panama'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/panama-700.ttf') format('truetype'); }

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

.b-text p { margin: 1rem 0; line-height: 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: 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: 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: 3.8;
  flex: 0 0 100%;
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2em;
  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: 1;
  position: relative;
  display: inline-block;
  margin: 0 .5vw;
  line-height: 1.3em;
  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: .9;
    flex: 1 1 auto;
    font-family: 'Shippori Mincho B1', var(--font-head);
    font-weight: 400;
    line-height: 1.2em;
  }
  .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(--text);
    text-decoration: none;
    font-size: 8.5vmin;
    line-height: 1.3em;
    letter-spacing: -0.01em;
  }
}
@media screen and (min-width: 576px) { .burger-nav a { font-size: 6.6vmin; } }
@media screen and (min-width: 768px) { .burger-nav a { font-size: 6vmin; } }

/* Page + blocks */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.3vmax var(--pad);
  --s: .9;
}
.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: 1; }
.b-text .small { --s: .9; }
.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; }
