@charset "UTF-8";
:root {
  color-scheme: light;
  --carbon: #ece9e7; /* body background */
  --panel: #deddda; /* card */
  --sunk: #0b0c0e; /* odometer window */
  --edge: #262a31; /* borders and the spine hairline */
  --tick: #1c1f24; /* spine ticks */
  --text: #000000;
  --mid: #241f31;
  --dim: #262a31;
  --dimodo: #6a9970;
  --lime: #b4dd00; /* bodywork */
  --orange: #1c1f24; /* roll cage and nose band */
  --sans: "untitled-sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Anonymous Pro", monospace;
  --gap: 7rem; /* space between the two columns (the spine lives here) */
  --spine: 11px; /* width of the ruled spine graphic */
  --radius: 10px;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  --spine-x: 50%;
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3.5rem 0;
  list-style: none;
}

/* The ruled spine: a hairline with measuring ticks, faded at both ends. */
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: var(--spine-x);
  translate: -50% 0;
  width: var(--spine);
  background: repeating-linear-gradient(to bottom, var(--tick) 0 1px, transparent 1px 22px), linear-gradient(var(--edge), var(--edge)) center/1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3.5rem, #000 calc(100% - 3.5rem), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 3.5rem, #000 calc(100% - 3.5rem), transparent);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  padding-block-end: 2rem;
}

.timeline__item:last-child {
  padding-block-end: 0;
}

/* Odd items sit left of the spine, even items right. */
.timeline__entry {
  grid-column: 1;
}

.timeline__item:nth-child(even) .timeline__entry {
  grid-column: 2;
}

/* --- Odometer marker, centred on the spine ------------------------------ */
.timeline__odo {
  position: absolute;
  top: 0.55rem;
  left: var(--spine-x);
  translate: -50% 0;
  z-index: 2;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: var(--panel);
  color: var(--dimodo);
  font: 500 0.6875rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.timeline__item:has([open]) .timeline__odo {
  border-color: color-mix(in oklab, var(--lime) 45%, var(--edge));
  color: var(--lime);
}

/* --- The card ----------------------------------------------------------- */
.timeline__entry {
  position: relative;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease;
}

.timeline__entry:hover,
.timeline__entry[open] {
  border-color: color-mix(in oklab, var(--lime) 30%, var(--edge));
}

/* Hairline elbow reaching from the card to the odometer. */
.timeline__entry::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 100%;
  width: calc(var(--gap) / 2 - 42px);
  height: 1px;
  background: var(--edge);
}

.timeline__item:nth-child(even) .timeline__entry::before {
  left: auto;
  right: 100%;
}

/* --- Summary (the always-visible row) ----------------------------------- */
.timeline__summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}

.timeline__summary::-webkit-details-marker {
  display: none;
}

.timeline__summary::marker {
  content: "";
}

.timeline__summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.timeline__date {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dim);
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline__title {
  display: block;
  font-size: 0.8375rem;
  font-weight: 650;
  font-stretch: 95%;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.timeline__chev {
  flex: none;
  margin-inline-start: auto;
  margin-block-start: 0.2rem;
  color: var(--dim);
  transition: rotate 0.25s ease, color 0.2s ease;
}

[open] > .timeline__summary .timeline__chev {
  rotate: 180deg;
  color: var(--lime);
}

/* --- Expanded body ------------------------------------------------------ */
.timeline__body {
  padding: 0 1.1rem 1.15rem;
}

.timeline__body p {
  margin: 0.9rem 0 0;
  color: var(--mid);
  font-size: 0.925rem;
  line-height: 1.65;
}

.timeline__body p:first-child {
  margin-block-start: 0.85rem;
}

/* Spec rows — a small definition list for build data. */
.timeline__spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.9rem;
  margin: 0.95rem 0 0;
  padding-block-start: 0.85rem;
  border-block-start: 1px solid var(--edge);
  font: 400 0.8125rem/1.5 var(--sans);
}

.timeline__spec dt {
  color: var(--dim);
}

.timeline__spec dd {
  margin: 0;
  color: var(--text);
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline__tags li {
  padding: 0.2rem 0.45rem;
  border: 1px solid color-mix(in oklab, var(--edge) 35%, transparent);
  border-radius: 4px;
  background: var(--tick);
  color: var(--lime);
  font: 500 0.6875rem/1.4 var(--sans);
}

/* Animate the disclosure without a line of JavaScript.
   Progressive enhancement: browsers without ::details-content just snap open. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .timeline__entry::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.32s ease, content-visibility 0.32s allow-discrete;
  }
  .timeline__entry[open]::details-content {
    block-size: auto;
  }
}
/* ==========================================================================
   Single column below 760px
   ========================================================================== */
@media (max-width: 760px) {
  .timeline {
    --spine-x: 34px;
    max-width: 34rem;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    padding-inline-start: 5.5rem;
  }
  .timeline__item .timeline__entry,
  .timeline__item:nth-child(even) .timeline__entry {
    grid-column: 1;
  }
  .timeline__entry::before,
  .timeline__item:nth-child(even) .timeline__entry::before {
    left: auto;
    right: 100%;
    width: 1.1rem;
  }
  .timeline__spec {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .timeline__spec dd {
    margin-block-end: 0.45rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
