/* SPOT car files (spot-car.app/cars): pages rendered by the API (backend/src/car-site-pages.ts),
   on top of style.css. Each car is SPOT's own ink drawing, parked on the landing's street line
   in front of its name lettered in pencil. */

:root {
  --manila: #f2eadb;
  --manila-edge: #e4d8c1;
  --print: #ffffff;
}

.cars-page main {
  overflow-x: clip;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--pencil);
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* The road a drawing stands on, from the landing's street. */
.ground {
  display: block;
  width: 100%;
  height: 24px;
  overflow: visible;
}

.cite {
  font-size: 11px;
  line-height: 0;
  margin-left: 2px;
  font-weight: 600;
  white-space: nowrap;
}
.cite a {
  color: #cf4626;
  text-decoration: none;
  padding-inline: 1px;
}
.cite a:hover {
  text-decoration: underline;
}

/* A real photo, printed and pinned to the page. */
.print {
  display: block;
}
.print img {
  background: var(--print);
  border: 7px solid var(--print);
  border-bottom-width: 24px;
  box-shadow:
    0 1px 1px rgba(12, 42, 68, 0.12),
    0 6px 14px rgba(12, 42, 68, 0.1);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* MARK: Car file hero */

.file-hero {
  padding-top: 30px;
}
.hero-stage {
  --n: 6;
  --letter: min(calc(min(100vw - 96px, 1216px) / (var(--n) * 0.6)), 380px);
  display: grid;
  grid-template-areas: "stage" "road";
  margin-top: 26px;
}
.hero-lettering {
  grid-area: stage;
  align-self: start;
  justify-self: center;
  margin: 0;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  font-size: var(--letter);
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px var(--pencil);
  user-select: none;
}
.fit-2 { --n: 2.4; }
.fit-3 { --n: 3; }
.fit-4 { --n: 4; }
.fit-5 { --n: 5; }
.fit-6 { --n: 6; }
.fit-7 { --n: 7; }
.fit-8 { --n: 8; }
.fit-9 { --n: 9; }
.fit-10 { --n: 10; }
.fit-11 { --n: 11; }
.fit-12 { --n: 12; }
.fit-13 { --n: 13; }
.fit-14 { --n: 14; }
.fit-15 { --n: 15; }
.fit-16 { --n: 16; }
.hero-car {
  grid-area: stage;
  align-self: end;
  justify-self: center;
  width: min(100%, 980px);
  padding-top: calc(var(--letter) * 0.5);
  position: relative;
  z-index: 1;
}
.hero-car .drawing {
  width: 100%;
  height: auto;
  margin-bottom: -3px;
}
.hero-stage .ground {
  grid-area: road;
}
.hero-stage-photo .hero-car {
  width: min(78%, 620px);
  padding-bottom: 18px;
}
.hero-stage-photo .print img {
  transform: rotate(-1.6deg);
}

.hero-caption {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  padding-top: 34px;
}
.hero-title h1 {
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 0.95;
  text-wrap: balance;
}
.hero-make {
  display: block;
  font-size: 0.42em;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-tagline {
  margin-top: 20px;
  font-size: 23px;
  line-height: 1.45;
  max-width: 36ch;
  text-wrap: pretty;
}
.researched {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.aka-label {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 14px;
}
/* Nicknames, stuck on the file like labels. Where each comes from shows on hover. */
.stickers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
}
.sticker {
  position: relative;
  padding: 9px 16px 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--print);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.6deg);
  cursor: help;
  transition: transform 0.18s;
}
.sticker-1 {
  background: var(--coral);
  transform: rotate(1.4deg);
}
.sticker-2 {
  background: var(--manila);
  transform: rotate(-0.8deg);
}
.sticker-3 {
  background: var(--tint);
  transform: rotate(2deg);
}
.sticker:hover,
.sticker:focus-visible {
  transform: rotate(0) translateY(-2px);
}
.sticker strong {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.sticker span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* MARK: File body */

.file-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 40px;
  padding-bottom: 40px;
}
.file-section {
  padding-block: 52px;
  border-top: 1px solid var(--line);
}
.file-section h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  margin-bottom: 30px;
}
.file-section h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.file-section p {
  text-wrap: pretty;
}

