:root {
  --bg: #f4f3ef;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #dddcd6;
  --track: #e8e7e1;
  --ink: #1a1a1a;
  --year-pad: 32px;
  --section-pad: 72px;
  --chart-gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--bg);
  overflow-x: clip;
}

html:not(.is-ready) body {
  visibility: hidden;
}

body {
  margin: 0 auto;
  max-width: 1120px;
  padding: 40px 32px 96px;
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  overflow-x: clip;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

header > div:first-child {
  flex: none;
}

.wordmark {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark button,
.wordmark a {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
}

#lede {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

#lede a:hover span {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.tabs {
  display: flex;
  gap: 18px;
}

.back {
  margin: -8px 0 28px;
}

.back button,
.back a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.back button:hover,
.back a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

.tab,
.tabs a,
.date-nav button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.tab.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tab:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
}

.range-tab {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}

.range-tab.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.range-tab:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.artist-sorts {
  margin: 10px 0 0;
}

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

.compare .hero {
  margin-bottom: 6px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-copy > h2 {
  margin: 0;
}

.hero-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.hero-title h2 {
  margin: 0;
  flex: none;
}

.day-history-link {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.day-history-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.week-jump,
.day-jump {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.week-jump-title,
.day-jump-title {
  white-space: nowrap;
}

.week-jump-prev,
.week-jump-next,
.day-jump-prev,
.day-jump-next {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.week-jump-prev svg,
.week-jump-next svg,
.day-jump-prev svg,
.day-jump-next svg {
  display: block;
  width: 16px;
  height: 16px;
}

.week-jump-prev:hover:not(:disabled),
.week-jump-next:hover:not(:disabled),
.day-jump-prev:hover:not(:disabled),
.day-jump-next:hover:not(:disabled) {
  background: var(--track);
}

.week-jump-prev:disabled,
.week-jump-next:disabled,
.day-jump-prev:disabled,
.day-jump-next:disabled {
  color: var(--line);
  cursor: default;
}

.week-jump-cal,
.day-jump-cal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 2px 0 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.week-jump-cal:hover,
.week-jump-cal[aria-expanded="true"],
.day-jump-cal:hover,
.day-jump-cal[aria-expanded="true"] {
  color: var(--text);
}

.week-jump-cal:hover .cal-btn,
.week-jump-cal[aria-expanded="true"] .cal-btn,
.day-jump-cal:hover .cal-btn,
.day-jump-cal[aria-expanded="true"] .cal-btn {
  color: var(--text);
  background: var(--track);
}

.week-jump .cal-btn,
.day-jump .cal-btn {
  width: 24px;
  height: 24px;
}

.week-jump .cal-btn svg,
.day-jump .cal-btn svg {
  display: block;
  width: 14px;
  height: 14px;
}

.stat {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.stat-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.stat-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.stat-sub-num {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--text);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 550;
  letter-spacing: -0.03em;
}

.stat .stat-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-kicker {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.meta,
.status {
  color: var(--muted);
  font-size: 13px;
}

.meta-num {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meta {
  margin: 0 0 20px;
}

.meta:empty {
  display: none;
}

.week-days {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding-top: 16px;
  padding-bottom: 16px;
}

.week-day {
  display: inline-flex;
  align-items: baseline;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.week-day:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--muted);
  text-decoration: none;
}

.week-day:hover:not(:disabled) {
  color: var(--text);
}

.week-day:hover:not(:disabled) span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.week-day.is-selected {
  color: var(--text);
}

.week-day:disabled {
  cursor: default;
  opacity: 0.5;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.date-nav > button {
  display: grid;
  place-items: center;
  flex: none;
  align-self: stretch;
  width: 36px;
  min-height: 32px;
  color: var(--ink);
  padding: 0;
  border-radius: 6px;
}

.date-nav > button svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.date-nav > button:hover:not(:disabled) {
  background: var(--track);
}

.date-nav > button:disabled {
  color: var(--line);
  cursor: default;
}

.date-nav h1 {
  display: flex;
  align-items: center;
  min-width: 0;
}

.date-nav .date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font: inherit;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

#artist-title {
  overflow-wrap: anywhere;
}

.date-trigger:hover .cal-btn,
.date-trigger[aria-expanded="true"] .cal-btn {
  color: var(--text);
  background: var(--track);
}

.cal-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 16px;
  color: var(--muted);
}

.cal-popover {
  position: fixed;
  z-index: 50;
  width: 280px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.04),
    0 12px 32px rgba(26, 26, 26, 0.12);
}

.cal-popover[hidden] {
  display: none !important;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cal-caption {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.cal-select-wrap {
  position: relative;
  display: inline-flex;
}

.cal-select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  margin: 0;
  padding: 4px 22px 4px 8px;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.cal-select:hover,
.cal-select:focus {
  background-color: var(--track);
  outline: none;
}

.cal-nav button:disabled {
  color: var(--line);
  cursor: default;
}

.cal-nav {
  display: flex;
  gap: 4px;
}

.cal-nav button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.cal-nav button:hover {
  background: var(--track);
}

.cal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cal-today {
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cal-today:hover {
  background: var(--track);
}

.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-dow {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

.cal-grid {
  gap: 2px 0;
}

.cal-day {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.cal-day.is-muted {
  color: #b3b3b3;
}

.cal-day:disabled {
  color: #d0d0d0;
  cursor: default;
}

.cal-day.is-today:not(.is-selected):not(.is-in-week) {
  background: var(--track);
  font-weight: 600;
}

.cal-day.is-enabled:hover {
  background: var(--track);
}

.cal-day.is-selected,
.cal-day.is-selected:hover {
  background: var(--ink);
  color: #fff;
}

.cal-day.is-in-week {
  background: var(--track);
  border-radius: 0;
  width: 100%;
}

.cal-day.is-week-start {
  border-radius: 6px 0 0 6px;
}

.cal-day.is-week-end {
  border-radius: 0 6px 6px 0;
}

.cal-day.is-in-week:hover {
  background: #deddd6;
}

.artist-popover {
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  max-height: min(440px, calc(100vh - 24px));
  padding: 10px;
}

.artist-filter {
  flex: none;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.artist-filter:focus {
  outline: 1px solid var(--text);
  outline-offset: 1px;
}

.artist-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.artist-results::-webkit-scrollbar {
  display: none;
}

.artist-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 8px 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.artist-row span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.artist-row span:last-child {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.artist-row:hover,
.artist-row.is-active {
  background: var(--track);
}

.artist-row.is-selected {
  color: var(--text);
  font-weight: 550;
}

.artist-empty {
  margin: 8px 10px;
}

.heat-cell {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: var(--track);
  cursor: pointer;
}

.heat-cell.is-selected {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

.heat-cell:disabled {
  cursor: default;
  pointer-events: none;
}

.ascii {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px;
  padding: 0 8px;
  overflow: visible;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 1.65;
}

.ascii-row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) 4.5rem;
  gap: 16px;
  align-items: baseline;
  width: 100%;
  height: var(--ascii-row, auto);
  background: none;
  border: 0;
  padding: var(--ascii-pad, 2px) 0;
  color: var(--text);
  text-align: left;
  line-height: var(--ascii-lh, 1.65);
  cursor: pointer;
}

.ascii-row:last-child {
  padding-bottom: 0;
  line-height: var(--ascii-lh, 1);
}

.ascii-row::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
  border-radius: 6px;
  background: var(--track);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.ascii-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 3px;
}

.ascii-row:hover .ascii-name-text,
.ascii-row:focus-visible .ascii-name-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ascii-row.is-focus::before {
  opacity: 1;
}

.ascii-bar {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: pre;
  letter-spacing: 0;
}

.ascii-plays {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}

.ascii-unit {
  color: var(--muted);
}

#day-chart,
#week-chart {
  padding-bottom: var(--section-pad);
}

.compare {
  margin-top: 0;
  padding-top: var(--section-pad);
  padding-bottom: 0;
  border-top: 1px solid var(--line);
}

.compare > :first-child {
  margin-top: 0;
}

#day-previous-section,
#week-previous-section,
#day-changes-section,
#week-changes-section,
.compare:last-child {
  padding-bottom: var(--section-pad);
}

.compare-chart .day-cols-frame {
  padding-bottom: calc(var(--section-pad) - var(--chart-gutter));
}

.compare h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  color: var(--text);
}

.compare-list {
  margin-top: 0;
}

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

.day-cols-frame {
  --bar: 10px;
  --bar-gap: 2px;
  --bar-pad: 12px;
  width: 100%;
  min-width: 0;
}

#view-trends > .day-cols-frame {
  padding-bottom: calc(var(--section-pad) - var(--chart-gutter));
}

#view-artists > .hero {
  margin-bottom: 0;
  padding-bottom: var(--section-pad);
}

.day-cols-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: var(--chart-gutter);
}

.chart-years-track {
  display: flex;
  align-items: flex-end;
  width: max-content;
}

.chart-year-block {
  flex: none;
  width: max-content;
}

.chart-year-break {
  position: relative;
  flex: none;
  align-self: stretch;
  width: calc(var(--year-pad) * 2);
}

.chart-year-break::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--year-pad);
  width: 1px;
  background: var(--line);
}

.day-cols {
  display: flex;
  align-items: flex-end;
  gap: var(--bar-gap);
  width: max-content;
  height: 188px;
  padding: 10px var(--bar-pad);
  overflow: visible;
}

.day-col {
  display: flex;
  align-items: flex-end;
  flex: none;
  width: var(--bar);
  min-width: var(--bar);
  height: 168px;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  cursor: pointer;
}


.day-col-group {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: none;
  gap: var(--bar-gap);
  height: 168px;
  padding: 0 4px;
}

.day-col-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  z-index: 1;
  height: calc(var(--h) + 14px);
  box-sizing: border-box;
  border: 2px solid var(--text);
  border-radius: 4px;
  pointer-events: none;
}

