@font-face {
  font-family: "DM Sans";
  src: url("../greyson/assets/DMSans400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../greyson/assets/DMSans700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #241e30;
  background: #f7f6f2;
  --muted: #665e6d;
  --rule: #d8d4da;
  --accent: #664f95;
  --serif: "PT Serif", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - clamp(32px, 8vw, 120px), 1200px); margin: auto; padding: 32px 0 44px; }
button, a, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #7854c0; outline-offset: 3px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { text-decoration: none; color: #342b42; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs a span { margin-right: 4px; }
.title-row, .price-head, .period-row, .chart-footer, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.title-row { margin: 24px 0; }
h1, .product-info h2, .price strong, .history summary > span:first-child, .dialog-head h2 { font-family: var(--serif); }
h1 { margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.7rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.source-button { padding: 10px 16px; border: 1px solid #c0b9c8; border-radius: 24px; background: transparent; color: #352b42; font-size: .88rem; font-weight: 700; }
.source-button span { margin-left: 8px; }
.source-button:hover { background: #ede9f0; }
.tabs { display: flex; gap: 5px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 0; overflow-x: auto; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 1 0 auto; border: 0; border-radius: 7px; color: #4d4652; background: transparent; font-weight: 700; font-size: .91rem; padding: 10px 12px; }
.tab img { width: 23px; height: 26px; object-fit: contain; mix-blend-mode: multiply; }
.tab:hover { background: #ece9ee; }
.tab[aria-selected="true"] { background: #342841; color: #fff; }
.tab[aria-selected="true"] img { mix-blend-mode: normal; border-radius: 3px; }
.tab:focus-visible { outline-offset: -3px; }
.dashboard { display: grid; grid-template-columns: minmax(205px, .83fr) minmax(0, 2fr); gap: clamp(14px, 2vw, 28px); margin: 23px 0 18px; }
.product, .market, .history { background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
.product { overflow: hidden; display: flex; flex-direction: column; }
.artwork {
  flex: 1; min-height: 200px; display: grid; place-items: center; padding: 19px;
  background-color: var(--paper, #f0edf3);
  background-image: radial-gradient(ellipse, var(--paper) 25%, transparent 80%), radial-gradient(#47365023 .8px, transparent .8px);
  background-size: 100% 100%, 7px 7px; border-bottom: 1px solid var(--rule);
}
.artwork img { display: block; width: 100%; object-fit: contain; height: clamp(170px, 19vw, 244px); mix-blend-mode: multiply; }
.product-info { padding: 18px 21px 21px; }
.eyebrow { font: 700 .69rem/1.4 "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0; }
.product-info h2 { font-size: clamp(1.55rem, 2.35vw, 2.18rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.07; margin: 8px 0; }
.product-edition { font-size: .85rem; line-height: 1.45; margin: 0; color: var(--muted); }
.market { min-width: 0; display: flex; flex-direction: column; padding: clamp(16px, 2.2vw, 30px); }
.price-head { gap: 8px; }
.price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.price strong { font-size: clamp(2.3rem, 4.5vw, 4.2rem); letter-spacing: -.055em; font-weight: 500; line-height: 1; }
.price span { font-size: .75rem; color: var(--muted); }
.change-block { display: grid; text-align: right; gap: 3px; }
.change-block strong { font-size: clamp(.84rem, 1.45vw, 1.12rem); font-variant-numeric: tabular-nums; }
.change-block span, #coverage, .chart-footer { color: var(--muted); font-size: .76rem; }
.gain { color: #216346; } .loss { color: #9d3f45; }
.period-row { flex-wrap: wrap; gap: 8px; margin: 21px 0 2px; }
.periods { display: inline-flex; gap: 1px; padding: 3px; background: #f0eef2; border-radius: 7px; }
.periods button { border: 0; color: #645b6c; background: transparent; border-radius: 4px; min-width: 37px; padding: 6px 7px; font-size: .78rem; font-weight: 700; }
.periods button[aria-pressed="true"] { color: #fff; background: #3c304a; }
.chart { position: relative; margin-top: 12px; height: clamp(190px, 17vw, 230px); flex: 1 0 auto; }
.chart svg { position: absolute; width: 100%; height: 100%; overflow: visible; }
.chart text { fill: #665f6c; font: 11px "DM Sans", sans-serif; }
.chart .grid { stroke: #e5e2e7; stroke-dasharray: 3 4; }
.chart .trend { fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.chart-cursor { position: absolute; opacity: 0; top: 0; bottom: 18px; cursor: crosshair; margin: 0; touch-action: pan-y; }
.chart:has(input:focus-visible) { outline: 2px solid #7854c0; outline-offset: 4px; border-radius: 4px; }
.tooltip { position: absolute; z-index: 1; display: grid; gap: 3px; width: max-content; pointer-events: none; padding: 8px 11px; color: #fff; background: #30273d; border-radius: 6px; box-shadow: 0 2px 8px #231d2e25; }
.tooltip span { font-size: .69rem; color: #e1dbe7; } .tooltip strong { font-size: .94rem; }
.chart-footer { margin-top: 8px; }
.chart-footer i { display: inline-block; vertical-align: middle; width: 17px; height: 3px; margin-right: 6px; background: var(--accent); border-radius: 2px; }
.history summary { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 17px 22px; list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history summary > span:first-child { font-size: 1.35rem; letter-spacing: -.025em; }
.history-count { margin-left: auto; font-size: .78rem; color: var(--muted); }
.chevron { width: 9px; height: 9px; margin: 0 3px 3px 6px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(45deg); }
details[open] .chevron { transform: rotate(225deg); margin-bottom: -4px; }
.table-scroll { max-height: 390px; overflow: auto; border-top: 1px solid var(--rule); border-radius: 0 0 14px 14px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; font-variant-numeric: tabular-nums; }
td, th { padding: 10px clamp(10px,2vw,24px); text-align: right; border-bottom: 1px solid #ece9ee; }
th { position: sticky; top: 0; background: #f2f0f3; font-size: .78rem; }
th:first-child, td:first-child { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
dialog { width: min(465px, calc(100% - 32px)); max-height: 86svh; overflow-y: auto; border: 1px solid var(--rule); border-radius: 16px; padding: 24px; color: #30273d; }
dialog::backdrop { background: #231c2a70; }
.dialog-head h2 { font-size: 2.1rem; font-weight: 500; margin: 0; }
.dialog-head button { border: 0; border-radius: 50%; background: #eeeaf2; width: 34px; height: 34px; font-size: 22px; }
dialog h3 { margin: 22px 0 6px; font-size: 1rem; }
dialog p { font-size: .88rem; line-height: 1.48; color: var(--muted); }
.source-links { display: grid; }
.source-links a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: #573f81; font-size: .85rem; text-underline-offset: 3px; }
@media (pointer: coarse) { #chart-hint { font-size: 0; } #chart-hint::after { content: "Tap to inspect"; font-size: .76rem; } }
@media (min-width: 741px) and (max-width: 950px) {
  .tab { gap: 6px; padding: 9px 6px; font-size: .8rem; }
  .tab img { width: 18px; height: 24px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 30px); padding-top: 20px; }
  .title-row { margin: 22px 0 18px; }
  .tab { padding: 8px 11px; gap: 6px; }
  .dashboard { grid-template-columns: 1fr; margin-top: 16px; }
  .product { display: grid; grid-template-columns: minmax(94px, 29%) 1fr; }
  .artwork { min-height: 115px; padding: 7px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .artwork img { height: 112px; }
  .product-info { align-self: center; padding: 12px 15px; }
  .product-info h2 { margin: 5px 0; }
  .chart { height: 215px; }
  .period-row { margin-top: 16px; }
  .history summary { padding: 15px; }
}
@media (max-width: 450px) {
  h1 { max-width: 8em; }
  .source-button { padding: 8px 11px; } .source-button span { margin-left: 2px; }
  .change-block strong { max-width: 130px; }
  .chart-footer { gap: 4px; }
}