.file-aside {
  position: sticky;
  top: 28px;
  padding-top: 52px;
}
.file-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.file-toc li {
  border-bottom: 1px solid var(--line);
}
.file-toc a {
  display: block;
  padding-block: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.file-toc a:hover {
  color: #cf4626;
}
.aside-cta {
  margin-top: 30px;
  padding: 22px;
  background: var(--tint);
  border-radius: 10px;
}
.aside-cta p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* The story. */
.lede {
  font-size: 23px;
  line-height: 1.55;
  max-width: 60ch;
}

/* MARK: Charts */

.chart {
  margin: 28px 0 0;
}
.chart-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart svg text {
  font-family: "DM Sans", Arial, sans-serif;
}
.chart [tabindex]:focus-visible {
  outline: none;
}
.grid {
  stroke: var(--pencil);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.grid.baseline {
  stroke: var(--ink);
  stroke-dasharray: none;
  stroke-width: 1.5;
}
.axis-label {
  font-size: 12px;
  fill: var(--muted);
  text-anchor: middle;
}
.axis-unit {
  font-size: 12px;
  font-weight: 700;
  fill: var(--muted);
}
.axis-line {
  stroke: var(--ink);
  stroke-width: 2;
}
.axis-ticks {
  stroke: var(--pencil);
  stroke-width: 1.4;
}
.point-label {
  font-size: 13px;
}
.point-value {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  fill: var(--ink);
}
.point-name {
  fill: var(--muted);
}
.dot circle:not(.hit),
.mark circle,
.dial svg {
  transition: transform 0.16s;
}
.dot circle:not(.hit) {
  transform-box: fill-box;
  transform-origin: center;
  stroke: var(--paper);
  stroke-width: 2;
}
.dot .hit {
  fill: transparent;
}
.dot:hover circle:not(.hit),
.dot:focus-visible circle:not(.hit) {
  transform: scale(1.35);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.chart-legend-top {
  margin: 0 0 14px;
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.key::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.key-family::before {
  background: var(--coral);
  border: 1.5px solid var(--ink);
}
.key-other::before {
  background: #dfe4e9;
  border: 1.5px solid var(--pencil);
}
.key-mark::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
}
.key-new::before {
  height: 3px;
  width: 20px;
  border-radius: 2px;
  background: var(--coral);
}
.key-sale::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}
.key-today::before {
  width: 8px;
  height: 18px;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0.85;
}
.key-note {
  font-size: 13px;
}
.chart-numbers {
  margin-top: 10px;
  border: 0;
  padding: 0;
}
.chart-numbers summary::after {
  content: none;
}
.chart-numbers summary {
  padding: 0;
  min-height: 0;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--pencil);
  text-underline-offset: 4px;
}
.chart-numbers table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}
.chart-numbers th,
.chart-numbers td {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.chart-numbers thead th {
  color: var(--muted);
  font-weight: 600;
}
.chart-tip {
  position: absolute;
  z-index: 50;
  max-width: 300px;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(12, 42, 68, 0.25);
}
.section-deck {
  font-size: 19px;
  color: var(--muted);
  margin: -14px 0 6px;
  max-width: 54ch;
}

/* The lifeline: milestones above, generations as bars, on one year axis. */
.lifeline svg {
  min-width: 600px;
}
.lifeline-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.mark {
  cursor: pointer;
}
.mark text {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}
.mark circle {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
.mark:hover circle,
.mark:focus-visible circle {
  transform: scale(1.3);
}
.mark-stem {
  stroke: var(--pencil);
  stroke-width: 1.2;
  stroke-dasharray: 2 3;
}
.bar rect {
  stroke-width: 1.5;
  transition: stroke-width 0.15s;
}
.bar-family rect {
  fill: var(--coral);
  stroke: var(--ink);
}
.bar-other rect {
  fill: #dfe4e9;
  stroke: var(--pencil);
}
.bar text {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}
.bar:hover rect,
.bar:focus-visible rect {
  stroke-width: 3;
}

/* Strips that scroll sideways: the milestones, every generation. */
.strip {
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  margin-top: 30px;
  padding: 6px 2px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.strip > ol,
.strip > ul {
  list-style: none;
  margin: 0;
  padding: 0 60px 0 0;
  display: flex;
  gap: 16px;
  width: max-content;
}
.strip li {
  scroll-snap-align: start;
}
.milestone-strip li {
  width: 270px;
  padding: 18px 18px 20px;
  background: var(--print);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  scroll-margin-left: 4px;
}
.milestone-strip li:target {
  background: var(--tint);
  box-shadow: 4px 4px 0 var(--ink);
}
.milestone-year {
  display: block;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e5532f;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.milestone-strip h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.milestone-strip p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.generation-prints h3 {
  margin-top: 40px;
}
.generation-prints .strip {
  margin-top: 8px;
  padding-top: 14px;
}
.generation-prints li {
  width: 210px;
}
.generation-prints .print-photo {
  width: 100%;
  transform: rotate(-1.4deg);
}
.generation-prints li:nth-child(even) .print-photo {
  transform: rotate(1.2deg) translateY(8px);
}
.generation-prints li.relative .print-photo {
  filter: grayscale(0.6);
}
.generation-prints figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.generation-prints figcaption span {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

/* At a glance: the instrument panel, then the facts. */
.panel {
  margin-top: 0;
  padding: 24px 22px 18px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}
.dials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px 10px;
}
.dial {
  margin: 0;
  text-align: center;
}
.dial svg {
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
  cursor: help;
}
.dial svg:hover,
.dial svg:focus-visible {
  transform: scale(1.03);
}
.dial-track {
  fill: none;
  stroke: rgba(251, 249, 244, 0.16);
  stroke-width: 10;
  stroke-linecap: round;
}
.dial-ticks {
  stroke: rgba(251, 249, 244, 0.55);
  stroke-width: 1.5;
}
.dial-scale {
  font-size: 11px;
  fill: rgba(251, 249, 244, 0.6);
  text-anchor: middle;
}
.dial-range {
  fill: none;
  stroke: var(--coral);
  stroke-width: 10;
  stroke-linecap: round;
}
.dial-needle {
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
}
.dial-hub {
  fill: var(--paper);
}
.dial figcaption {
  margin-top: -4px;
  display: grid;
  gap: 2px;
}
.dial-value {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dial-label {
  font-size: 13px;
  color: rgba(251, 249, 244, 0.7);
}
.panel-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(251, 249, 244, 0.65);
}
.panel .cite a {
  color: #ff9a7f;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.fact {
  padding: 15px 18px 16px;
  background: var(--print);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fact dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.fact dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

/* Power over the years. */
.power svg {
  min-width: 560px;
}
.power-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.power-area {
  fill: var(--coral);
  opacity: 0.12;
}
.power .dot circle:not(.hit) {
  fill: var(--coral);
}

/* Versions: a card each, with its power against the family's strongest. */
.version-grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.version {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--print);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.version-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--manila);
}
/* No photo of this version: the family's drawing stands in, parked on manila. */
.version-photo-drawing {
  object-fit: contain;
  padding: 10% 8% 6%;
}
.version-body {
  padding: 13px 16px 16px;
}
.version-kind {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e8ecf0;
}
.version-performance .version-kind {
  background: #ffe1d7;
  color: #a8391b;
}
.version-special .version-kind {
  background: var(--manila);
}
.version-limited .version-kind {
  background: var(--ink);
  color: var(--paper);
}
.version-racing .version-kind {
  background: var(--coral);
}
.version h3 {
  margin: 9px 0 2px;
  font-size: 18px;
}
.version-years,
.version-built {
  font-size: 14px;
  color: var(--muted);
}
.version-built {
  margin-top: 6px;
}
.meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
}
.track-bg {
  fill: #e6e9ec;
}
.meter-fill {
  fill: var(--coral);
}
.meter-value {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* Against its rivals: one figure, head to head. */
.rival-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.rival {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  background: var(--print);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.rival:not(:has(.rival-photo)) {
  grid-template-columns: minmax(0, 1fr);
}
.rival-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.rival-vs {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.duel-label {
  margin: 4px 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.duel-label span {
  font-size: 12px;
}
.duel-row {
  display: grid;
  grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 7px;
}
.duel-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duel-row .track {
  height: 12px;
  border-radius: 6px;
}
.duel-fill {
  fill: var(--ink);
}
.duel-ours .duel-fill {
  fill: var(--coral);
}
.duel-value {
  min-width: 70px;
  text-align: right;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.duel-wins .duel-value {
  color: var(--ink);
}
.duel-wins .duel-value::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 10px;
  margin-right: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.5l3 3L10.5 1.5' fill='none' stroke='%23ff6a45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* Prices. */
.price-today {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: -10px 0 4px;
}
.price-today-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.price-today-value {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.03em;
}
.market svg {
  min-width: 560px;
}
.price-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.dot-new circle:not(.hit) {
  fill: var(--coral);
}
.dot-sale circle:not(.hit) {
  fill: var(--ink);
}
.dot-launch circle:not(.hit) {
  fill: var(--paper);
  stroke: var(--coral);
  stroke-width: 3;
}
.today rect {
  fill: var(--ink);
  opacity: 0.85;
}
/* How to spot one. */
.spotting-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.spotting-head h2 {
  margin-bottom: 18px;
}
.spotter {
  width: auto;
  height: 132px;
  margin-right: 12px;
}
.spotting h3 {
  margin: 34px 0 14px;
}
.tells {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tells li {
  position: relative;
  padding: 16px 18px 17px 58px;
  font-size: 16px;
  line-height: 1.5;
  background: var(--print);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tells li:only-child,
.tells li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* A coral loop drawn around the detail to look for. */
.tells li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M17 3.2C9.5 2.4 3 6.4 3.2 12.4c.2 5.6 6.4 8.8 12.6 8.4 6.8-.4 11.6-4.4 11-9.6C26.2 6 20.8 2.6 13.4 3.6' fill='none' stroke='%23ff6a45' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}
.changes {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--ink);
}
.changes li {
  position: relative;
  padding: 2px 0 20px 8px;
}
.changes li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
}
.change-years {
  display: block;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.changes p {
  font-size: 16px;
  max-width: 62ch;
}
.lookalikes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lookalikes li {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-block: 26px;
  border-top: 1px dashed var(--pencil);
}
.lookalikes li:not(:has(.print-pair)) {
  grid-template-columns: minmax(0, 1fr);
}
.lookalikes h4 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.lookalikes p {
  font-size: 17px;
  color: var(--muted);
}
/* This car and its look-alike, two prints laid one over the other. */
.print-pair {
  display: grid;
  padding: 6px 4px 14px;
}
.print-photo {
  grid-area: 1 / 1;
  align-self: start;
  width: 70%;
  margin: 0;
  padding: 7px 7px 0;
  background: var(--print);
  box-shadow:
    0 1px 1px rgba(12, 42, 68, 0.12),
    0 6px 14px rgba(12, 42, 68, 0.1);
  transform: rotate(-3deg);
}
.print-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.print-photo figcaption {
  padding: 5px 2px 6px;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.print-photo + .print-photo {
  justify-self: end;
  margin-top: 28%;
  transform: rotate(2.5deg);
}
.print-photo:only-child {
  width: 82%;
  justify-self: center;
}
.seen-one {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding: 24px 26px;
  border-radius: 10px;
  background: var(--tint);
}
.seen-one p {
  font-size: 17px;
  max-width: 44ch;
}

/* The rest of the file: four folders, their headlines readable, the rest redacted. */
.locked-text {
  font-size: 19px;
  color: var(--muted);
  max-width: 54ch;
  margin-top: -12px;
}
.sheets {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 24px;
}
.sheet {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--manila);
  border: 1px solid var(--manila-edge);
  border-radius: 0 10px 10px 10px;
}
.sheet::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -19px;
  width: 46%;
  height: 20px;
  background: var(--manila);
  border: 1px solid var(--manila-edge);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.sheet h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sheet h3::after {
  content: "";
  width: 14px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3.5 7V4.8a3.5 3.5 0 0 1 7 0V7' fill='none' stroke='%230c2a44' stroke-width='1.8'/%3E%3Crect x='1.5' y='7' width='11' height='8' rx='1.6' fill='%230c2a44'/%3E%3C/svg%3E")
    no-repeat center / contain;
}
.sheet ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
}
.sheet li + li {
  margin-top: 6px;
}
.redacted {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.redacted .bar {
  height: 11px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.88;
}
.bar.w40 { width: 40%; }
.bar.w52 { width: 52%; }
.bar.w58 { width: 58%; }
.bar.w60 { width: 60%; }
.bar.w66 { width: 66%; }
.bar.w70 { width: 70%; }
.bar.w76 { width: 76%; }
.bar.w78 { width: 78%; }
.bar.w82 { width: 82%; }
.bar.w84 { width: 84%; }
.bar.w85 { width: 85%; }
.bar.w88 { width: 88%; }
.bar.w90 { width: 90%; }
.bar.w92 { width: 92%; }
.locked-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: 40px;
}
.locked-cta p {
  font-size: 15px;
  color: var(--muted);
  max-width: 34ch;
}

/* Sources and credits. */
.sources-note {
  font-size: 17px;
  color: var(--muted);
  margin-top: -14px;
  margin-bottom: 22px;
}
.source-list {
  border: 0;
  padding: 0;
}
.source-list summary,
.credits summary {
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--pencil);
  text-underline-offset: 4px;
}
.source-list summary::after,
.credits summary::after {
  content: none;
}
.publishers {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.publishers li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--print);
}
.source-list[open] + .publishers {
  display: none;
}
.sources ol {
  margin: 16px 0 0;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
}
.sources li {
  padding: 4px 0 4px 6px;
  scroll-margin-top: 24px;
}
.sources li::marker {
  font-weight: 700;
  color: #cf4626;
  font-variant-numeric: tabular-nums;
}
.sources li:target {
  background: var(--tint);
}
.sources a {
  text-decoration-color: var(--pencil);
}
.sources span {
  color: var(--muted);
}
.credits {
  padding-block: 28px 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.credits details {
  border: 0;
  padding: 0;
}
.credits ul {
  margin-top: 8px !important;
}
.credits h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}
.credits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.credits a {
  text-decoration-color: var(--pencil);
}

/* MARK: Cards */

.car-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 44px 32px;
}
.car-card a {
  display: block;
  text-decoration: none;
}
.car-card-stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2.5 / 1;
}
.car-card .drawing {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: 50% 100%;
  padding-inline: 3%;
  margin-bottom: -3px;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.car-card a:hover .drawing,
.car-card a:focus-visible .drawing {
  transform: translateX(10px);
}
.car-card-photo .car-card-stage {
  aspect-ratio: auto;
}
.car-card-photo .print {
  width: 78%;
  margin: 0 auto 12px;
}
.car-card-photo .print img {
  transform: rotate(-1.5deg);
}
.car-card-name {
  margin-top: 14px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.car-card a:hover .car-card-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.car-card-make {
  display: block;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 2px;
}
.car-card-tagline {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 34px;
}

/* MARK: Index and make pages */

.index-hero {
  padding-block: 30px 34px;
}
.index-hero h1 {
  margin-top: 30px;
}
.index-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-top: 24px;
}
.index-deck {
  font-size: 23px;
  line-height: 1.45;
  max-width: 40ch;
}
.index-count {
  font-size: 15px;
  color: var(--muted);
  max-width: 34ch;
}

/* Just researched: the newest cars, parked bumper to bumper. */
.parade {
  margin-top: 8px;
}
.parade-title {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 4px;
}
.parade-road {
  overflow-x: auto;
  scrollbar-width: none;
}
.parade-road::-webkit-scrollbar {
  display: none;
}
.parade-lane {
  width: max-content;
  min-width: 100%;
  padding-inline: max(48px, calc((100vw - 1216px) / 2));
  padding-bottom: 22px;
  /* The street: an ink kerb line and the dashes under it, as long as the lane. */
  background:
    linear-gradient(var(--ink), var(--ink)) left calc(100% - 20px) / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 64px) 40px calc(100% - 6px) / 100% 2px no-repeat;
  animation: drive-in 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.parade-cars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  gap: 30px;
}
.parade-cars a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.parade-cars .drawing {
  height: 112px;
  width: auto;
  margin-bottom: -3px;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.parade-cars a:hover .drawing,
.parade-cars a:focus-visible .drawing {
  transform: translateY(-6px);
}
.parade-name {
  order: -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.parade-cars a:hover .parade-name {
  color: var(--ink);
}
@keyframes drive-in {
  from {
    transform: translateX(-18%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.finder {
  padding-bottom: 80px;
}
.finder-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-block: 22px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.finder-field span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.finder-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--print);
  color: var(--ink);
  font-size: 18px;
}
.finder-field input::placeholder {
  color: var(--pencil);
}
.finder-makes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.finder-makes a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--print);
}
.finder-makes a:hover {
  border-color: var(--ink);
}
.finder-makes span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}
.finder-empty {
  padding-top: 40px;
  font-size: 19px;
  color: var(--muted);
}
.make-group {
  padding-top: 52px;
  scroll-margin-top: 110px;
}
.make-group h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 26px;
}
.make-group h2 a {
  text-decoration: none;
}
.make-group h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}
.make-group h2 span {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: 0.6em;
  margin-left: 4px;
}
.make-list {
  padding-block: 20px 80px;
}

.cars-missing {
  padding-block: 90px 120px;
}
.cars-missing p {
  margin: 22px 0 32px;
  font-size: 21px;
  color: var(--muted);
}

/* The language list under the footer. */
.languages {
  padding-bottom: 34px;
}
.languages ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
}
.languages a {
  text-decoration-color: var(--pencil);
}
.languages [aria-current] {
  color: var(--ink);
  font-weight: 700;
}

