:root {
    --ink: #171613;
    --muted: #726c63;
    --paper: #f2efe8;
    --surface: #fbfaf6;
    --line: #d8d1c5;
    --fig: #9b4039;
    --moss: #53624c;
    --blue: #315e67;
    --gold: #b4873d;
    --shadow: 0 20px 60px rgba(46, 39, 29, 0.08);
}

/* Interactive analytics and archive refinements */
:root {
  --health-good: #287f73;
  --health-empty: #d4a23b;
  --health-missing: #c65d55;
  --health-artist: #7773a8;
  --health-attention: #7b6a58;
}

.chart-with-axis {
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
}

.chart-y-axis {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0 0 19px;
  text-align: right;
}

.chart-with-axis .bar-chart {
  background: linear-gradient(
    to bottom,
    transparent 49.75%,
    var(--line) 50%,
    transparent 50.25%
  );
  border-bottom: 1px solid var(--line);
}

.stat-drilldown {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: -12px 0;
  padding: 12px 0;
  width: 100%;
}

.stat-drilldown:hover span {
  color: var(--fig);
}

.legend-list .swatch.good {
  background: var(--health-good);
}

.legend-list .swatch.empty {
  background: var(--health-empty);
}

.legend-list .swatch.missing {
  background: var(--health-missing);
}

.legend-list .swatch.artist {
  background: var(--health-artist);
}

.legend-list .swatch.attention {
  background: var(--health-attention);
}

.album-card-link {
  transition: color .18s ease, transform .18s ease;
}

.album-card-link:hover,
.album-card-link.is-selected {
  color: var(--fig);
  transform: translateY(-2px);
}

.album-card-link.is-selected .album-art {
  outline: 3px solid rgba(155, 64, 57, .24);
  outline-offset: 3px;
}

.album-song-detail {
  border-top: 1px solid var(--ink);
  margin-top: 24px;
  padding-top: 22px;
  scroll-margin-top: 110px;
}

.album-song-detail .eyebrow {
  margin: 0 0 5px;
}

.album-song-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.album-song-list li {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 11px 0;
}

.album-song-list small {
  color: var(--muted);
}

.album-song-list strong {
  color: var(--fig);
}

.performance-table-head,
.performance-table-row {
  display: grid;
  gap: 20px;
  grid-template-columns:
    100px minmax(160px, .9fr) minmax(150px, 1fr)
    minmax(180px, 1.2fr) 150px;
}

.performance-table-head {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 0 0 10px;
  text-transform: uppercase;
}

