@font-face {
  font-family: "Niveau Grotesk";
  src: url("fonts/NiveauGroteskLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niveau Grotesk";
  src: url("fonts/NiveauGroteskMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niveau Grotesk";
  src: url("fonts/NiveauGroteskBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f0ecda;
  --ink: #201e1d;
  --ink-75: rgba(32, 30, 29, 0.75);
  --ink-7: rgba(32, 30, 29, 0.7);
  --ink-6: rgba(32, 30, 29, 0.6);
  --ink-55: rgba(32, 30, 29, 0.55);
  --ink-4: rgba(32, 30, 29, 0.4);
  --ink-35: rgba(32, 30, 29, 0.35);
  --ink-3: rgba(32, 30, 29, 0.3);
  --red: #ec3013;
  --red-dark: #ae1800;
  --gold: #eda84c;
  --hero-gold: #e8a24c;
  --pink: #f18ca6;
  --mint: #bfddda;
  --olive: #7e9944;
  --panel: #e7e0c6;
  --panel-hover: #fff2ef;
  --cream-text: #f0ecda;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Niveau Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Niveau Grotesk", system-ui, sans-serif;
  font-weight: 900;
  margin: 0;
}

button, input, textarea, select {
  font-family: "Niveau Grotesk", system-ui, sans-serif;
}

a { color: var(--red-dark); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }

button { cursor: pointer; border-radius: 0; }
input, textarea, select { border-radius: 0; }
input::placeholder, textarea::placeholder { color: rgba(32, 30, 29, 0.55); opacity: 1; }
input[type="email"]::placeholder { color: rgba(240, 236, 218, 0.7); opacity: 1; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
header.site {
  border-bottom: 2px solid var(--ink-4);
}
header.site .wrap {
  padding: 16px 32px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  justify-content: space-between;
}
.brand-group { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.brand-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-55);
}
.wordmark {
  font-family: "Niveau Grotesk", system-ui, sans-serif;
  font-size: 19px; font-weight: 900; letter-spacing: -0.02em; color: var(--red);
  text-transform: lowercase; background: none; padding: 0;
}
.resource-count { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }

/* ---------- Nav ---------- */
nav.tabs { border-top: 2px solid var(--ink-4); }
nav.tabs .wrap { display: flex; flex-wrap: wrap; padding: 0 32px; }
.nav-btn {
  font-family: "Niveau Grotesk", system-ui, sans-serif;
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  background: transparent; border: none; border-bottom: 3px solid transparent;
  color: var(--ink); padding: 14px 18px 11px; cursor: pointer;
}
.nav-btn:hover { color: var(--red); }
.nav-btn.active { color: var(--red); border-bottom-color: var(--red); }

main { }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-gold);
  border-bottom: 2px solid var(--ink-4);
}
.hero .wrap {
  padding: 72px 32px 64px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero h1 {
  font-size: 86px; line-height: 0.95; letter-spacing: -0.035em; color: var(--red);
  margin: 0 0 24px;
}
.hero-tagline {
  font-size: 21px; line-height: 1.4; max-width: 34ch; margin: 0 0 32px; color: var(--ink);
  text-wrap: pretty;
}
.hero-search { display: flex; max-width: 460px; }
.hero-search input {
  flex: 1; font-size: 15px; padding: 13px 14px; border: 2px solid var(--ink);
  background: var(--bg); color: var(--ink);
}
.hero-search button {
  font-weight: 800; font-size: 14px; padding: 13px 22px;
  background: var(--red); color: var(--cream-text); border: 2px solid var(--ink); border-left: 0;
}
.hero-search button:hover { background: var(--red-dark); }

.hero-index { border-top: 2px solid var(--ink); padding-top: 12px; }
.hero-index-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.hero-index-row {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 16px;
  background: transparent; border: none; border-bottom: 1px solid var(--ink-35);
  padding: 12px 0; font-size: 17px; font-weight: 800; color: var(--ink); text-align: left;
}
.hero-index-row:hover { color: var(--red); }
.hero-index-count { font-size: 13px; font-weight: 400; color: var(--ink-6); }

/* ---------- Browse by section ---------- */
.section-browse { padding: 56px 32px 8px; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; margin: 0 0 4px; }
.section-desc { max-width: 58ch; color: var(--ink-7); margin: 0 0 32px; }

.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 2px solid var(--ink-4); border-left: 2px solid var(--ink-4);
}
.section-cell {
  display: block; text-align: left; background: var(--panel); border: none;
  border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4);
  padding: 24px; min-height: 230px;
}
.section-cell:hover { background: var(--panel-hover); }
.section-title { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.section-blurb { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-7); text-wrap: pretty; }
.section-count { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-dark); }

