:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --card: #fffef9;
  --ink: #20251e;
  --muted: #586056;
  --line: #d3d7cd;
  --sage: #dce7ce;
  --red: #ae3d25;
  --orange: #ed6b45;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
.picker {
  cursor: pointer;
}
button {
  background: var(--card);
  border: 1px solid #838b7d;
  border-radius: 5px;
  padding: 8px 14px;
  font-weight: 600;
}
button:hover,
.picker:hover {
  background: #e5ebde;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red);
}
:focus-visible,
.picker:focus-within {
  outline: 3px solid #096e80;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 1em;
  top: -8em;
  z-index: 20;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 1em;
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast-inner,
main,
footer {
  width: min(1168px, calc(100% - 9vw));
  margin: auto;
}
.mast-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 750;
  font-size: 32px;
  letter-spacing: -2px;
  line-height: 1;
}
.brand span {
  color: var(--red);
}
.brand-mark,
.tiny-record {
  position: relative;
  border-radius: 50%;
  display: inline-block;
  background: repeating-radial-gradient(circle, var(--ink) 0 2px, #64715e 3px, var(--ink) 4px);
  width: 32px;
  height: 32px;
  margin-right: 9px;
}
.brand-mark:after,
.tiny-record:after {
  content: '';
  position: absolute;
  inset: 34%;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--orange);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.local,
.kicker,
.art-caption,
.meta,
.tag,
.metric small,
.caps {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.local {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
}
.local i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #527646;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  align-items: center;
  padding: 46px 0 40px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: #47533e;
}
.rule {
  width: 28px;
  height: 2px;
  background: var(--red);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.1;
}
h1 {
  font: 500 clamp(56px, 6.8vw, 94px)/0.94 var(--serif);
  letter-spacing: -0.061em;
}
h1 em {
  font-weight: 400;
  color: var(--red);
}
.intro {
  font-size: 18px;
  line-height: 1.52;
  color: var(--muted);
  max-width: 450px;
  margin-top: 23px;
}
.art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.8;
  border: 1px solid #c2cfb4;
  background: #d4dfbf;
  border-radius: 10px;
}
.art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(#9daf91 1px, transparent 1px), linear-gradient(90deg, #9daf91 1px, transparent 1px);
  background-size: 32px 32px;
}
.record-set {
  position: absolute;
  inset: 12% 14% 15% 15%;
  transform: rotate(-10deg);
  filter: drop-shadow(3px 9px 5px #38432a3d);
}
.sleeve,
.vinyl {
  height: 100%;
  aspect-ratio: 1;
  position: absolute;
  top: 0;
}
.vinyl {
  right: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #222720 0 2px, #4c5144 2.8px, #252923 3.6px);
  border: 3px solid #242820;
}
.vinyl:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    transparent 15%,
    #f5f3ce35 27%,
    transparent 34% 63%,
    #f5f3ce35 74%,
    transparent 84%
  );
}
.record-label {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, #252623 0 5%, #e9be85 6% 30%, #e6a765 31% 52%, #ecbb89 53%);
}
.sleeve {
  left: 0;
  background: var(--orange);
  border: 1px solid #ae5035;
  overflow: hidden;
  color: #292a20;
}
.sleeve-top,
.sleeve-bottom {
  position: absolute;
  left: 7%;
  right: 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.sleeve-top {
  top: 5%;
  font: 700 clamp(9px, 1vw, 13px)/1 var(--mono);
  letter-spacing: 0.14em;
}
.sleeve-top b {
  font-size: 1.7em;
}
.sleeve-bottom {
  bottom: 6%;
  align-items: end;
}
.sleeve-bottom span {
  font: bold clamp(10px, 1vw, 14px)/0.95 var(--sans);
  letter-spacing: -0.04em;
}
.barcode {
  width: 23%;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 1px,
    transparent 1px 3px,
    var(--ink) 3px 5px,
    transparent 5px 6px
  );
}
.grooves {
  position: absolute;
  width: 145%;
  height: 145%;
  left: -74%;
  top: 17%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 4.8%, #fbeac5 5% 6.3%, transparent 6.5% 9%);
  clip-path: inset(0 0 48% 0);
}
.art-caption {
  position: absolute;
  bottom: 4%;
  right: 4%;
  font-size: 8px;
  color: #4b5d40;
}
h2 {
  font: 500 clamp(26px, 2.65vw, 37px)/1.13 var(--serif);
  letter-spacing: -0.045em;
}
h3 {
  font: 500 26px/1.15 var(--serif);
  letter-spacing: -0.035em;
}
h4 {
  font-size: 16px;
}
.import-grid,
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.import-card,
.export-card,
.panel {
  padding: clamp(22px, 2.6vw, 35px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.import-card {
  border-top: 3px solid var(--ink);
}
.export-card {
  background: #eff2e9;
  border-top: 3px solid #80916d;
}
.import-card > p:not(.kicker) {
  color: var(--muted);
  margin-top: 11px;
  max-width: 465px;
}
.tiny-record {
  width: 16px;
  height: 16px;
  margin: 0;
}
.tiny-record:after {
  border-width: 1px;
}
.book-icon {
  font-size: 17px;
  line-height: 1;
}
.picker-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}
.picker,
.primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: white;
  border-radius: 5px;
  padding: 11px 19px;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}
