:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; --ink: #25191a; --muted: #62595a; --subtle: #766b6a; --page: #fffdf9; --surface: #fff; --soft: #f8f4f2; --line: #eadfdc; --field: #c9bdbc; color: var(--ink); background: var(--page); }
:root[data-theme="dark"] { color-scheme: dark; --ink: #f5e9e5; --muted: #d4c3bf; --subtle: #b7a4a0; --page: #1b1213; --surface: #2a1d1e; --soft: #352526; --line: #5a4140; --field: #806967; }
:root[data-theme="dark"] .release img { mix-blend-mode: normal; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); }
.site-header { position: static; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem clamp(1rem, 4vw, 4rem); background: #8e1116; color: #fff; }
.brand { color: inherit; font-weight: 800; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: center; }
.site-nav a { color: #fff; font-weight: 600; text-decoration: none; opacity: .92; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }
main { padding: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1rem, 4vw, 4rem); }
.intro { max-width: 52rem; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a20f17; }
h1 { margin: .35rem 0; font-size: clamp(2.25rem, 6vw, 5rem); letter-spacing: -.055em; line-height: .98; }
.intro > p:last-child { max-width: 42rem; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.intro-line { display: block; }
.sticky-panel { position: static; }
.toolbar { position: sticky; top: .5rem; z-index: 10; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 .45rem 1.25rem rgba(67, 19, 19, .08); backdrop-filter: blur(10px); }
.toolbar label { font-weight: 700; }
.search-control {
  position: relative;
  flex: 1 1 15rem;
  display: block;
  width: 100%;
  max-width: 100%;
}
/* Only the filter field — not checkbox toggles */
.toolbar input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: .65rem 2.6rem .65rem .8rem;
  border: 1px solid var(--field);
  border-radius: .4rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
}
.search-control input::-webkit-search-cancel-button { display: none; }
.clear-search {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 .4rem .4rem 0;
  color: var(--subtle);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  transform: none;
  cursor: pointer;
}
.clear-search:not([hidden]):hover,
.clear-search:not([hidden]):focus-visible {
  color: var(--ink);
  background: var(--soft);
}
.image-toggle { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; color: #514748; font-size: .9rem; }
.image-toggle input { flex: 0 0 auto; min-height: 1rem; accent-color: #a20f17; }
.theme-toggle { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; font-size: .9rem; }
.theme-toggle input { min-height: 1rem; accent-color: #a20f17; }
.toolbar p { margin: 0; color: var(--subtle); font-size: .9rem; }
.timeline { display: grid; gap: 3rem; }
.year { position: relative; display: grid; grid-template-columns: minmax(5rem, 9rem) 1fr; gap: 1rem 2rem; }
.year::before { content: ""; position: absolute; left: calc(minmax(5rem, 9rem)); top: 3.7rem; bottom: -3rem; width: 2px; background: linear-gradient(#d71920, #f1c9ca); }
.year:last-child::before { display: none; }
.year h2 { z-index: 1; width: fit-content; height: fit-content; margin: 0; padding: .55rem .75rem; border-radius: .4rem; background: #a20f17; color: #fff; font-size: 1.2rem; }
.release-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 24rem)); gap: 1.25rem; }
.release { position: relative; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.release:hover { transform: translateY(-3px); box-shadow: 0 .7rem 2rem rgba(67, 19, 19, .12); }
.release a { display: block; height: 100%; color: inherit; text-decoration: none; }
.release img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: contain; padding: .55rem 1rem; background: var(--soft); mix-blend-mode: multiply; }
.release h3 { margin: .9rem .9rem .35rem; font-size: .98rem; line-height: 1.25; }
.release span { display: block; margin: 0 .9rem 1rem; color: #9c1017; font-size: .78rem; font-weight: 700; }
.timeline.images-hidden .release img { display: none; }
.timeline.images-hidden .release h3 { margin-top: 1rem; }
.timeline.images-hidden .release span { margin-bottom: 1rem; }
.seo-summary { max-width: 60rem; margin: 5rem 0 1rem; padding: 2rem 0 0; border-top: 1px solid var(--line); }
.seo-summary h2 { margin: .4rem 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.seo-summary p:not(.eyebrow) { max-width: 58rem; color: var(--muted); line-height: 1.7; }
.seo-summary a { color: #b51a22; font-weight: 700; }
footer { padding: 2rem clamp(1rem, 4vw, 4rem); border-top: 1px solid var(--line); color: var(--subtle); font-size: .78rem; }
/* Stick header + strip only when the year rail is shown (needs height too) */
@media (min-width: 700px) and (min-height: 600px) {
  .site-header { position: sticky; top: 0; z-index: 30; }
  .sticky-panel { position: sticky; top: 3.5rem; z-index: 20; padding-bottom: .25rem; background: var(--page); }
  .sticky-panel .toolbar { position: static; }
}
@media (min-width: 900px) { .intro { max-width: none; } h1 { white-space: nowrap; font-size: clamp(2rem, 5vw, 4.6rem); } }
@media (max-width: 640px) { .year { grid-template-columns: 1fr; } .year::before { left: 1rem; top: 3rem; } .year h2 { margin-left: 1.75rem; } .release-list { margin-left: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } .toolbar { align-items: stretch; flex-direction: column; }
  .search-control { flex: 0 0 auto; width: 100%; }
  .toolbar input[type="search"] { min-height: 3rem; }
  .clear-search { width: 2.75rem; font-size: 1.45rem; }
  .theme-toggle, .image-toggle { min-height: 2.25rem; } }

/* Horizontal year overview — bowed line, uniform dots on curve, steady −45° tips */
.year-rail {
  margin: 0.35rem 0 1rem;
  padding: 0;
  border-top: 1px solid var(--line);
  overflow: visible;
}
.year-rail-scroll {
  display: block;
  overflow-x: auto;
  overflow-y: visible;
  padding: 7.5rem 1.25rem 1.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.year-rail-scroll::-webkit-scrollbar { height: 6px; }
.year-rail-scroll::-webkit-scrollbar-thumb { background: #c9bdbc; border-radius: 99px; }
.year-rail-track {
  position: relative;
  width: 100%;
  /* min-width set in JS from content weights when names are on */
  min-width: 100%;
  /* Height matches SVG (120px) + angled year label room under the line */
  height: 11.5rem;
  margin: 0;
  padding: 0 0.5rem;
}
.year-rail-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.5rem; /* room for −45° year labels under the line */
  width: 100%;
  height: 120px;
  pointer-events: none;
  overflow: visible;
}
.year-rail-item {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  overflow: visible;
  transform: translate(-50%, 50%); /* center the dot on the curve point */
  scroll-snap-align: center;
}
.year-rail-item:focus-visible {
  outline: 2px solid #a20f17;
  outline-offset: 3px;
  border-radius: .35rem;
}
.year-rail-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  overflow: visible;
}
.year-rail-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a20f17;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page) 80%, transparent);
  transition: transform .15s ease, background .15s ease;
}
.year-rail-label {
  position: absolute;
  top: calc(100% + .85rem);
  left: 50%;
  /* Match tip angle: lower-left → upper-right (−45°) */
  transform: translateX(-.1rem) rotate(-45deg);
  transform-origin: top left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--subtle);
}
.year-rail-item:hover .year-rail-dot,
.year-rail-item.is-active .year-rail-dot {
  background: #a20f17;
  transform: scale(1.12);
}
.year-rail-item.is-active .year-rail-label,
.year-rail-item:hover .year-rail-label {
  color: #a20f17;
}
.year-rail-item.is-dimmed {
  opacity: .35;
  pointer-events: none;
}
.year-rail-item.is-dimmed .year-rail-dot {
  border-color: var(--field);
}
.year-rail-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .55rem);
  z-index: 6;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-.15rem);
  transition: opacity .15s ease;
}
.year-rail-tip-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .18rem;
  transform: rotate(-45deg);
  transform-origin: left bottom;
  white-space: nowrap;
}
.year-rail-tip-more {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #9a6a6c;
  white-space: nowrap;
}
.year-rail-tip-name {
  display: block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: .12rem .45rem;
  border-radius: .3rem;
  background: #a20f17;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 .25rem .7rem rgba(67, 19, 19, .18);
}
.year-rail:not(.year-rail--persistent) .year-rail-item:hover .year-rail-tip,
.year-rail:not(.year-rail--persistent) .year-rail-item:focus-visible .year-rail-tip {
  opacity: 1;
}
.year-rail--persistent .year-rail-tip {
  opacity: 1;
}
.year-rail-item.is-dimmed .year-rail-tip {
  display: none;
}
.year-rail--persistent .year-rail-scroll {
  padding-top: 9.5rem;
  /* Extra right inset so the last angled tip (2026) stays in view */
  padding-right: 4.5rem;
  padding-left: 1.25rem;
}
@media (max-width: 640px) {
  .year-rail-label { font-size: .62rem; }
  .year-rail-scroll { padding: 6.5rem 1rem 1.25rem; }
  .year-rail--persistent .year-rail-scroll {
    padding-top: 8.25rem;
    padding-right: 3.5rem;
  }
  .year-rail-curve { height: 120px; }
  .year-rail-tip { bottom: calc(100% + .45rem); }
  .year-rail-tip-name { max-width: 10.5rem; font-size: .62rem; }
}

/* Phone / tablet landscape: more air between dots and angled years */
@media (max-width: 1100px) and (min-width: 700px) {
  .year-rail-curve {
    bottom: 4.15rem;
  }
  .year-rail-track {
    height: 12.25rem;
  }
  .year-rail-label {
    top: calc(100% + 1.15rem);
    font-size: .64rem;
  }
  .year-rail-scroll {
    padding-bottom: 1.6rem;
  }
}

/* Narrow phones or short viewports (phone landscape): list only, nothing sticky */
@media (max-width: 699px), (max-height: 599px) {
  .year-rail {
    display: none;
  }
  .rail-names-toggle {
    display: none;
  }
  .site-header,
  .sticky-panel,
  .toolbar {
    position: static;
  }
}