.mark { display: block; margin-bottom: 18px; }
.mark-square { width: 18px; height: 18px; background: var(--red); }
.mark-outline { width: 18px; height: 18px; border: 3px solid var(--red); }
.mark-circle { width: 18px; height: 18px; background: var(--red); border-radius: 50%; }
.mark-diamond { width: 15px; height: 15px; background: var(--red); transform: rotate(45deg); margin: 2px 0 19px; }
.mark-triangle {
  width: 0; height: 0; margin-bottom: 20px;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--red);
}
.mark-ink.mark-square, .mark-ink.mark-circle, .mark-ink.mark-diamond { background: var(--ink); }
.mark-ink.mark-outline { border-color: var(--ink); }
.mark-ink.mark-triangle { border-bottom-color: var(--ink); }

/* ---------- Events ---------- */
.events-stats {
  display: flex; flex-wrap: wrap; gap: 32px; padding: 20px 0 4px;
}
.events-stat .num { font-size: 26px; font-weight: 900; color: var(--red-dark); font-variant-numeric: tabular-nums; }
.events-stat .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-6); }

.events-section { padding: 48px 0; border-bottom: 2px solid var(--ink-4); }
.events-section:last-child { border-bottom: none; }

.event-card {
  border: 2px solid var(--ink-4); margin-bottom: 32px; display: grid; grid-template-columns: 1fr 1fr;
}
.event-card:last-child { margin-bottom: 0; }
.event-media { position: relative; background: var(--ink); min-height: 280px; cursor: pointer; overflow: hidden; }
.event-media:hover .event-hero-img { transform: scale(1.03); }
.event-media:hover .event-view-badge { opacity: 1; }
.event-media:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.event-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; transition: transform .2s ease; }
.event-year-badge {
  position: absolute; top: 16px; left: 16px; background: var(--red); color: var(--cream-text);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 12px; z-index: 2;
}
.event-view-badge {
  position: absolute; bottom: 16px; left: 16px; background: rgba(32,30,29,0.75); color: var(--cream-text);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; padding: 6px 12px; opacity: 0; transition: opacity .15s; z-index: 2;
}
.event-body { padding: 28px 28px 24px; display: flex; flex-direction: column; }
.event-title { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 4px; }
.event-subtitle { font-size: 13px; color: var(--ink-6); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; }
.event-desc { font-size: 15px; line-height: 1.55; color: var(--ink-75); margin: 0 0 20px; text-wrap: pretty; }
.event-partners { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.event-partner-tag { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--ink-4); padding: 3px 7px; color: var(--ink-75); }
.event-gallery { display: flex; gap: 8px; margin-top: auto; }
.event-gallery-thumb { position: relative; width: 33.333%; height: 90px; cursor: pointer; }
.event-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; }
.event-gallery-thumb:hover img { filter: brightness(0.85); }
.event-gallery-thumb:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.event-gallery-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(32,30,29,0.6); color: var(--cream-text); font-size: 16px; font-weight: 800;
}

.media-play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(32,30,29,0.75); color: var(--cream-text);
  display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none;
}
.event-gallery-thumb .media-play-badge { width: 30px; height: 30px; }
.event-gallery-thumb .media-play-badge svg { width: 13px; height: 13px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 18, 14, 0.94); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox-figure { margin: 0; max-width: min(1100px, 86vw); text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain; display: block; margin: 0 auto;
  border: 2px solid rgba(240, 236, 218, 0.25);
}
.lightbox-figure video {
  max-width: 100%; max-height: 78vh; width: auto; display: block; margin: 0 auto;
  border: 2px solid rgba(240, 236, 218, 0.25); background: #000;
}
.lightbox-figure video::cue { color: #fff; background: rgba(0, 0, 0, 0.7); font-size: 1.05em; }
.lightbox-figure figcaption { color: var(--cream-text); font-size: 13px; letter-spacing: 0.04em; margin-top: 14px; opacity: 0.85; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: transparent; border: none; color: var(--cream-text);
  font-size: 34px; line-height: 1; padding: 4px 10px;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none;
  color: var(--cream-text); font-size: 34px; padding: 10px 16px;
}
.lightbox-arrow:hover { color: var(--gold); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 8px; right: 8px; font-size: 28px; }
  .lightbox-arrow { font-size: 26px; padding: 8px; }
}

.other-event-row {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--ink-3);
}
.other-event-row:last-child { border-bottom: none; }
.other-event-name { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.other-event-name:hover { color: var(--red); }
.other-event-org { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-dark); margin: 2px 0 6px; }
.other-event-desc { font-size: 14.5px; line-height: 1.5; color: var(--ink-75); margin: 0; max-width: 62ch; }

@media (max-width: 760px) {
  .event-card { grid-template-columns: 1fr; }
  .event-media, .event-hero-img { min-height: 220px; }
  .other-event-row { grid-template-columns: 1fr; }
}