/* MARK: Smaller screens */

@media (max-width: 1000px) {
  .file-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .file-aside {
    position: static;
    padding-top: 0;
  }
  .file-toc {
    display: none;
  }
  .aside-cta {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .cars-page .nav-guides {
    display: none;
  }
  .cars-page .site-header nav > a {
    white-space: nowrap;
  }
  .hero-stage {
    --letter: min(calc((100vw - 40px) / (var(--n) * 0.6)), 380px);
  }
  .hero-lettering {
    -webkit-text-stroke-width: 1.5px;
  }
  .hero-caption,
  .index-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .hero-tagline,
  .index-deck,
  .lede {
    font-size: 20px;
  }
  .file-section {
    padding-block: 40px;
  }
  .tells,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .dials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 18px 12px 14px;
  }
  .dial-value {
    font-size: 18px;
  }
  .rival {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  .duel-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .milestone-strip li {
    width: 240px;
  }
  .generation-prints li {
    width: 170px;
  }
  .spotter {
    height: 96px;
    margin-right: 0;
  }
  .lookalikes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .print-pair {
    max-width: 340px;
  }
  .seen-one {
    flex-direction: column;
    align-items: flex-start;
  }
  .sheets {
    grid-template-columns: minmax(0, 1fr);
  }
  .finder-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .finder-makes ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .finder-makes li {
    flex: none;
  }
  .parade-lane {
    padding-inline: 20px;
  }
  .parade-cars .drawing {
    height: 84px;
  }
  .car-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .cars-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parade-lane {
    animation: none;
  }
  .car-card .drawing,
  .parade-cars .drawing,
  .car-card a:hover .drawing,
  .car-card a:focus-visible .drawing,
  .parade-cars a:hover .drawing {
    transform: none;
  }
}