.day-col-stack {
  position: relative;
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 168px;
}

.day-col-fill {
  display: block;
  width: 100%;
  background: var(--ink);
}

.day-col-fill.is-empty-bar {
  height: 6px;
  background: var(--track);
}

.day-col-stack .day-col-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.day-col-fill.is-base {
  background: var(--track);
}

.day-cols-axis {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 0 var(--bar-pad);
}

.day-cols-years,
.day-cols-months {
  display: flex;
  width: 100%;
  min-width: 0;
}

.day-cols-months {
  gap: var(--bar-gap);
  overflow: hidden;
}

.day-cols-years {
  display: block;
  position: relative;
  overflow: visible;
  min-height: 1.3em;
}

.chart-year-label,
.heat-year-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0 16px 0 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--bg);
  pointer-events: none;
}

.day-cols-tick {
  display: block;
  flex: none;
  width: calc(var(--span) * var(--bar) + (var(--span) - 1) * var(--bar-gap));
  min-width: 0;
  overflow: hidden;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.day-cols-tick.is-year {
  overflow: visible;
  color: var(--text);
}

.heatmap {
  --heat-gap: 3px;
  --heat-cell: 20px;
  --heat-dows: 36px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.heat-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.heat-dows-col {
  flex: none;
  width: var(--heat-dows);
  padding: 10px 0 12px;
}

.heat-dows {
  display: grid;
  grid-template-rows: repeat(7, var(--heat-cell));
  gap: var(--heat-gap);
  color: var(--muted);
  font-size: 11px;
}

.heat-dows span {
  display: flex;
  align-items: center;
}

.heat-scroll {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.heat-year {
  min-width: 100%;
  width: max-content;
}

.heat-years-track {
  display: flex;
  align-items: flex-end;
  min-width: 100%;
  width: max-content;
}

.heat-year-block {
  flex: none;
  width: max-content;
}

.heat-year-break {
  position: relative;
  flex: none;
  align-self: stretch;
  width: calc(var(--year-pad) * 2);
}

.heat-year-break::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--year-pad);
  width: 1px;
  background: var(--line);
}

.heat-months {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--heat-cell));
  gap: var(--heat-gap);
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
}

