/* NoCo Music Hub — Front Range theme
   light = "dusk": periwinkle-to-peach sky, navy ridgelines (Horsetooth at golden hour)
   dark  = "night": deep teal sky, stars, moonlit granite, ponderosa treeline, aspen gold */
:root {
  --bg: #f1f1f7;
  --surface: #ffffff;
  --surface-2: #e9eaf4;
  --surface-3: #dfe1ee;
  --ink: #1e2a4f;
  --ink-2: #4f5b80;
  --ink-3: #8089a6;
  --line: #dcdfec;
  --line-strong: #c4c9de;
  --brand: #c98a2b;          /* aspen gold */
  --brand-ink: #1e2a4f;
  --accent: #2f3f75;         /* ridge navy */
  --today: #c98a2b;
  --weekend: #f6f6fb;
  --ok: #2f7d4f; --warn: #b26a12; --bad: #b4373b;

  /* category colours — drawn from the landscape */
  --c-open_mic: #d0901f;     /* aspen gold */
  --c-jam: #3f8a57;          /* ponderosa green */
  --c-songwriter: #7a6bc9;   /* dusk lavender */
  --c-concert: #3d6fb6;      /* Horsetooth Reservoir blue */
  --c-dj: #cc5a78;           /* alpenglow */

  /* scene */
  --sky-1: #9fb0e0; --sky-2: #d9c6e6; --sky-3: #f7d9cf;
  --ridge-far: #a9b3da; --ridge-mid-1: #9b8fb4; --ridge-mid-2: #4b5891; --flank-1: #8189b8; --flank-2: #56639b; --hill-1: #5c69a1; --hill-2: #3e4c84; --town-line: #8a92b8; --town-glow: #e2a83c;
  --moon: #fff6e4; --moon-glow: rgb(255 236 200 / .55); --stars: 0; --notch-sun: 1; --moon-show: 0;
  --hero-ink: #1e2a4f; --hero-ink-2: #3c4a7a;

  --radius: 14px;
  --cat: var(--c-concert);
  --shadow-sm: 0 1px 2px rgb(30 40 80 / .06);
  --shadow: 0 1px 2px rgb(30 40 80 / .05), 0 12px 32px rgb(30 40 80 / .08);
  --display: "Montserrat", Inter, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1c21; --surface: #142a30; --surface-2: #1a333a; --surface-3: #21404a; --ink: #eee6d3; --ink-2: #a9bab7;
    --ink-3: #6f8a88; --line: #22414a; --line-strong: #2f5560; --brand: #e3b25a; --brand-ink: #0e1c21; --accent: #e3b25a;
    --today: #e3b25a; --weekend: #12262b;
    --c-open_mic: #e9b955; --c-jam: #6fbf86; --c-songwriter: #b0a4f0; --c-concert: #79aee6; --c-dj: #ee8aa4;
    --ok: #6fbf86; --warn: #e9b955; --bad: #f08a8a;
    --sky-1: #08161b; --sky-2: #0e2229; --sky-3: #15313a;
    --ridge-far: #1b363d; --ridge-mid-1: #b08a52; --ridge-mid-2: #2c3d3f; --flank-1: #5d5a45; --flank-2: #213439; --hill-1: #2b3f3c; --hill-2: #152a2d; --town-line: #4f6b6c; --town-glow: #f2c46b;
    --moon: #f4f1e8; --moon-glow: rgb(244 241 232 / .35); --stars: 1; --notch-sun: 0; --moon-show: 1;
    --hero-ink: #f3ecdb; --hero-ink-2: #c9d4cf;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1c21; --surface: #142a30; --surface-2: #1a333a; --surface-3: #21404a; --ink: #eee6d3; --ink-2: #a9bab7;
  --ink-3: #6f8a88; --line: #22414a; --line-strong: #2f5560; --brand: #e3b25a; --brand-ink: #0e1c21; --accent: #e3b25a;
  --today: #e3b25a; --weekend: #12262b;
  --c-open_mic: #e9b955; --c-jam: #6fbf86; --c-songwriter: #b0a4f0; --c-concert: #79aee6; --c-dj: #ee8aa4;
  --ok: #6fbf86; --warn: #e9b955; --bad: #f08a8a;
  --sky-1: #08161b; --sky-2: #0e2229; --sky-3: #15313a;
  --ridge-far: #1b363d; --ridge-mid-1: #b08a52; --ridge-mid-2: #2c3d3f; --flank-1: #5d5a45; --flank-2: #213439; --hill-1: #2b3f3c; --hill-2: #152a2d; --town-line: #4f6b6c; --town-glow: #f2c46b;
  --moon: #f4f1e8; --moon-glow: rgb(244 241 232 / .35); --stars: 1; --notch-sun: 0; --moon-show: 1;
  --hero-ink: #f3ecdb; --hero-ink-2: #c9d4cf;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; margin: 0; line-height: 1.15; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--sky-1) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid color-mix(in srgb, var(--hero-ink) 10%, transparent); color: var(--hero-ink); }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 76px; height: 26px; display: block; }
.brand-mark svg { width: 76px; height: 26px; display: block; }
.brand b { display: block; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; line-height: 1.15; }
.brand small { display: block; font-size: 11.5px; color: var(--hero-ink-2); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 7px 4px; margin: 0 8px; font-weight: 600; font-size: 14px; color: var(--hero-ink-2); border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--hero-ink); border-bottom-color: var(--brand); }
.nav a:hover { color: var(--hero-ink); }
.search { margin-left: auto; flex: 0 1 280px; }
.search input { width: 100%; border: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; }
.theme-btn { border: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent); background: transparent; color: var(--hero-ink); width: 38px; height: 38px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
.coffee-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14px; background: var(--brand); color: var(--brand-ink); white-space: nowrap; box-shadow: var(--shadow-sm); }
.coffee-btn:hover { filter: brightness(1.06); }
.coffee-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .coffee-btn { padding: 8px 10px; order: 2; }
  .coffee-btn span { display: none; }
}

