:root {
  color-scheme: light;
  --ink: #232728;
  --muted: #626866;
  --line: #e0e4df;
  --soft: #f4f5f2;
  --accent: #25382d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.4px;
}
.header,
.footer,
main {
  max-width: 1080px;
  margin: auto;
}
.header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.2rem;
  letter-spacing: -0.6px;
  text-decoration: none;
}
.app-link {
  font-size: 0.875rem;
  text-decoration: none;
}
.home-hero {
  text-align: center;
  padding: 164px 40px 136px;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.home-hero h1 {
  font-size: 3.4rem;
  line-height: 1.12;
  letter-spacing: -2px;
  margin-top: 0;
}
.intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 22px;
}
.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.home-hero .search {
  margin: 0 auto;
  padding: 40px 0;
}
.search input:focus-visible,
.search button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.search input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--ink);
}
.search button,
.primary {
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 20px;
  min-height: 46px;
  text-decoration: none;
  white-space: nowrap;
}
.search button {
  min-height: 56px;
}
.examples {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 16px;
}
.home-browse {
  margin: 0 40px 64px;
  padding: 52px 0 36px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading > a {
  font-size: 0.875rem;
  white-space: nowrap;
}
.set-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}
.set-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}
.set-tile:hover {
  text-decoration: none;
}
.set-tile:hover .set-name {
  text-decoration: underline;
}
.set-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 8px;
}
.set-artwork {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 8px;
}
.set-artwork img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 12px;
  mix-blend-mode: multiply;
}
.set-artwork img[hidden] {
  display: none;
}
.set-placeholder {
  position: absolute;
  width: 48px;
  height: 48px;
  color: #a4afa6;
}
.set-artwork:has(img:not([hidden])) .set-placeholder {
  visibility: hidden;
}
.set-name {
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.set-tile small {
  font-size: 0.8rem;
  color: var(--muted);
}
.home-app {
  margin: 0 64px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}
.home-app a {
  color: var(--ink);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 40px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer > p {
  flex-basis: 100%;
  max-width: 770px;
  font-size: 0.75rem;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
@media (max-width: 640px) {
  .header {
    padding: 22px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .home-hero {
    padding: 112px 22px 92px;
  }
  .home-hero h1 {
    font-size: 2.45rem;
    letter-spacing: -1.5px;
  }
  .intro {
    font-size: 1rem;
    margin-top: 20px;
  }
  .search {
    gap: 10px;
  }
  .search button {
    padding: 11px 14px;
    font-size: 0.875rem;
  }
  .search button span {
    display: none;
  }
  .home-browse {
    margin: 0 22px 48px;
    padding: 40px 0 28px;
  }
  .set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
  .home-app {
    margin: 0 22px 30px;
    flex-direction: column;
    gap: 6px;
  }
  .footer {
    padding: 22px;
    gap: 20px;
  }
  .footer nav {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition: background-color 0.12s ease;
  }
}
.results-page,
.sets-page,
.detail-page,
.about {
  padding: 34px 40px 42px;
}
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 26px 0 22px;
}
.results-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.results-title p,
.price-caption,
.section-caption {
  color: var(--muted);
  font-size: 0.8rem;
}
.price-caption {
  margin-top: 12px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
  margin-top: 30px;
}
.result {
  min-width: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.result:hover {
  text-decoration: none;
}
.result:hover h2 {
  text-decoration: underline;
}
.card-stage {
  background: var(--soft);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.3;
  margin-bottom: 15px;
}
.card-stage img {
  height: 100%;
  max-height: 220px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 7px;
}
.missing-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  min-height: 160px;
}
.result h2 {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.35;
}
.result-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.result-price {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.unavailable {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 10px 12px;
  min-width: 40px;
  min-height: 44px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 0.875rem;
}
.pagination [aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
.pagination .disabled {
  color: var(--muted);
  opacity: 0.6;
}
.empty {
  padding: 70px 30px;
  text-align: center;
  min-height: 340px;
}
.empty p {
  margin: 18px 0 24px;
  color: var(--muted);
}
.set-directory {
  margin-top: 34px;
}
.detail-page {
  overflow-anchor: none;
}
.detail-page > .crumbs {
  margin-top: 0;
}
.detail-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.detail-image {
  padding: 12px;
  background: var(--soft);
  border-radius: 10px;
  max-width: 180px;
}
.detail-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.detail-answer h1 {
  margin: 12px 0;
  font-size: 2rem;
  line-height: 1.14;
}
.printing {
  font-size: 0.875rem;
  color: var(--muted);
}
.price-options {
  margin: 24px 0 16px;
}
.printing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.printing-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}
.printing-options a[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.price-printing {
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.grade-prices {
  display: grid;
  grid-template-columns: repeat(6, minmax(6.5rem, 1fr));
  overflow-x: auto;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grade-prices:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.grade-price {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 106px;
  padding: 14px 8px;
}
.grade-price + .grade-price {
  border-left: 1px solid var(--line);
}
.grade-price dt {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.grade-price dt small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.grade-value {
  margin: 0;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.grade-value.unavailable {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.history-conditions {
  margin: 12px 0 0;
}
.source {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.75;
}
.detail-app {
  margin-top: 24px;
}
.detail-app .primary {
  font-size: 0.875rem;
  gap: 16px;
}
.detail-app p {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.section {
  padding-top: 26px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.section-caption {
  margin: 8px 0 18px;
}
.periods {
  display: flex;
  gap: 4px;
}
.periods a {
  font-size: 0.8rem;
  padding: 9px 12px;
  min-height: 40px;
  text-decoration: none;
  border-radius: 5px;
}
.periods [aria-current] {
  background: var(--soft);
}
.price-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
}
.price-chart text {
  font:
    12px Arial,
    Helvetica,
    sans-serif;
  fill: var(--muted);
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-area {
  fill: var(--soft);
}
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.history-chart {
  min-height: 330px;
}
.history-summary {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 16px 0;
}
.method,
.history-data {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}
.method summary,
.history-data summary {
  cursor: pointer;
  min-height: 30px;
}
.method p {
  max-width: 700px;
  margin-top: 10px;
  line-height: 1.8;
}
.empty-chart,
.empty-sales {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 24px 0;
}
.empty-chart {
  min-height: 140px;
  display: flex;
  align-items: center;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  padding: 8px 14px 12px 0;
}
td {
  padding: 14px 14px 14px 0;
  border-top: 1px solid var(--line);
}
td:last-child,
th:last-child {
  padding-right: 0;
  text-align: right;
}
.sales .muted {
  font-size: 0.8rem;
}
.sales-table td {
  vertical-align: top;
}
.sale-date {
  width: 7.5rem;
}
.sale-listing {
  overflow-wrap: anywhere;
}
.sale-listing a {
  line-height: 1.5;
}
.sale-grade {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}
.sale-price {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.table-scroll {
  max-height: 400px;
  overflow: auto;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
}
.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}
.related-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  text-decoration: none;
}
.related-links small {
  white-space: nowrap;
  color: var(--muted);
}
.about {
  max-width: 800px;
}
.about h1 {
  margin: 25px 0 40px;
}
.about h2 {
  margin-top: 34px;
  margin-bottom: 14px;
}
.about p {
  line-height: 1.8;
  color: var(--muted);
}
.about > a {
  display: inline-block;
  margin-top: 30px;
}
@media (max-width: 760px) {
  .card-stage {
    padding: 16px;
  }
  .detail-hero {
    gap: 30px;
  }
  .detail-answer h1 {
    font-size: 1.8rem;
  }
  .price-options label {
    min-width: 130px;
  }
}
@media (max-width: 640px) {
  .results-page,
  .sets-page,
  .detail-page,
  .about {
    padding: 26px 22px 34px;
  }
  .results-title {
    display: block;
  }
  .results-title p {
    margin-top: 12px;
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-top: 24px;
  }
  .card-stage {
    aspect-ratio: 0.85;
    padding: 14px 9px;
    margin-bottom: 12px;
  }
  .card-stage img {
    max-height: 190px;
  }
  .result h2 {
    font-size: 0.95rem;
  }
  .result-meta {
    font-size: 0.75rem;
  }
  .result-price {
    font-size: 0.95rem;
  }
  .pagination {
    gap: 2px;
  }
  .pagination a,
  .pagination span {
    padding: 10px 8px;
    min-width: 35px;
    font-size: 0.8rem;
  }
  .detail-hero {
    display: block;
  }
  .detail-hero:after {
    content: "";
    display: block;
    clear: both;
  }
  .detail-image {
    float: right;
    width: 92px;
    max-width: none;
    padding: 0;
    background: transparent;
    margin: 0 0 14px 16px;
  }
  .detail-image img {
    border-radius: 5px;
  }
  .detail-answer h1 {
    font-size: 1.75rem;
    line-height: 1.15;
  }
  .detail-answer .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  .detail-answer .printing {
    font-size: 0.8rem;
  }
  .price-options {
    clear: both;
    padding-top: 18px;
    margin-top: 0;
  }
  .grade-prices {
    grid-template-columns: repeat(6, minmax(8rem, 1fr));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .grade-price {
    scroll-snap-align: start;
    padding: 14px 12px;
  }
  .section {
    margin-top: 30px;
    padding-top: 22px;
  }
  .price-chart {
    min-height: 130px;
  }
  .price-chart text {
    font-size: 22px;
  }
  .history-summary {
    font-size: 0.75rem;
  }
  .sales table {
    font-size: 0.875rem;
  }
  .sale-date {
    width: 5.5rem;
  }
  .sales td,
  .sales th {
    padding-right: 8px;
  }
  .related-links {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: baseline;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 1.1rem;
  }
  .periods {
    gap: 2px;
  }
  .periods a {
    padding: 10px 9px;
  }
  .detail-page .section-heading > a {
    font-size: 0.75rem;
  }
  .printing-prices table {
    font-size: 0.8rem;
  }
}
@media (min-width: 1100px) {
  .result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .card-stage {
    aspect-ratio: 1;
  }
}
.chart-unit {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 14px 0 6px;
}

.analytics-consent:not([hidden]) {
  position: fixed;
  z-index: 10;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #dce1dc);
  border-radius: 12px;
  box-shadow: 0 4px 24px #00000012;
  font-size: 0.875rem;
}
.analytics-consent p {
  margin: 6px 0 0;
  line-height: 1.5;
}
.analytics-consent p a {
  text-decoration: underline;
}
.analytics-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.analytics-actions button {
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.analytics-actions [data-analytics-choice="granted"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.analytics-actions [data-analytics-choice="denied"]:hover {
  background: var(--soft);
}
.analytics-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .analytics-consent:not([hidden]) {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .analytics-actions button {
    flex: 1;
  }
}
.chart-frame {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}
.chart-frame .price-chart {
  width: 100%;
  height: 200px;
  min-height: 0;
}
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 0 2px;
  font-variant-numeric: tabular-nums;
}
.chart-x {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0 56px;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .chart-frame .price-chart {
    height: 175px;
  }
  .chart-frame {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .chart-x {
    margin-left: 50px;
  }
}