.heat-months.heat-years {
  margin-bottom: 0;
}

.heat-month {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0 8px;
  white-space: nowrap;
}

.heat-month.is-year {
  overflow: visible;
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.03em;
}

.heat-year-label {
  margin: 0;
}

.heat-grid {
  display: flex;
  gap: var(--heat-gap);
}

.heat-week {
  display: grid;
  flex: none;
  width: var(--heat-cell);
  grid-template-rows: repeat(7, var(--heat-cell));
  gap: var(--heat-gap);
}

.heat-week-span {
  display: grid;
  grid-template-rows: repeat(var(--n), var(--heat-cell));
  gap: var(--heat-gap);
  border-radius: 4px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.heat-week-span .heat-cell {
  box-shadow: none;
  border-radius: 0;
}

.heat-week-span .heat-cell:first-child {
  border-radius: 3px 3px 0 0;
}

.heat-week-span .heat-cell:last-child {
  border-radius: 0 0 3px 3px;
}

.heat-grid .heat-cell {
  width: var(--heat-cell);
  height: var(--heat-cell);
  aspect-ratio: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.12);
}

.heat-cell.is-future {
  visibility: hidden;
}

.heat-scale {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.heat-swatch {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--track);
}

.status {
  margin: 0 0 20px;
}

.status button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

.is-hidden,
[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  body {
    padding: 28px 16px 72px;
  }

  header,
  .hero-title,
  .date-nav {
    flex-wrap: wrap;
  }

  header {
    margin-bottom: 28px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stat,
  .stat-sub {
    text-align: left;
  }

  .stat-stack {
    align-items: flex-start;
    width: 100%;
  }
}
