@font-face {
  font-family: "Staatliches";
  src: url("/assets/fonts/staatliches-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cabin";
  src: url("/assets/fonts/cabin-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --concrete: #D6D0C4;
  --asphalt: #24292E;
  --paint: #F5F5F0;
  --rust: #A6452A;
  --teal: #4F7C82;
  --stripe: #E4572E;
  --display: "Staatliches", "Arial Narrow", Impact, sans-serif;
  --text: "Cabin", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --bend: clamp(1.5rem, 5vw, 3.5rem);
  --dial: clamp(3.4rem, 8.5vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--asphalt);
  text-decoration-color: var(--rust);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--asphalt);
}

.frame a,
.exits a {
  color: var(--rust);
}

.frame a:hover,
.exits a:hover {
  color: var(--asphalt);
}

:focus-visible {
  outline: 3px solid var(--asphalt);
  outline-offset: 3px;
}

.dash :focus-visible,
.foot :focus-visible,
.sign-rust :focus-visible,
.jump-list :focus-visible {
  outline-color: var(--paint);
}

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset: 0 auto auto var(--gutter);
  transform: translateY(-200%);
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--paint);
  color: var(--asphalt);
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.dash {
  position: relative;
  background: var(--asphalt);
  color: var(--paint);
  border-radius: 0 0 var(--bend) var(--bend);
  padding-block: 1rem 1.75rem;
  margin-bottom: 1.5rem;
}

.dash::after {
  content: "";
  position: absolute;
  inset: auto 7% -0.9rem;
  height: 0.3rem;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 1.8rem, transparent 1.8rem 3.4rem);
}

.dash-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border: 5px double var(--paint);
  border-radius: 0.5rem;
  color: var(--paint);
  text-decoration: none;
}

.plate:hover {
  color: var(--paint);
  background: #2f363c;
}

.mark {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
}

.brand-note {
  font-size: 0.8rem;
  max-width: 17rem;
}

.jump-btn {
  anchor-name: --jump;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 3px solid var(--paint);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--paint);
  font: 700 0.95rem/1 var(--text);
  cursor: pointer;
}

.jump-btn:hover {
  background: var(--paint);
  color: var(--asphalt);
}

.jump-list {
  position: fixed;
  inset: auto;
  top: 5rem;
  right: var(--gutter);
  margin: 0;
  width: min(18rem, calc(100vw - 2 * var(--gutter)));
  padding: 1rem 1.1rem;
  border: 5px double var(--paint);
  border-radius: 0.5rem;
  background: var(--asphalt);
  color: var(--paint);
}

@supports (position-anchor: --jump) {
  .jump-list {
    position-anchor: --jump;
    top: calc(anchor(bottom) + 0.5rem);
    right: anchor(right);
  }
}

.jump-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.jump-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jump-list a {
  display: block;
  padding: 0.5rem 0;
  border-top: 2px dashed #5a636b;
  color: var(--paint);
  text-decoration: none;
}

.jump-list a:hover {
  color: var(--paint);
  text-decoration: underline;
}

.dials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dial {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: var(--paint);
  text-align: center;
  text-decoration: none;
}

.dial:hover {
  color: var(--paint);
}

.face {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--dial);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4249, #1b1f23 72%);
  box-shadow: inset 0 0 0 3px #3d464e;
  transition: transform 0.18s ease;
}

