:root {
  color-scheme: dark;
  --bg: #111112; --panel: #1b1b1d; --ink: #eeeded; --sub: #bebdbf;
  --mute: #a4a3a6; --edge: #343437; --unit: 11px; --rail: 5px; --stop-y: 1.95rem;
  font: 100%/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--bg); color: var(--ink); scroll-behavior: smooth;
}
* { box-sizing: border-box }
body { margin: 0 auto; width: min(100% - 5rem, 1100px) }
h1,h2,h3,p { margin: 0 }
a { color: inherit; text-underline-offset: .22em }
button,input,select { font: inherit; color: inherit }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible,article:focus-visible { outline: 2px solid #e7e7ea; outline-offset: 3px }
[hidden] { display: none !important }
.sr,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.skip:focus { position: absolute; padding: .5rem; background: var(--panel); z-index: 20 }
.intro { padding: clamp(1.6rem,4vw,3.8rem) 0 1.6rem; border-bottom: 1px solid var(--edge) }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: clamp(.55rem,2vw,2rem) }
.title-row h1 { min-width: 0; text-wrap: balance }
h1 { font-size: clamp(1.65rem,4.2vw,3.1rem); line-height: 1.1; font-weight: 500; letter-spacing: -.075em }
summary { cursor: pointer }
.method { margin-top: .55rem; font-size: .9rem; color: var(--sub); max-width: 76ch }
.method summary,.date-note summary { width: fit-content; padding: .45rem .15rem .45rem 0 }
.method p { margin: .55rem 0; line-height: 1.65 }
.support { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .52rem; padding: .5rem .85rem; min-height: 44px; border: 1px solid #434346; border-radius: 6px; background: #222224; color: var(--ink); font-size: .86rem; text-decoration: none; white-space: nowrap }
.support svg { width: 19px; height: 19px }
.support:hover,.links a:hover { background: #2a2a2c; border-color: #747477 }
.catalogue { display: grid; grid-template-columns: minmax(170px,195px) minmax(0,1fr); gap: clamp(1.5rem,4.5vw,4rem); padding-top: 1.35rem }
.guide { position: sticky; top: .75rem; align-self: start; max-height: calc(100vh - 1.5rem); max-height: calc(100svh - 1.5rem); overflow: auto; scrollbar-width: thin; font-size: .84rem }
.guide summary { min-height: 44px; padding: .65rem 0; font-weight: 600 }
.era-list { display: grid; gap: 1px }
.era { display: flex; align-items: center; gap: .65rem; min-height: 34px; padding: .23rem .4rem; border-radius: 3px; text-decoration: none; color: var(--sub) }
.era i { display: block; width: var(--rail); height: 1.15rem; flex: none; border-radius: 2px; background: var(--ink-line) }
.era.here { color: var(--ink) }
.era:hover,.era:focus-visible { background: var(--panel); color: white }
.collection { min-width: 0 }
.tools { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: .5rem; margin-bottom: .75rem }
.query,.style-select { min-width: 0; display: flex; align-items: center; border: 1px solid #444447; border-radius: 5px; background: var(--panel) }
.query svg { width: 16px; height: 16px; margin-left: .72rem; flex: none; stroke: var(--mute); stroke-width: 1.6; fill: none }
.query input,.style-select select { width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; padding: .5rem .65rem; font-size: .84rem }
.query input::placeholder { color: var(--mute); opacity: 1 }
select option,select optgroup { background: var(--panel) }
.ruler { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 43px; border-block: 1px solid var(--edge); color: var(--mute); font-size: .79rem }
.ruler strong { color: var(--ink); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums }
.card { position: relative; display: grid; grid-template-columns: calc(var(--lanes)*var(--unit) + 6px) 4.2ch 72px minmax(0,1fr); column-gap: clamp(.55rem,1.4vw,1.15rem); align-items: start; min-width: 0; scroll-margin-top: 46px; }
.card:focus:not(:focus-visible) { outline: none }
.tracks { align-self: stretch; position: relative; grid-column: 1; grid-row: 1; }
.rail { position: absolute; top: 0; bottom: 0; left: calc(var(--lane)*var(--unit) + 2px); width: var(--rail) }
.rail::before,.rail.stop::after { content: ""; position: absolute; background: var(--ink-line) }
.rail::before { width: 100%; top: 0; bottom: 0 }
.rail.head::before { top: var(--stop-y) }
.rail.tail::before { bottom: calc(100% - var(--stop-y)) }
.rail.stop::after { width: 9px; height: 9px; border-radius: 50%; left: 50%; top: var(--stop-y); transform: translate(-50%,-50%); box-shadow: 0 0 0 1px var(--bg) }
.year { grid-column: 2; grid-row: 1; margin-top: calc(var(--stop-y) - .65rem); font-size: .84rem; color: var(--sub); font-variant-numeric: tabular-nums }
.portrait { grid-column: 3; grid-row: 1; margin-top: 1rem; width: 72px; height: 72px; display: block; overflow: hidden; border-radius: 9px; background: var(--panel) }
.portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
.record { grid-column: 4; grid-row: 1; min-width: 0; padding: 1.23rem 0 1rem; border-bottom: 1px solid var(--edge) }
.record h3 { font-size: clamp(1.07rem,1.7vw,1.36rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.25; overflow-wrap: anywhere }
.dates { margin-top: .25rem; font-size: .83rem; color: var(--sub) }
.styles { margin: .36rem 0 .55rem; font-size: .8rem; color: var(--mute) }
.style-marker::before { content: ""; width: .26rem; height: .75em; display: inline-block; margin-right: .25rem; background: var(--ink-line); border-radius: 1px; vertical-align: baseline }
.sep { color: #77777c }
.links { display: flex; flex-wrap: wrap; gap: .32rem }
.links a { display: inline-flex; min-height: 35px; align-items: center; gap: .35rem; padding: .26rem .55rem; border: 1px solid var(--edge); border-radius: 4px; text-decoration: none; font-size: .79rem }
.links svg { width: 16px; height: 16px; display: block; flex: none }
.date-note { color: var(--sub); font-size: .78rem }
#empty { padding: 1.5rem 0 3rem }button { background: var(--panel); border: 1px solid var(--edge); border-radius: 3px; padding: .4rem; cursor: pointer }
footer { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; padding: 1.3rem 0 2rem; border-top: 1px solid var(--edge); font-size: .84rem; color: var(--sub) }footer a:last-child { margin-left: auto }
.credits { max-width: 78ch; margin: 2rem auto; overflow-wrap: anywhere }.credits h1,.credits p { margin: 1rem 0 }.credits li { margin: .6rem 0 }
@media (max-width: 780px) {
  body { width: calc(100% - 2rem) }.catalogue { display: block; padding-top: 0 }
  .guide { top: 0; z-index: 4; max-height: none; overflow: visible; background: var(--bg); border-bottom: 1px solid var(--edge) }
  .guide summary { min-height: 46px; padding: .75rem 0 }
  .guide details[open] .era-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: .3rem .25rem; max-height: 48svh; overflow-y: auto }
  .era { min-height: 44px; font-size: .8rem }
  .tools { margin: .75rem 0 }.ruler { top: 46px }.card { scroll-margin-top: 92px }
  .links a,.method summary { min-height: 44px; align-content: center }
}
@media (max-width: 540px) {
  :root { --unit: 7.5px; --rail: 4px; --stop-y: 1.7rem }
  body { width: calc(100% - 1.35rem) }.intro { padding: 1.5rem 0 .6rem }h1 { font-size: clamp(1.36rem,5.7vw,1.86rem) }
  .support { gap: .3rem; padding: .45rem .55rem; font-size: .74rem }.support svg { width: 15px; height: 15px }
  .tools { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: .3rem }.query svg { display: none }.query input,.style-select select { font-size: .76rem; padding-inline: .35rem }
  .card { grid-template-columns: calc(var(--lanes)*var(--unit) + 4px) 48px minmax(0,1fr); column-gap: .48rem }
  .year { display: none }.rail.stop::after { width: 6px; height: 6px }
  .portrait { grid-column: 2; width: 48px; height: 48px; border-radius: 7px; margin-top: .95rem }
  .record { grid-column: 3; padding: 1rem 0 .6rem }.record h3 { font-size: 1.04rem }
  .dates,.styles { font-size: .76rem }.links a { font-size: .74rem; padding: .2rem .32rem; gap: .2rem }.links svg { width: 14px; height: 14px }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto } }
@media (max-width: 360px) {
  .title-row { gap: .45rem }.title-row h1 { font-size: 1.15rem }
  .title-row .support { gap: .25rem; padding-inline: .4rem }
}