.performance-table-row {
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.performance-table-row time {
  color: var(--fig);
  font-size: 12px;
  font-weight: 700;
}

.performance-event h3,
.performance-event p {
  margin: 0;
}

.performance-event h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.performance-event p,
.performance-notes,
.billmates {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.performance-notes p {
  margin: 0;
}

.performance-notes strong {
  color: var(--ink);
}

.billmates a {
  color: var(--blue);
  font-weight: 700;
}

.cell-empty {
  color: #9b948a;
  font-style: italic;
}

.active-filter-bar {
  align-items: center;
  background: rgba(49, 94, 103, .08);
  border: 1px solid rgba(49, 94, 103, .18);
  display: flex;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 13px 16px;
}

.active-filter-bar div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-bar span,
.active-filter-bar a {
  color: var(--muted);
  font-size: 12px;
}

.active-filter-bar strong {
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 10px;
}

.active-filter-bar a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 720px) {
  .performance-table-head {
    display: none;
  }

  .performance-table-row {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .performance-table-row > *::before {
    color: var(--muted);
    display: block;
    font-size: 9px;
    font-style: normal;
    letter-spacing: .08em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .performance-table-row time::before {
    content: "Date";
  }

  .performance-event::before {
    content: "Performance";
  }

  .performance-notes::before {
    content: "Notes";
  }

  .billmates::before {
    content: "Also on the bill";
  }

  .performance-status::before {
    content: "Setlist";
  }

  .active-filter-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .album-song-list li {
    grid-template-columns: 1fr auto;
  }

  .album-song-list small {
    grid-column: 1;
  }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, sans-serif;
    letter-spacing: 0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    background: rgba(242, 239, 232, 0.94);
    min-height: 78px;
    padding: 0 4vw;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.brand {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.brand span {
    font-style: italic;
}

.site-header nav {
    align-items: center;
    display: flex;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.nav-logout {
    display: inline-flex;
    margin: 0;
}

.nav-logout button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.site-header nav a {
    border-radius: 999px;
    color: var(--muted);
    padding: 9px 12px;
    transition: background 160ms ease, color 160ms ease;
}

.site-header nav a:hover,
.site-header nav a.active {
    background: rgba(23, 22, 19, 0.07);
    color: var(--ink);
}

.site-header nav a.nav-add {
    border: 1px solid var(--ink);
    color: var(--ink);
    margin-left: 8px;
}

.site-header nav a.nav-add:hover,
.site-header nav a.nav-add.active {
    background: var(--ink);
    color: var(--surface);
}

main {
    margin: 0 auto;
    max-width: 1220px;
    padding: 54px 28px 90px;
}

.messages {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.message {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 4px;
    margin: 0;
    padding: 12px 14px;
}

.message.error {
    border-left-color: var(--fig);
}

.message.success {
    border-left-color: var(--moss);
}

.hero,
.page-title {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.hero h1,
.page-title h1 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    line-height: 0.94;
    margin: 0;
    max-width: 780px;
    letter-spacing: -0.025em;
}

.eyebrow {
    color: var(--fig);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.year-filter select {
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    font: inherit;
    padding: 10px 36px 10px 12px;
}

.metric-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 28px;
}

.metric-grid article {
    background: var(--ink);
    color: var(--surface);
    min-height: 130px;
    padding: 24px;
}

.metric-grid span {
    display: block;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 58px;
    line-height: 1;
}

.metric-grid p {
    color: #d8cbbd;
    margin: 12px 0 0;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
    margin-bottom: 18px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-7 {
    grid-column: span 7;
}

.span-6 {
    grid-column: span 6;
}

.span-12 {
    grid-column: span 12;
}

.panel h2 {
    font-size: 18px;
    margin: 0 0 18px;
}

.panel-head {
    align-items: baseline;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-head h2,
.panel-head p {
    margin: 0;
}

.panel-head p,
.panel-head a {
    color: var(--muted);
    font-size: 13px;
}

.bar-chart {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(12, minmax(18px, 1fr));
    height: 260px;
}

.bar-chart.compact {
    grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
    height: 220px;
}

.bar {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: end;
}

.bar i {
    background: linear-gradient(180deg, var(--fig), var(--gold));
    border-radius: 4px 4px 0 0;
    display: block;
    min-height: 3px;
    width: 100%;
}

.bar span {
    color: var(--muted);
    font-size: 11px;
}

.rank-list,
.compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-list li,
.compact-list li {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 0;
}

.rank-list li:first-child,
.compact-list li:first-child {
    border-top: 0;
}

.rank-list span,
.rank-list strong,
.compact-list strong {
    color: var(--blue);
    font-weight: 700;
}

.event-list {
    display: grid;
    gap: 0;
}

.recent-shows-heading > div:first-child p {
    margin: 5px 0 0;
}

.recent-shows-heading-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-shows-heading-actions span {
    color: var(--muted);
    font-size: 12px;
}

.recent-shows-heading-actions a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.recent-shows-head,
.event-row {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: 96px minmax(210px, 1.35fr) minmax(145px, .8fr) minmax(115px, .6fr) minmax(160px, .9fr) 48px;
}

.recent-shows-head {
    border-bottom: 1px solid var(--ink);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    padding: 4px 0 10px;
    text-transform: uppercase;
}

.event-row {
    border-top: 1px solid var(--line);
    padding: 20px 0;
}

.recent-shows-head + .event-row {
    border-top: 0;
}

.event-row time {
    color: var(--fig);
    font-weight: 700;
    padding-top: 5px;
}

.event-row h3 {
    margin: 0;
}

.event-row p {
    color: var(--muted);
    margin: 0;
}

.recent-event-title {
    color: var(--blue);
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 7px;
}

.recent-show-venue,
.recent-show-ticket {
    display: grid;
    gap: 4px;
}

.recent-show-venue strong,
.recent-show-ticket strong {
    font-size: 13px;
}

.recent-show-venue span,
.recent-show-ticket span,
.recent-setlist-missing {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.recent-show-setlists {
    display: grid;
    gap: 6px;
}

.recent-show-setlists a {
    align-items: baseline;
    color: var(--blue);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 3px 7px;
    justify-content: space-between;
}

.recent-show-setlists a span {
    font-weight: 700;
}

.recent-show-setlists a strong {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.recent-event-link {
    color: var(--fig);
    font-size: 12px;
    font-weight: 700;
    padding-top: 3px;
    text-align: right;
}

.artist-line a {
    color: var(--ink);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.artist-line a:hover {
    color: var(--fig);
}

.recent-show-artists {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(23px, 2.1vw, 30px);
    line-height: 1.12;
}

.recent-show-meta {
    font-size: 14px;
    margin-top: 7px !important;
}

.recent-show-meta span:first-child {
    color: var(--ink);
    font-weight: 650;
}

.artist-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
}

.artist-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
    min-height: 280px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.artist-tile:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.artist-card-copy > span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.artist-tile strong,
.pill-link {
    color: var(--fig);
    font-size: 13px;
}

.coverage-block {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 170px 1fr;
}

.donut {
    align-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    justify-items: center;
    position: relative;
}

.donut::after {
    background: var(--surface);
    border-radius: 50%;
    content: "";
    height: 62%;
    position: absolute;
    width: 62%;
}

.donut span {
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 42px;
    position: relative;
    z-index: 1;
}

.legend-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legend-list li {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 14px 1fr auto;
}

.swatch {
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.swatch.good,
.stack-row .new {
    background: var(--moss);
}

.swatch.empty,
.stack-row .repeat {
    background: var(--gold);
}

.swatch.missing {
    background: var(--fig);
}

.swatch.artist {
    background: var(--blue);
}

.swatch.attention {
    background: #7b6a58;
}

.stacked-chart {
    display: grid;
    gap: 10px;
}

.artist-mix-head {
    align-items: flex-start;
}

.artist-mix-head > div:first-child {
    max-width: 680px;
}

.artist-mix-head p {
    line-height: 1.5;
    margin-top: 5px;
}

.artist-mix-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: flex-end;
}

.artist-mix-legend span,
.stack-breakdown > a {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    white-space: nowrap;
}

.artist-mix-legend i,
.stack-breakdown i {
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    width: 9px;
}

.artist-mix-legend .new,
.stack-breakdown .new {
    background: var(--moss);
}

.artist-mix-legend .repeat,
.stack-breakdown .repeat {
    background: var(--gold);
}

.stack-chart-labels {
    color: var(--muted);
    display: grid;
    font-size: 10px;
    font-weight: 700;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) 174px 48px;
    letter-spacing: .08em;
    padding-bottom: 2px;
    text-transform: uppercase;
}

.stack-chart-labels span:last-child {
    text-align: right;
}

.stack-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) 174px 48px;
    min-height: 28px;
}

.stack-year,
.stack-total {
    font-variant-numeric: tabular-nums;
}

.stack-year {
    font-size: 14px;
}

.stack-track {
    background: #ece2d5;
    border-radius: 5px;
    display: flex;
    height: 22px;
    overflow: visible;
}

.stack-segment {
    display: block;
    height: 100%;
    min-width: 0;
    position: relative;
    transition: filter 140ms ease, transform 140ms ease;
}

.stack-segment:first-child {
    border-radius: 5px 0 0 5px;
}

.stack-segment:last-child {
    border-radius: 0 5px 5px 0;
}

.stack-segment:only-child {
    border-radius: 5px;
}

.stack-segment:hover,
.stack-segment:focus-visible {
    filter: brightness(1.12) saturate(1.08);
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    transform: scaleY(1.12);
    z-index: 2;
}

.stack-segment::after {
    background: var(--ink);
    border-radius: 5px;
    bottom: calc(100% + 9px);
    color: var(--surface);
    content: attr(data-tooltip);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 6px 8px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 3px);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: nowrap;
    z-index: 3;
}

.stack-segment:hover::after,
.stack-segment:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.stack-breakdown {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-breakdown a {
    border-radius: 4px;
    color: var(--muted);
    padding: 3px 2px;
}

.stack-breakdown a:hover,
.stack-breakdown a:focus-visible {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stack-breakdown strong {
    color: var(--ink);
    font-size: 13px;
}

.stack-total {
    font-size: 15px;
    text-align: right;
}

.stack-total-label {
    display: none;
}

.compact-list em {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

.issue-summary {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 18px;
}

.issue-summary article {
    background: var(--ink);
    color: var(--surface);
    padding: 18px;
}

.issue-summary span {
    display: block;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 42px;
    line-height: 1;
}

.issue-summary p {
    color: #d8cbbd;
    margin: 8px 0 0;
}

.filter-panel {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px;
}

.filter-panel p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.segmented-control {
    background: #ece2d5;
    border-radius: 6px;
    display: flex;
    gap: 3px;
    padding: 3px;
}

.segmented-control a {
    border-radius: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
}

.segmented-control a.active {
    background: var(--ink);
    color: var(--surface);
}

.segmented-control strong {
    margin-left: 6px;
}

.status-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 13px;
}

.issue-list {
    display: grid;
    gap: 12px;
}

.issue-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    gap: 0;
    overflow: hidden;
}

.issue-main {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 116px minmax(220px, 1fr) auto;
    padding: 18px;
}

.issue-row time {
    color: var(--fig);
    font-weight: 700;
}

.issue-row h3 {
    margin: 0 0 5px;
}

.issue-row p,
.empty-state {
    color: var(--muted);
    margin: 0;
}

.issue-meta {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.status-chip {
    padding: 7px 10px;
}

.status-chip.missing {
    color: var(--fig);
}

.status-chip.empty {
    color: var(--gold);
}

.status-chip.artist {
    color: var(--blue);
}

.suggestion-stack {
    background: #fbf4ea;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1px;
}

.suggestion-row {
    align-items: center;
    background: var(--surface);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) 54px auto auto auto;
    padding: 14px 18px;
}

.suggestion-row p,
.suggestion-row small,
.no-suggestion {
    color: var(--muted);
    margin: 0;
}

.suggestion-row small {
    display: block;
    margin-top: 5px;
}

.confidence {
    color: var(--blue);
    font-weight: 800;
}

.action-button {
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 11px;
}

.action-button.accept {
    background: var(--moss);
    color: white;
}

.action-button.reject {
    background: #eaded0;
    color: var(--ink);
}

.no-suggestion {
    padding: 14px 18px;
}

/* Editorial details and archive screens */
.page-deck {
    color: var(--muted);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 5px 36px;
    max-width: 340px;
}

.artist-index-intro {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artist-index-intro .pill-link {
    margin-left: 36px;
}

.artist-index {
    border-top: 1px solid var(--ink);
    padding-top: 20px;
}

.artist-index .empty-state {
    grid-column: 1 / -1;
    padding: 28px 0;
}

.artist-image {
    aspect-ratio: 4 / 3;
    background: #d9d0c2;
    overflow: hidden;
}

.artist-image img,
.artist-detail-photo img,
.album-art img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.artist-image--placeholder,
.album-art--unknown {
    align-items: center;
    background: radial-gradient(circle at 74% 25%, rgba(255, 255, 255, .36), transparent 22%),
    linear-gradient(135deg, #9c5548, #344f50);
    color: rgba(255, 255, 255, 0.86);
    display: flex;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 92px;
    justify-content: center;
}

.artist-card-copy {
    padding: 16px 18px 18px;
}

.artist-detail-photo {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 0 0 310px;
    max-height: 200px;
    overflow: hidden;
}

.artist-detail-photo.artist-image--placeholder {
    font-size: 90px;
}

.artist-facts {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
}

.artist-facts article {
    border-left: 1px solid var(--line);
    padding: 20px;
}

.artist-facts article:first-child {
    border-left: 0;
}

.artist-facts strong {
    display: block;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}

.artist-facts span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 7px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.artist-facts .fact-warning strong {
    color: var(--fig);
}

.album-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.album-card {
    align-items: center;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-columns: 86px 1fr;
    padding-top: 14px;
}

.album-card:nth-child(-n+2) {
    border-top: 0;
    padding-top: 0;
}

.album-art {
    aspect-ratio: 1;
    background: radial-gradient(circle at 76% 22%, rgba(255, 255, 255, .36), transparent 24%),
        linear-gradient(135deg, #a86a5d, #36585a);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.album-art--unknown {
    font-size: 44px;
}

.album-art-placeholder {
    align-items: center;
    color: rgba(255, 255, 255, .84);
    display: flex;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 42px;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.album-art img {
    display: block;
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 180ms ease;
}

.album-art img.is-loaded {
    opacity: 1;
}

.album-copy h3 {
    font-size: 14px;
    margin: 0 0 5px;
}

.album-copy p {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 10px;
}

.album-meter {
    background: #e5ded2;
    height: 4px;
}

.album-meter i {
    background: var(--fig);
    display: block;
    height: 100%;
}

.performance-panel {
    margin-top: 18px;
}

.performance-status {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.status-chip.complete {
    color: var(--moss);
}

.primary-button,
.text-button {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
}

.primary-button {
    background: var(--ink);
    border-radius: 4px;
    color: white;
    min-height: 44px;
    padding: 0 18px;
}

.primary-button:hover {
    background: var(--fig);
}

.text-button {
    color: var(--muted);
    padding: 0 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.event-filter-card {
    align-items: end;
    background: var(--ink);
    border-radius: 10px;
    color: var(--surface);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(180px, .7fr) 2fr;
    margin-bottom: 24px;
    padding: 22px;
}

.filter-intro span {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 26px;
}

.filter-intro p {
    color: #bbb2a7;
    font-size: 12px;
    line-height: 1.5;
    margin: 5px 0 0;
}

.event-filters {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: 1.5fr .65fr 1fr auto auto;
}

.event-filters label,
.editorial-form label {
    display: grid;
    gap: 7px;
}

.event-filters label > span,
.editorial-form label > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-filters input,
.event-filters select,
.editorial-form input,
.editorial-form textarea {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.event-filters .primary-button {
    background: var(--surface);
    color: var(--ink);
    white-space: nowrap;
}

.event-filters .text-button {
    color: #cfc6ba;
    min-height: 44px;
}

.archive-list {
    border-top: 1px solid var(--ink);
}

.archive-list-head {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    padding: 13px 0;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.archive-list-head p {
    margin: 0;
}

.archive-event {
    align-items: start;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: 82px minmax(0, 1fr) minmax(130px, 180px);
    padding: 24px 0 25px;
}

.archive-event > time {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.archive-event > time span,
.archive-event > time em {
    color: var(--fig);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.archive-event > time strong {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 39px;
    font-weight: 400;
    grid-row: span 2;
    line-height: .9;
}

.archive-artists {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 400;
    gap: 0 10px;
    line-height: 1;
    margin: 0;
}

.archive-artists a {
    color: var(--ink);
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.archive-artists a:hover,
.archive-artists a:focus-visible {
    color: var(--fig);
    text-decoration-color: currentColor;
}

.archive-artists .artist-divider {
    color: var(--line);
}

.archive-artists .missing-artist {
    color: var(--muted);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
}

.archive-event-details {
    align-items: baseline;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px 14px;
    margin: 9px 0 0;
}

.archive-event-details strong {
    color: var(--ink);
    font-weight: 650;
}

.archive-event-title {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: .03em;
}

.archive-event-link {
    color: var(--fig);
    font-weight: 700;
}

.archive-setlists {
    border-left: 1px solid var(--line);
    display: grid;
    gap: 7px;
    padding-left: 18px;
}

.archive-setlists > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.archive-setlists a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.archive-setlists small {
    color: var(--muted);
    font-size: 11px;
}

.archive-event-notes {
    border-left: 2px solid var(--line);
    display: grid;
    gap: 2px;
    margin: 10px 0 0;
    padding-left: 10px;
}

.archive-event-notes dt {
    color: var(--fig);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.archive-event-notes dd {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.archive-event-notes dd span {
    color: var(--muted);
}

.pagination {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
}

.pagination a {
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
}

.pagination span {
    color: var(--muted);
    font-size: 12px;
}

.event-detail-title .page-deck {
    margin: 12px 0 0;
}

.event-detail-facts {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--ink);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 28px;
}

.event-detail-facts article {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 116px;
    padding: 20px;
}

.event-detail-facts article + article {
    border-left: 1px solid var(--line);
}

.event-detail-facts span,
.event-detail-facts small {
    color: var(--muted);
    font-size: 11px;
}

.event-detail-facts span {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-detail-facts strong {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.05;
}

.event-detail-notes {
    margin-bottom: 28px;
}

.event-detail-notes > p:last-child {
    line-height: 1.65;
    margin-bottom: 0;
}

.event-setlists {
    display: grid;
    gap: 20px;
}

.section-heading,
.event-setlist > header,
.event-setlist-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.section-heading {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 14px;
}

.section-heading h2,
.event-setlist h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    margin: 4px 0 0;
}

.section-heading > p,
.event-setlist-actions > span {
    color: var(--muted);
    font-size: 12px;
}

.event-setlist > header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 17px;
}

.event-setlist-actions {
    gap: 14px;
}

.event-song-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-song-list li {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 16px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 13px 0;
}

.event-song-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.song-position {
    color: var(--fig);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 22px;
}

.event-song-list li > div:nth-child(2) {
    display: grid;
    gap: 2px;
}

.event-song-list strong {
    font-size: 14px;
}

.event-song-list small {
    color: var(--muted);
    font-size: 11px;
}

.song-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.song-flags span {
    background: rgba(49, 94, 103, .09);
    border-radius: 999px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 5px 8px;
    text-transform: uppercase;
}

.form-layout {
    border-top: 1px solid var(--ink);
    display: grid;
    gap: 70px;
    grid-template-columns: .72fr 1.7fr;
    padding-top: 26px;
}

.form-notes {
    color: var(--muted);
    line-height: 1.55;
}

.form-notes h2 {
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    margin: 8px 0;
}

.step-number {
    color: var(--fig);
    font-size: 12px;
    font-weight: 800;
}

.privacy-note {
    border-top: 1px solid var(--line);
    font-size: 12px;
    margin-top: 28px;
    padding-top: 14px;
}

.editorial-form {
    display: grid;
    gap: 20px;
}

.editorial-form input,
.editorial-form textarea {
    background: var(--surface);
}

.editorial-form textarea {
    resize: vertical;
}

.editorial-form small {
    color: var(--muted);
}

.editorial-form label > span em {
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-row.two-up {
    grid-template-columns: .65fr 1.35fr;
}

.form-row.three-up {
    grid-template-columns: 1.2fr .7fr 1fr;
}

.form-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding-top: 20px;
}

.errorlist,
.form-errors {
    color: var(--fig);
    font-size: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer {
    align-items: baseline;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: 12px;
    gap: 26px;
    justify-content: space-between;
    margin: 0 4vw;
    padding: 26px 0 38px;
}

.site-footer span {
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 22px;
}

.site-footer p {
    margin: 0 auto 0 0;
}

.site-footer a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-shell {
    align-items: start;
    display: grid;
    gap: clamp(32px, 8vw, 110px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    margin: clamp(50px, 10vh, 110px) auto;
    max-width: 1000px;
}

.login-intro h1 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(42px, 6vw, 74px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: .98;
    margin: 12px 0 20px;
}

.login-intro > p:last-child {
    color: var(--muted);
}

.login-form {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(24px, 4vw, 40px);
}

@media (max-width: 820px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    main {
        max-width: 100%;
        padding: 36px 20px 64px;
        width: 100%;
    }

    .site-header,
    .hero,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .site-header {
        position: static;
        padding: 18px 20px;
    }

    .site-header nav {
        gap: 2px;
        flex-wrap: nowrap;
        margin: 0 -20px;
        overflow-x: auto;
        padding: 0 20px 2px;
        scrollbar-width: none;
        width: 100%;
    }

    .site-header nav::-webkit-scrollbar {
        display: none;
    }

    .site-header nav a,
    .nav-logout {
        flex: 0 0 auto;
    }

    .site-header nav a {
        padding: 8px 9px;
    }

    .site-header nav a.nav-add {
        margin-left: 0;
    }

    .hero h1,
    .page-title h1 {
        font-size: clamp(44px, 13vw, 58px);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .issue-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .segmented-control {
        align-items: stretch;
        flex-direction: column;
    }

    .span-4,
    .span-6,
    .span-5,
    .span-7,
    .span-12 {
        grid-column: span 1;
    }

    .event-row,
    .issue-main,
    .suggestion-row,
    .coverage-block {
        grid-template-columns: 1fr;
    }

    .recent-shows-head {
        display: none;
    }

    .dashboard-event-row {
        gap: 14px;
    }

    .dashboard-event-row > time {
        padding-top: 0;
    }

    .recent-show-venue,
    .recent-show-ticket,
    .recent-show-setlists {
        border-top: 1px solid var(--line);
        padding-top: 10px;
    }

    .recent-show-venue::before,
    .recent-show-ticket::before,
    .recent-show-setlists::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .recent-event-link {
        border: 1px solid var(--ink);
        border-radius: 4px;
        justify-self: start;
        padding: 9px 13px;
        text-align: left;
    }

    .dashboard-grid > *,
    .panel,
    .event-filter-card,
    .event-filters,
    .archive-list,
    .archive-event,
    .login-shell,
    .form-layout,
    .editorial-form {
        min-width: 0;
        width: 100%;
    }

    .login-shell {
        gap: 26px;
        grid-template-columns: minmax(0, 1fr);
        margin: 10px auto 24px;
        max-width: 520px;
    }

    .login-intro h1 {
        font-size: clamp(40px, 12vw, 56px);
        line-height: 1;
        margin: 9px 0 14px;
    }

    .login-intro > p:last-child {
        line-height: 1.55;
        margin-bottom: 0;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .artist-mix-legend {
        justify-content: flex-start;
    }

    .stack-chart-labels {
        display: none;
    }

    .stack-row {
        gap: 7px 10px;
        grid-template-columns: 44px minmax(0, 1fr) 54px;
        padding: 5px 0;
    }

    .stack-track {
        height: 20px;
    }

    .stack-breakdown {
        grid-column: 2 / 4;
        justify-content: start;
    }

    .stack-total-label {
        display: inline;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .recent-shows-heading-actions {
        align-items: flex-start;
    }

    .bar-chart {
        gap: 4px;
        grid-template-columns: repeat(12, minmax(10px, 1fr));
        height: 220px;
    }

    .bar-chart.compact {
        grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
        height: 200px;
    }

    .issue-meta {
        justify-content: flex-start;
    }

    .page-deck {
        margin-left: 0;
    }

    .artist-index-intro .pill-link {
        margin-left: 0;
    }

    .artist-detail-photo {
        flex-basis: auto;
        width: 100%;
    }

    .artist-facts,
    .album-grid,
    .event-detail-facts,
    .event-filter-card,
    .event-filters,
    .archive-event,
    .form-layout,
    .form-row.two-up,
    .form-row.three-up {
        grid-template-columns: 1fr;
    }

    .event-filters input,
    .event-filters select,
    .editorial-form input,
    .editorial-form textarea {
        min-width: 0;
    }

    .artist-facts article {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .event-detail-facts article + article {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .section-heading,
    .event-setlist > header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .album-card:nth-child(2) {
        border-top: 1px solid var(--line);
        padding-top: 14px;
    }

    .performance-status {
        justify-content: flex-start;
    }

    .archive-event {
        gap: 12px;
    }

    .archive-setlists {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 12px 0 0;
    }

    .archive-event > time {
        justify-self: start;
        width: 76px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    main {
        padding: 26px 16px 52px;
    }

    .site-header {
        gap: 12px;
        padding: 15px 16px;
    }

    .site-header nav {
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .hero,
    .page-title {
        margin-bottom: 24px;
    }

    .hero h1,
    .page-title h1 {
        font-size: clamp(38px, 13vw, 50px);
        line-height: .98;
    }

    .page-deck {
        font-size: 19px;
    }

    .metric-grid article,
    .issue-summary article {
        min-height: 104px;
        padding: 16px;
    }

    .metric-grid span,
    .issue-summary span {
        font-size: 44px;
    }

    .panel {
        border-radius: 7px;
        padding: 18px 16px;
    }

    .chart-with-axis {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .coverage-block {
        justify-items: start;
    }

    .donut {
        max-width: 160px;
        width: 100%;
    }

    .artist-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .artist-tile {
        min-height: 0;
    }

    .artist-detail-photo {
        max-height: 260px;
    }

    .album-card {
        gap: 12px;
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .album-song-list li {
        gap: 6px 10px;
    }

    .event-filter-card,
    .login-form {
        border-radius: 7px;
        padding: 18px 16px;
    }

    .event-filters .primary-button,
    .login-form .primary-button {
        width: 100%;
    }

    .archive-list-head {
        align-items: flex-start;
        gap: 6px;
    }

    .archive-event {
        padding: 18px 0;
    }

    .archive-artists {
        font-size: 30px;
    }

    .archive-artists a {
        overflow-wrap: anywhere;
    }

    .event-setlist-actions {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .event-song-list li {
        gap: 10px;
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .song-flags {
        grid-column: 2;
        justify-content: flex-start;
    }

    .suggestion-row form,
    .suggestion-row .action-button {
        width: 100%;
    }

    .site-footer {
        gap: 10px;
        margin: 0 16px;
        padding-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .album-art img,
    .stack-segment,
    .stack-segment::after {
        transition: none;
    }
}