.picker:hover,
.primary:hover {
  background: #394533;
}
.picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.picker span {
  font-size: 22px;
  line-height: 0.8;
}
.picker-line small,
.muted,
.demo-line,
.steps {
  color: var(--muted);
}
.picker-line small {
  font: 11px var(--mono);
}
.demo-line {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
}
.link-btn {
  border: 0;
  background: transparent;
  padding: 2px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 31px;
}
.steps li:before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font: 600 12px/20px var(--mono);
  color: #4a5b40;
}
.steps a,
.steps b {
  color: var(--ink);
}
#feedback {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0;
}
#status {
  font-size: 14px;
  color: var(--muted);
}
#status:empty {
  display: none;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -1px;
  color: var(--ink);
}
nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
nav button,
.tab {
  background: transparent;
  border: 0;
  padding: 8px 11px;
  font-size: 14px;
}
nav [aria-current],
.tab[aria-pressed='true'] {
  background: #e3e8da;
  color: #283622;
}
.view {
  padding: 35px 0 8px;
}
.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.view h1 {
  font-size: clamp(44px, 5vw, 68px);
}
.head p:not(.kicker),
.caption,
.panel > p,
.prose p {
  color: var(--muted);
  margin-top: 10px;
}
.head .kicker {
  margin-bottom: 10px;
}
.toolbar,
.actions,
.section-head,
.pager,
.chapter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar {
  margin: 16px 0;
}
.section-head,
.chapter-controls {
  justify-content: space-between;
}
.field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
select,
input[type='search'] {
  max-width: 100%;
  border: 1px solid #a6afa0;
  border-radius: 4px;
  background: var(--card);
  padding: 8px 10px;
  font-size: 15px;
  color: var(--ink);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sage);
  border: 1px solid #bdc9b2;
  border-radius: 8px;
  margin: 18px 0 22px;
  overflow: hidden;
}
.metric {
  padding: 21px 20px;
  min-width: 0;
}
.metric + .metric {
  border-left: 1px solid #b8c5ac;
}
.metric small {
  display: block;
  margin-bottom: 6px;
}
.metric strong {
  font: 500 clamp(24px, 3vw, 42px)/1.2 var(--serif);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.panel,
.cols {
  margin-bottom: 20px;
}
.cols > .panel {
  margin: 0;
}
.panel h2 {
  font-size: 30px;
}
.seg {
  display: inline-flex;
  background: #edefe7;
  padding: 3px;
  border-radius: 6px;
}
.seg button {
  border: 0;
  font-size: 13px;
  padding: 7px 13px;
  background: transparent;
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.comparison {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.comparison dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 12px 24px;
}
.comparison dt {
  font-weight: 600;
}
.comparison dd {
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.chart-scroll {
  overflow-x: auto;
  padding: 6px 4px;
}
.chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  align-items: start;
  gap: 4px;
}
.months-chart {
  grid-auto-flow: row;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .months-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .months-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .months-chart .bar-well {
    height: 48px;
  }
}
.bar-btn {
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  flex: 1;
  min-width: 48px;
  display: grid;
  justify-items: center;
  padding: 0 1px;
  font: 12px var(--mono);
}
.bar-well {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid #7a846e;
  background: repeating-linear-gradient(to top, transparent 0 32px, #dfe4d9 32px 33px);
}
.bar {
  width: 56%;
  background: #788d65;
  border-radius: 3px 3px 0 0;
}
.bar-btn:hover .bar,
.bar-btn:focus-visible .bar {
  background: var(--red);
}
.bar-label {
  padding: 7px 0;
}
.bar-value {
  font-size: 10px;
  color: var(--muted);
}
.bar-btn[data-availability="outside"] {
  opacity: 1;
  color: #60685a;
}
.bar-btn[data-availability="outside"] .bar-well {
  background: repeating-linear-gradient(135deg, transparent 0 5px, #e2e6dc 5px 6px);
}
.caption,
.rules,
summary,
.pager {
  font-size: 14px;
}
.caption {
  margin-bottom: 10px;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
  counter-reset: item;
}
.list > li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.ranked > li {
  counter-increment: item;
  position: relative;
  padding-left: 36px;
}
.ranked > li:before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font: 12px var(--mono);
  color: var(--muted);
}
.name {
  font-weight: 650;
}
.name a,
.result a {
  text-decoration-color: #a3afa0;
}
.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.sub,
.numbers {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.numbers {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.result button {
  margin-top: 7px;
  font-size: 13px;
}
.tag {
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--sage);
  display: inline-block;
  margin-right: 5px;
}
.empty {
  padding: 14px 0;
  color: var(--muted);
}
.panel .actions {
  margin-top: 17px;
}
.rules {
  color: var(--muted);
  margin: 10px 0;
}
.pager,
.chapter-controls {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.prose {
  max-width: 75ch;
}
.prose strong {
  color: var(--ink);
}
.citation {
  background: #f0eadf;
}
.chapter {
  border-top: 4px solid var(--orange);
}
.chapter h2 {
  font-size: clamp(30px, 4vw, 48px);
}
.chapter .kicker {
  margin: 0 0 10px;
}
.chapter .cols {
  margin: 15px 0;
}
.chapter .stats {
  margin-top: 20px;
}
.pay {
  font: italic 38px var(--serif);
  color: var(--red);
}
.coverage {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.coverage p {
  margin: 7px 0;
}
.import-toggle {
  margin-bottom: 12px;
}
.table-wrap {
  overflow: auto;
  max-height: 330px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.period-link {
  padding: 4px 8px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.demo-tag {
  font: 11px var(--mono);
  color: var(--red);
}
.status-note {
  min-height: 1em;
}
.bar-partial {
  font: italic 12px var(--serif);
  color: var(--muted);
  margin-top: 3px;
}
.bar-value {
  max-width: 14ch;
  text-wrap: balance;
}
.drilldown {
  margin: 12px 0;
  padding: 12px clamp(8px, 2vw, 20px);
  border-left: 2px solid var(--line);
  background: var(--paper);
}
.drilldown .ranked > li {
  padding-left: 28px;
}
@media (max-width: 780px) {
  .mast-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
  }
  nav {
    width: 100%;
  }
  .hero {
    gap: 4%;
    padding: 30px 0;
  }
  .intro {
    font-size: 16px;
  }
  .import-grid,
  .cols {
    gap: 12px;
  }
  .metric {
    padding: 15px 12px;
  }
  .local {
    font-size: 9px;
  }
  .art {
    aspect-ratio: 1.4;
  }
  .record-set {
    inset: 17% 9% 20% 10%;
  }
}
@media (max-width: 620px) {
  .mast-inner,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .hero,
  .import-grid,
  .cols {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 21px;
    padding: 27px 0 20px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .hero-copy .kicker {
    margin-bottom: 11px;
  }
  .intro {
    margin-top: 14px;
  }
  .art {
    aspect-ratio: 2.25;
  }
  .record-set {
    inset: 8% 20% 10% 21%;
  }
  .sleeve-top {
    font-size: 9px;
  }
  .sleeve-bottom span {
    font-size: 11px;
  }
  .import-card,
  .export-card,
  .panel {
    padding: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid #b8c5ac;
  }
  .view {
    padding-top: 25px;
  }
  .head {
    align-items: start;
  }
  .view h1 {
    font-size: 44px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .toolbar {
    align-items: end;
  }
  .bar-btn {
    min-width: 44px;
  }
  .result-line {
    gap: 4px;
  }
  .chart-scroll {
    max-width: 100%;
  }
  .brand {
    font-size: 28px;
  }
  .mast-inner {
    min-height: 60px;
  }
  .chapter-controls {
    gap: 8px;
  }
  .field {
    max-width: 100%;
  }
  .chapter .cols {
    display: block;
  }
  .chapter .cols > div {
    margin-top: 20px;
  }
  .stats.two {
    grid-template-columns: 1fr 1fr;
  }
}

.stats.two {
  grid-template-columns: repeat(2, 1fr);
}

#workspace > nav {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
#workspace > nav [aria-controls='import-area'] {
  margin-left: auto;
}
#feedback:has(#status:empty):has(#cancel[hidden]) {
  display: none;
}
.destination {
  margin-left: 0.4em;
  font: 0.7rem var(--sans);
  color: var(--muted);
  white-space: nowrap;
}