/* ---------- Community picks ---------- */
.section-picks { padding: 48px 32px 56px; }
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 2px solid var(--ink-4); border-left: 2px solid var(--ink-4);
}
.pick-cell { border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4); padding: 20px; }
.pick-cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 8px; }
.pick-name { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.pick-name:hover { color: var(--red); }
.pick-desc { font-size: 14px; line-height: 1.45; color: var(--ink-7); margin: 6px 0 0; text-wrap: pretty; }

/* ---------- Directory band ---------- */
.band { border-bottom: 2px solid var(--ink-4); }
.band .wrap { padding: 48px 32px 40px; }
.band-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-6); margin-bottom: 10px; }
.band h1 { font-size: 56px; line-height: 1; letter-spacing: -0.03em; margin: 0 0 14px; color: var(--ink); }
.band-blurb { font-size: 18px; max-width: 62ch; color: var(--ink-75); margin: 0; text-wrap: pretty; }

.band-events .band-eyebrow { color: rgba(240, 236, 218, 0.75); }
.band-events h1 { color: var(--cream-text); }
.band-events .band-blurb { color: rgba(240, 236, 218, 0.9); }
.band-events .events-stat .num { color: var(--cream-text); }
.band-events .events-stat .label { color: rgba(240, 236, 218, 0.7); }

/* ---------- Filters ---------- */
.filter-row {
  max-width: 1180px; margin: 0 auto; padding: 24px 32px 0;
}
.filter-top {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-bottom: 20px;
}
.search-box {
  font-size: 14px; padding: 11px 13px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink);
  width: 300px; max-width: 100%;
}
.price-group { display: flex; border: 2px solid var(--ink); }
.price-btn {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 14px;
  border: none; border-right: 2px solid var(--ink); background: transparent; color: var(--ink);
}
.price-btn:last-child { border-right: none; }
.price-btn.active { background: var(--red); color: var(--cream-text); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.tag-chip {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 12px;
  border: 2px solid var(--ink-4); background: transparent; color: var(--ink);
}
.tag-chip.active { border-color: var(--red); background: var(--red); color: var(--cream-text); }

/* ---------- Results list ---------- */
.results-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px 64px; }
.results-header {
  border-top: 2px solid var(--ink-4); display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55);
}
.item-row {
  display: grid; grid-template-columns: 1.6fr 1fr 130px; gap: 24px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--ink-3);
}
.item-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.item-name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.item-name:hover { color: var(--red); }
.item-pick-badge {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800;
  background: var(--red); color: var(--cream-text); padding: 3px 7px;
}
.item-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-75); max-width: 58ch; text-wrap: pretty; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.item-tag { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--ink-4); padding: 3px 7px; color: var(--ink-75); }
.item-price { padding-top: 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-dark); }

.empty-row { padding: 48px 0; border-bottom: 1px solid var(--ink-3); }
.empty-row p { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.clear-btn {
  font-weight: 800; font-size: 14px; padding: 10px 18px; background: transparent; color: var(--ink);
  border: 2px solid var(--ink);
}
.clear-btn:hover { background: var(--panel-hover); color: var(--red-dark); }

/* ---------- Submit ---------- */
.submit-band { background: var(--panel); border-bottom: 2px solid var(--ink-4); }
.submit-band .wrap {
  padding: 48px 32px 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.submit-band h1 { font-size: 52px; line-height: 1; letter-spacing: -0.03em; margin: 0 0 16px; }
.submit-copy { font-size: 18px; line-height: 1.5; color: var(--ink-75); max-width: 46ch; text-wrap: pretty; }
.submit-note {
  border-top: 2px solid var(--ink-4); margin-top: 32px; padding-top: 16px; font-size: 14px; color: var(--ink-7);
}
.submit-note p { margin: 0 0 8px; }
.submit-note p:last-child { margin: 0; }

.submit-form {
  border: 2px solid var(--ink); padding: 28px; background: var(--bg); display: grid; gap: 18px;
}
.field-label {
  display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.field-label input, .field-label select, .field-label textarea {
  font-size: 15px; padding: 11px 12px; border: 2px solid var(--ink); background: var(--panel);
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.field-label textarea { resize: vertical; }
.submit-btn {
  font-weight: 800; font-size: 14px; padding: 13px 20px; background: var(--red); color: var(--cream-text);
  border: 2px solid var(--ink); text-align: left;
}
.submit-btn:hover { background: var(--red-dark); }
.submit-thanks { margin: 0; font-size: 14px; color: var(--red-dark); }
.submit-error { margin: 0; font-size: 14px; color: var(--red); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--red); color: var(--cream-text); border-top: 2px solid var(--ink-4); }
.newsletter .wrap {
  padding: 56px 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
}
.newsletter h2 { font-size: 44px; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 12px; color: var(--cream-text); }
.newsletter p { margin: 0; font-size: 17px; max-width: 44ch; color: rgba(240, 236, 218, 0.85); }
.substack-embed { border: 2px solid var(--cream-text); padding: 4px; background: var(--cream-text); }
.substack-embed iframe { display: block; }

/* ---------- Footer ---------- */
footer.site { border-top: 2px solid var(--ink-4); }
footer.site .wrap {
  padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-6);
}

@media (max-width: 860px) {
  .hero .wrap, .submit-band .wrap, .newsletter .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 1fr; }
}