.face::before {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  background: repeating-conic-gradient(from 225deg, var(--paint) 0 1.6deg, transparent 1.6deg 13.5deg);
  mask:
    radial-gradient(circle, transparent 66%, #000 67%),
    conic-gradient(from 225deg, #000 0 270deg, transparent 270deg);
  mask-composite: intersect;
  opacity: 0.55;
}

.face .ic {
  width: 38%;
  height: 38%;
}

.dial:hover .face {
  transform: scale(1.05);
}

.dial:hover .face::before {
  opacity: 1;
}

.dial[aria-current="page"] .face {
  background: radial-gradient(circle at 35% 30%, #b9573a, var(--rust) 75%);
}

.dial[aria-current="page"] .face::before {
  background: repeating-conic-gradient(from 225deg, var(--stripe) 0 1.8deg, transparent 1.8deg 13.5deg);
  opacity: 1;
}

.dial-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.dial[aria-current="page"] .dial-name {
  text-decoration: underline 3px var(--stripe);
  text-underline-offset: 0.25em;
}

@media (min-width: 46rem) {
  .dials {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.lane {
  height: 0.3rem;
  margin-block: clamp(2.5rem, 6vw, 4rem);
  background: repeating-linear-gradient(90deg, var(--stripe) 0 1.8rem, transparent 1.8rem 3.4rem);
}

.stretch {
  padding-block: 0.5rem;
}

.sign {
  border: 7px double var(--asphalt);
  border-radius: 0.5rem;
  background: var(--paint);
  padding: 0.9rem 1.2rem;
}

.sign-teal {
  background: var(--teal);
  border-color: var(--paint);
  color: var(--paint);
  box-shadow: 0 0 0 4px var(--asphalt);
}

.sign-rust {
  background: var(--rust);
  border-color: var(--paint);
  color: var(--paint);
  box-shadow: 0 0 0 4px var(--asphalt);
}

.pagehead {
  padding-block: 1rem 0.5rem;
}

.pagehead .sign {
  display: inline-block;
  max-width: 100%;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
}

.pagehead h1 {
  font-size: clamp(2.2rem, 6.2vw, 4.2rem);
}

.lede {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
}

.body-cols {
  display: grid;
  gap: 2rem 3rem;
  align-items: start;
  margin-top: 2rem;
}

@media (min-width: 60rem) {
  .body-cols {
    grid-template-columns: minmax(0, 1fr) 21rem;
  }

  .body-cols.rev {
    grid-template-columns: 21rem minmax(0, 1fr);
  }
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin: 2.25rem 0 0.8rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.5rem 0 0.4rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 5px double var(--paint);
  border-radius: 0.4rem;
  background: var(--rust);
  color: var(--paint);
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--asphalt);
}

.btn:hover {
  background: var(--asphalt);
  color: var(--paint);
}

.frame {
  margin: 0;
  width: min(100%, 17.5rem);
  border: 7px double var(--asphalt);
  border-radius: 0.5rem;
  background: var(--paint);
  padding: 0.3rem;
}

.frame.broad {
  width: min(100%, 23rem);
}

.frame img {
  width: 100%;
  border-radius: 0.2rem;
}

.frame figcaption {
  padding: 0.55rem 0.35rem 0.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.frames {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.frames .frame {
  width: 100%;
}

.frames-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 38rem;
}

.frames-3 {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.frame-crop img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 0 100%;
}

.tilt {
  transform: rotate(-2deg);
}

.cockpit {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: end;
}

@media (min-width: 56rem) {
  .cockpit {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }
}

.glass {
  position: relative;
  overflow: hidden;
  min-height: clamp(21rem, 50vw, 31rem);
  background: var(--asphalt);
  border: 9px solid var(--asphalt);
  border-radius: 1.2rem 1.2rem 0.4rem 0.4rem;
}

@media (min-width: 40rem) {
  .glass {
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
    border-radius: 0;
    border: 0;
  }
}

.glass svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.glass-text {
  position: absolute;
  inset: auto 0 7% 0;
  padding-inline: 1rem;
  text-align: center;
}

.glass h1 {
  color: var(--paint);
  font-size: clamp(2.6rem, 9.5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  transform: perspective(520px) rotateX(34deg);
  transform-origin: 50% 100%;
}

.glass-tag {
  position: absolute;
  inset: 0.9rem auto auto 0.9rem;
  max-width: 14rem;
  padding: 0.45rem 0.8rem;
  border: 5px double var(--asphalt);
  border-radius: 0.4rem;
  background: var(--paint);
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (min-width: 40rem) {
  .glass-tag {
    inset: 1.2rem auto auto 8%;
  }
}

.readout {
  display: grid;
  margin: 0;
  border: 7px double var(--asphalt);
  border-radius: 0.5rem;
  background: var(--paint);
}

.readout div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr);
}

.readout div + div {
  border-top: 2px dashed var(--teal);
}

.readout dt {
  padding: 0.6rem 0.9rem;
  background: var(--asphalt);
  color: var(--paint);
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.readout dd {
  margin: 0;
  padding: 0.6rem 0.9rem;
}

.signs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.signs li {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}

.signs .ic {
  width: 2.4rem;
  height: 2.4rem;
}

.signs strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.exits {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.exits li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding-block: 1rem;
  border-top: 4px dashed var(--teal);
}

.exits li:first-child {
  border-top: 0;
}

.exits .ic {
  grid-row: span 2;
  width: 3rem;
  height: 3rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--asphalt);
  color: var(--paint);
}

.exits a {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.exits a:hover {
  text-decoration: underline;
}

.exits p {
  margin: 0;
}

.cmp-wrap {
  margin-top: 1.5rem;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  border: 7px double var(--asphalt);
  background: var(--paint);
}

.cmp caption {
  padding: 0.5rem 0;
  text-align: left;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.cmp th,
.cmp td {
  padding: 0.65rem 0.8rem;
  border-bottom: 2px dashed var(--teal);
  text-align: left;
  vertical-align: top;
}

.cmp thead th {
  background: var(--asphalt);
  color: var(--paint);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.cmp tbody th {
  font-weight: 700;
}

.cmp tbody tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 45rem) {
  .cmp thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
  }

  .cmp tbody tr {
    padding-block: 0.4rem;
    border-bottom: 4px dashed var(--teal);
  }

  .cmp tbody tr:last-child {
    border-bottom: 0;
  }

  .cmp th,
  .cmp td {
    border-bottom: 0;
    padding-block: 0.25rem;
  }

  .cmp td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.3rem 0.8rem;
  border: 4px double var(--asphalt);
  border-radius: 0.4rem;
  background: var(--paint);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.gauges {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gauges li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border: 7px double var(--asphalt);
  border-radius: 0.5rem;
  background: var(--paint);
}

.gauges .ic {
  grid-row: span 2;
  width: 4rem;
  height: 4rem;
  padding: 0.9rem;
  border-radius: 50%;
  background: var(--asphalt);
  color: var(--paint);
}

.gauges strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.gauges p {
  margin: 0;
}

.sideline {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.icon-note {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-note img {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border: 4px double var(--asphalt);
  border-radius: 0.5rem;
}

.icon-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: 2.25rem 2rem;
  border-radius: var(--bend) var(--bend) 0 0;
  background: var(--asphalt);
  color: var(--paint);
}

.foot-grid {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 4px dashed var(--teal);
}

@media (min-width: 52rem) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
}

.foot-note {
  max-width: 40rem;
  margin: 0;
  font-size: 0.95rem;
}

.foot a {
  color: var(--paint);
}

.foot a:hover {
  color: var(--paint);
  text-decoration-color: var(--stripe);
}

.foot-mail {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-legal a {
  display: inline-block;
  padding-block: 0.4rem;
}

.closed {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem var(--gutter);
  background: var(--asphalt);
  color: var(--paint);
}

.closed main {
  width: min(100%, 34rem);
}

.closed .sign {
  text-align: center;
  padding: 2rem 1.5rem;
}

.closed h1 {
  font-size: clamp(2.6rem, 10vw, 4.5rem);
}

.closed p {
  margin: 1rem 0 0;
}

.legal {
  max-width: 44rem;
  margin-top: 2rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .face {
    transition: none;
  }

  .dial:hover .face {
    transform: none;
  }
}

.frames-3,
.icon-note {
  margin-top: 1.75rem;
}

.prose .signs,
.prose .chips {
  padding-left: 0;
}

.prose .signs li,
.prose .chips li {
  margin-bottom: 0;
}

.frames {
  margin-block: 2rem;
}

.frames-pair {
  grid-template-columns: 720fr 959fr;
  align-items: start;
  max-width: 44rem;
}

.frames-3 {
  margin-top: 1.75rem;
}

.pagehead + .prose,
.pagehead + .frames {
  margin-top: 2rem;
}

.gauges {
  max-width: 44rem;
}

.lead-in {
  margin-top: 2rem;
}

.after {
  margin-top: 2rem;
}

.glass h1 {
  text-shadow: 0 0.05em 0 var(--asphalt);
}

.row-side {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-block: 2rem;
}

.row-side .frames {
  margin: 0;
}

.frames-pair {
  width: min(100%, 44rem);
}

.frames-2 {
  width: min(100%, 38rem);
}

@media (min-width: 64rem) {
  .row-side {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3rem;
  }
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a,
button {
  touch-action: manipulation;
}

.cmp td,
.readout dd {
  font-variant-numeric: tabular-nums;
}