/* ---------------------------------------------------------------- toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 22px 0 12px; }
.mode { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mode button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; }
.mode button[aria-pressed="true"] { background: var(--accent); color: var(--surface); box-shadow: var(--shadow-sm); }
.mode .n { font-size: 12px; font-weight: 500; opacity: .7; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-right: 4px; font-weight: 600; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.chip .n { opacity: .55; font-size: 12px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }

/* ---------------------------------------------------------------- calendar layout */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cal-head h2 { font-size: 22px; flex: 1; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.cal-head h2 small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 10px; letter-spacing: 0; text-transform: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.text-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }

.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.dow span { padding: 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cell { min-height: 132px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; position: relative; }
.cell:nth-child(7n) { border-right: 0; }
.cell.wkend { background: var(--weekend); }
.cell.out { background: var(--surface-2); cursor: default; }
.cell.out > * { opacity: .45; }
/* days that have passed: muted cell, events greyed out (still clickable) */
.cell.past:not(.out) { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.cell.past .num b { color: var(--ink-3); }
.cell.past .ev { filter: grayscale(1); opacity: .5; }
.cell.past .ev:hover { opacity: .75; }
.cell.past .dots i { filter: grayscale(1); opacity: .5; }
.item.is-past { filter: grayscale(1); opacity: .55; }
.item.is-past:hover { opacity: .8; }
.tag.past { background: var(--surface-3); color: var(--ink-2); border-color: transparent; }
.past-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; }
.cell.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.cell .num { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; }
.cell .num b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cell.today .num b { background: var(--today); color: var(--brand-ink); }
.cell .num .cnt { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.ev { display: block; text-align: left; width: 100%; border: 0; cursor: pointer; padding: 4px 6px 4px 8px; border-radius: 7px;
  background: color-mix(in srgb, var(--cat) 11%, var(--surface)); border-left: 3px solid var(--cat); min-width: 0; }
.ev:hover { background: color-mix(in srgb, var(--cat) 20%, var(--surface)); }
.ev .l1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; line-height: 1.25; font-weight: 600; overflow: hidden; overflow-wrap: anywhere; }
.ev .l1 time { color: color-mix(in srgb, var(--cat) 80%, var(--ink)); margin-right: 4px; font-weight: 700; }
.ev .l2 { display: block; font-size: 11px; line-height: 1.25; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { border: 0; background: none; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 2px 6px; cursor: pointer; }
.dots { display: none; }


/* agenda / side panel */
.side { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.side-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.side-head h3 { font-size: 20px; }
.side-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.side-body { overflow-y: auto; padding: 10px; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda .dhead { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 4px 0; }
.item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; border-left: 4px solid var(--cat); }
.item:hover { border-color: var(--line-strong); }
.item .t { font-weight: 700; font-size: 14px; color: color-mix(in srgb, var(--cat) 75%, var(--ink)); }
.item .t small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.item h4 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.item .v { font-size: 13px; color: var(--ink-2); }
.item .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag.cat { background: color-mix(in srgb, var(--cat) 14%, var(--surface)); color: color-mix(in srgb, var(--cat) 70%, var(--ink)); border-color: transparent; }
.tag.auto { color: var(--warn); border-color: currentColor; background: none; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--cat); }

/* ---------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .4); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; padding: 26px 24px 40px; }
.drawer-close { position: absolute; top: 14px; right: 14px; }
.d-cat { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.drawer h2 { font-size: 26px; margin-right: 40px; letter-spacing: 0; }
.facts { display: grid; grid-template-columns: 26px 1fr; gap: 10px 8px; margin: 18px 0; font-size: 15px; }
.facts .ic { color: var(--ink-3); text-align: center; }
.facts a { font-weight: 600; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.verify-box { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.verify-box h3 { font-family: Inter, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 8px; }
.verify-box q { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; quotes: none; overflow-wrap: anywhere; }
.history { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); max-height: 160px; overflow: auto; }

/* ---------------------------------------------------------------- venues */
.page-head { padding: 26px 0 12px; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 720px; }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; padding-bottom: 20px; }
.venue-card { padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.venue-card:hover { border-color: var(--line-strong); }
.venue-card h3 { font-size: 20px; }
.venue-card .meta { font-size: 13px; color: var(--ink-2); }
.series { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.series li { font-size: 13px; padding-left: 10px; border-left: 3px solid var(--cat); }
.series b { font-weight: 600; }
.venue-card .foot { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--brand); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; padding-bottom: 30px; }
.section { padding: 18px; }
.section h2 { font-size: 20px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th, .t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.st-ok { color: var(--ok); font-weight: 600; } .st-failed { color: var(--bad); font-weight: 600; } .st-empty { color: var(--warn); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 22px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 30px; font-family: var(--display); font-weight: 800; color: var(--accent); }
.stat span { font-size: 13px; color: var(--ink-2); }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item q { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.footer { color: var(--ink-3); font-size: 13px; padding: 30px 16px 50px; }
.footer p { margin: 2px 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .cal-layout, .two-col { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 10px; }
  .search { flex-basis: 100%; order: 3; }
  .nav a { padding: 6px 9px; }
  .brand small { display: none; }
  .mode { width: 100%; }
  .mode button { flex: 1; justify-content: center; }
  .cal-head h2 { font-size: 20px; }
  .cal-head h2 small { display: none; }
  .cell { min-height: 58px; padding: 4px; align-items: center; }
  .cell .num { justify-content: center; }
  .cell .num .cnt, .cell .ev, .cell .more { display: none; }
  .dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cat); }
  .dow span { text-align: center; padding: 6px 0; }
  .item { grid-template-columns: 54px minmax(0, 1fr); }
  .drawer-panel { padding: 22px 16px 40px; }
}

/* category colour hooks (last, so they win over component defaults) */
[data-cat="open_mic"] { --cat: var(--c-open_mic); }
[data-cat="jam"] { --cat: var(--c-jam); }
[data-cat="songwriter"] { --cat: var(--c-songwriter); }
[data-cat="concert"] { --cat: var(--c-concert); }
[data-cat="dj"] { --cat: var(--c-dj); }

/* ================================================================ Front Range scene */
.scene { position: relative; overflow: hidden; color: var(--hero-ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%); margin-top: -1px; }
.scene .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars); transition: opacity .6s; pointer-events: none; }
.scene .moon { position: absolute; width: 64px; height: 64px; border-radius: 50%; right: max(28px, calc((100vw - 1320px) / 2 + 8px)); top: 26px;
  background: radial-gradient(circle at 38% 35%, #fff, var(--moon) 55%, color-mix(in srgb, var(--moon) 80%, #9aa) 100%);
  box-shadow: 0 0 60px 18px var(--moon-glow); opacity: var(--moon-show); transition: opacity .6s; }
:root[data-theme="light"] .scene .moon, .scene.light .moon { }
.scene .ridges { position: relative; display: block; width: 100%; height: auto; margin-top: -44px; z-index: 1; }
.scene .ridges .flank { fill: url(#flankGrad); }
.scene .ridges .hills { fill: url(#hillGrad); }

.scene .ridges .knob { fill: var(--flank-1); opacity: .9; }
.scene .ridges .notch-sun { opacity: var(--notch-sun); transition: opacity .6s; }
.scene .ridges .ledges { fill: var(--ridge-mid-1); opacity: .35; }
.scene .ridges .cracks { fill: none; stroke: var(--ridge-mid-2); stroke-width: 1.6; opacity: .35; stroke-linecap: round; }
.scene .ridges .far { fill: var(--ridge-far); }
.scene .ridges .mid { fill: url(#rockGrad); }
.scene .ridges .near { fill: var(--ridge-near); }
.scene .ridges .pines { fill: var(--pines); }
.scene .ridges .fade { fill: var(--bg); }
.scene .ridges .birds { fill: none; stroke: var(--hero-ink); stroke-width: 1.4; opacity: .55; }

.hero-copy { position: relative; z-index: 2; text-align: center; padding: 46px 16px 0; }
.hero-copy .eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; color: var(--hero-ink-2); }
.hero-copy .eyebrow b { display: block; color: var(--brand); font-weight: 600; letter-spacing: .04em; margin-top: 2px; }
.hero-copy .eyebrow::after { content: ""; display: block; width: 120px; height: 1px; margin: 12px auto 0; background: color-mix(in srgb, var(--brand) 70%, transparent); }
.hero-copy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6.4vw, 76px); letter-spacing: .2em; text-transform: uppercase;
  line-height: 1.02; margin: 0 0 0 .2em; text-shadow: 0 2px 24px color-mix(in srgb, var(--sky-1) 60%, transparent); }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-copy .lede { max-width: 620px; margin: 14px auto 0; font-size: 16px; color: var(--hero-ink-2); }
.hero-side { position: absolute; z-index: 2; right: max(16px, calc((100vw - 1320px) / 2 + 16px)); top: 120px; writing-mode: vertical-rl;
  font-size: 12px; letter-spacing: .14em; color: color-mix(in srgb, var(--hero-ink-2) 75%, transparent); }
.hero-stats { position: relative; z-index: 2; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--hero-ink-2); }
.hero-stats .stats-label { flex-basis: 100%; text-align: center; margin-top: -14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero-stats b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--hero-ink); letter-spacing: .04em; }
.scene.compact .hero-copy { padding-top: 26px; }
.scene.compact .hero-copy h1 { font-size: clamp(24px, 4.4vw, 46px); }
.scene.compact .hero-copy .lede, .scene.compact .hero-stats, .scene.compact .hero-side { display: none; }
.scene.compact .moon { width: 46px; height: 46px; top: 18px; }
.scene.compact .ridges { margin-top: -40px; }

main.wrap { position: relative; z-index: 3; margin-top: -34px; }
.toolbar { padding-top: 0; }
.card { backdrop-filter: none; }
/* ---------------------------------------------------------------- main street (footer, line art) */
.town { margin-top: 48px; line-height: 0; }
.town svg { display: block; width: 100%; height: auto; min-height: 200px; }
.town .ln { fill: none; stroke: var(--town-line); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.town .ln.thin { stroke-width: 1; opacity: .8; }
.town .ln.body { fill: var(--bg); }
.town .win.lit { fill: color-mix(in srgb, var(--town-glow) 32%, transparent); }
.town .bulb { fill: var(--town-glow); }
.town-footer { border-top: 1px solid var(--town-line); color: var(--ink-3); }
.town-footer .footer { color: inherit; padding: 14px 16px 36px; }
.footer p { margin: 2px 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .cal-layout, .two-col { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 10px; }
  .search { flex-basis: 100%; order: 3; }
  .nav a { padding: 6px 9px; }
  .brand small { display: none; }
  .mode { width: 100%; }
  .mode button { flex: 1; justify-content: center; }
  .cal-head h2 { font-size: 20px; }
  .cal-head h2 small { display: none; }
  .cell { min-height: 58px; padding: 4px; align-items: center; }
  .cell .num { justify-content: center; }
  .cell .num .cnt, .cell .ev, .cell .more { display: none; }
  .dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cat); }
  .dow span { text-align: center; padding: 6px 0; }
  .item { grid-template-columns: 54px minmax(0, 1fr); }
  .drawer-panel { padding: 22px 16px 40px; }
}

/* category colour hooks (last, so they win over component defaults) */
[data-cat="open_mic"] { --cat: var(--c-open_mic); }
[data-cat="jam"] { --cat: var(--c-jam); }
[data-cat="songwriter"] { --cat: var(--c-songwriter); }
[data-cat="concert"] { --cat: var(--c-concert); }
[data-cat="dj"] { --cat: var(--c-dj); }

/* ================================================================ Front Range scene */
.scene { position: relative; overflow: hidden; color: var(--hero-ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%); margin-top: -1px; }
.scene .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars); transition: opacity .6s; pointer-events: none; }
.scene .moon { position: absolute; width: 64px; height: 64px; border-radius: 50%; right: max(28px, calc((100vw - 1320px) / 2 + 8px)); top: 26px;
  background: radial-gradient(circle at 38% 35%, #fff, var(--moon) 55%, color-mix(in srgb, var(--moon) 80%, #9aa) 100%);
  box-shadow: 0 0 60px 18px var(--moon-glow); opacity: var(--moon-show); transition: opacity .6s; }
:root[data-theme="light"] .scene .moon, .scene.light .moon { }
.scene .ridges { position: relative; display: block; width: 100%; height: auto; margin-top: -44px; z-index: 1; }
.scene .ridges .flank { fill: url(#flankGrad); }
.scene .ridges .hills { fill: url(#hillGrad); }

.scene .ridges .knob { fill: var(--flank-1); opacity: .9; }
.scene .ridges .notch-sun { opacity: var(--notch-sun); transition: opacity .6s; }
.scene .ridges .ledges { fill: var(--ridge-mid-1); opacity: .35; }
.scene .ridges .cracks { fill: none; stroke: var(--ridge-mid-2); stroke-width: 1.6; opacity: .35; stroke-linecap: round; }
.scene .ridges .far { fill: var(--ridge-far); }
.scene .ridges .mid { fill: url(#rockGrad); }
.scene .ridges .near { fill: var(--ridge-near); }
.scene .ridges .pines { fill: var(--pines); }
.scene .ridges .fade { fill: var(--bg); }
.scene .ridges .birds { fill: none; stroke: var(--hero-ink); stroke-width: 1.4; opacity: .55; }

.hero-copy { position: relative; z-index: 2; text-align: center; padding: 46px 16px 0; }
.hero-copy .eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; color: var(--hero-ink-2); }
.hero-copy .eyebrow b { display: block; color: var(--brand); font-weight: 600; letter-spacing: .04em; margin-top: 2px; }
.hero-copy .eyebrow::after { content: ""; display: block; width: 120px; height: 1px; margin: 12px auto 0; background: color-mix(in srgb, var(--brand) 70%, transparent); }
.hero-copy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6.4vw, 76px); letter-spacing: .2em; text-transform: uppercase;
  line-height: 1.02; margin: 0 0 0 .2em; text-shadow: 0 2px 24px color-mix(in srgb, var(--sky-1) 60%, transparent); }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-copy .lede { max-width: 620px; margin: 14px auto 0; font-size: 16px; color: var(--hero-ink-2); }
.hero-side { position: absolute; z-index: 2; right: max(16px, calc((100vw - 1320px) / 2 + 16px)); top: 120px; writing-mode: vertical-rl;
  font-size: 12px; letter-spacing: .14em; color: color-mix(in srgb, var(--hero-ink-2) 75%, transparent); }
.hero-stats { position: relative; z-index: 2; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--hero-ink-2); }
.hero-stats .stats-label { flex-basis: 100%; text-align: center; margin-top: -14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero-stats b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--hero-ink); letter-spacing: .04em; }
.scene.compact .hero-copy { padding-top: 26px; }
.scene.compact .hero-copy h1 { font-size: clamp(24px, 4.4vw, 46px); }
.scene.compact .hero-copy .lede, .scene.compact .hero-stats, .scene.compact .hero-side { display: none; }
.scene.compact .moon { width: 46px; height: 46px; top: 18px; }
.scene.compact .ridges { margin-top: -40px; }

main.wrap { position: relative; z-index: 3; margin-top: -34px; }
.toolbar { padding-top: 0; }
.card { backdrop-filter: none; }
.footer p { margin: 2px 0; }

@media (max-width: 720px) {
  .scene .ridges { margin-top: 0; height: 170px; }   /* viewBox slice keeps Horsetooth centred */
  .mode button { font-size: 14px; padding: 9px 10px; }
  .hero-copy { padding-top: 34px; }
  .hero-copy h1 { letter-spacing: .12em; }
  .hero-side { display: none; }
  /* phones: small moon in the top-right corner, in its own space above the title */
  .scene .moon { width: 28px; height: 28px; right: 16px; top: 12px; box-shadow: 0 0 24px 6px var(--moon-glow); }
  .scene:not(.compact) .hero-copy { padding-top: 50px; }
  .scene.compact .moon { width: 24px; height: 24px; right: 16px; top: 10px; box-shadow: 0 0 20px 5px var(--moon-glow); }
  main.wrap { margin-top: -14px; }
  .theme-btn { order: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene .stars .tw { animation: twinkle 4s ease-in-out infinite; }
  @keyframes twinkle { 50% { opacity: .25; } }
}

.t .nowrap { white-space: nowrap; }
