@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --concrete: #e9e8e3;
  --slab: #f4f3ef;
  --asphalt: #16181b;
  --kerb: #3a3f47;
  --muted: #555b64;
  --line: #cfcdc5;
  --hivis: #e4f23c;
  --sign: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  font: 400 17px / 1.55 var(--text);
  color: var(--asphalt);
  background: var(--concrete);
  accent-color: var(--asphalt);
}
* {
  box-sizing: border-box;
}
::selection {
  background: var(--hivis);
  color: var(--asphalt);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 3px solid var(--asphalt);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--hivis);
}
h1,
h2,
.sign {
  font-family: var(--sign);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-wrap: balance;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: var(--asphalt);
  color: var(--slab);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 28px / 1 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mark {
  width: 28px;
  height: 20px;
  fill: var(--hivis);
}
.top nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}
.top nav a {
  font: 700 18px / 1 var(--sign);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #c9ccd1;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover {
  color: var(--slab);
  border-color: var(--hivis);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px) 72px;
}

/* Catalog */
.intro {
  margin-bottom: clamp(32px, 5vw, 64px);
}
.intro p {
  max-width: 56ch;
}
.intro h1 {
  font-size: clamp(44px, 7vw, 96px);
  margin: 0 0 16px;
  max-width: 14ch;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}
.leg {
  margin-top: 56px;
}
.leg > .sign {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 14px 6px;
  font-size: 30px;
  background: var(--asphalt);
  color: var(--hivis);
  border-radius: 2px;
}
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile {
  display: grid;
  gap: 4px;
  text-decoration: none;
}
.shoe {
  transition: transform 500ms var(--ease);
}
.shoe {
  display: block;
  width: 100%;
  height: auto;
}
.stage {
  display: block;
  background:
    linear-gradient(transparent 78%, var(--slab) 78%, var(--slab) 80%, transparent 80%), #dddcd5;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.stage .tile:hover .stage .shoe {
  transform: translateX(10px);
}
.tile-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.tile-name {
  font: 700 26px / 1 var(--sign);
  text-transform: uppercase;
}
.tile-meta {
  color: var(--muted);
  font-size: 15px;
  text-transform: capitalize;
}

/* Product */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.pdp-stage {
  margin: 0;
  position: sticky;
  top: 24px;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background:
    linear-gradient(transparent 73%, var(--slab) 73%, var(--slab) 74.5%, transparent 74.5%), #dddcd5;
  border-radius: 2px;
}
.course h1 {
  font-size: clamp(56px, 6vw, 84px);
  margin: 0;
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 16px;
  padding: 8px 14px 6px;
  background: var(--hivis);
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
}
.price span {
  font: 700 36px / 1 var(--sign);
  font-variant-numeric: tabular-nums;
}
.description {
  margin: 0 0 8px;
  max-width: 60ch;
}

.route {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  position: relative;
}
.route::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 32px;
  bottom: 32px;
  width: 4px;
  background: repeating-linear-gradient(var(--kerb) 0 10px, transparent 10px 18px);
}
.marker {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-bottom: 28px;
}
.marker:last-child {
  padding-bottom: 0;
}
.mile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 2px;
  background: var(--asphalt);
  color: var(--slab);
  font: 700 46px / 1 var(--sign);
  font-variant-numeric: tabular-nums;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.route-done li .mile {
  flex: none;
  background: var(--hivis);
  color: var(--asphalt);
  box-shadow: inset 0 0 0 3px var(--asphalt);
}
.marker[data-done] .mile {
  background: var(--hivis);
  color: var(--asphalt);
  box-shadow: inset 0 0 0 3px var(--asphalt);
}
.marker[data-done]:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 64px;
  bottom: 0;
  width: 4px;
  background: var(--asphalt);
  transform-origin: top;
  animation: draw 600ms var(--ease) both;
}
@keyframes draw {
  from {
    transform: scaleY(0);
  }
}
.marker h2,
.marker legend {
  font: 700 26px / 1 var(--sign);
  text-transform: uppercase;
  margin: 18px 0 14px;
  padding: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.sizes {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 8px;
  max-width: 420px;
}
.size {
  position: relative;
  cursor: pointer;
}
.size input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.size span {
  display: grid;
  place-items: center;
  height: 48px;
  border: 2px dashed #8d9098;
  border-radius: 2px;
  font: 700 22px / 1 var(--sign);
  font-variant-numeric: tabular-nums;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease);
}
.size:hover span {
  border-color: var(--asphalt);
}
.size input:checked + span {
  border: 2px solid var(--asphalt);
  background: var(--asphalt);
  color: var(--hivis);
}
.size input:focus-visible + span {
  outline: 3px solid var(--asphalt);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--hivis);
}
.pay {
  max-width: 420px;
}
paypal-button {
  display: block;
  width: 100%;
}
.status {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.marker p {
  margin: 0;
}
.review {
  margin: 32px 0 0;
  padding: 18px 20px;
  background: var(--slab);
  border-radius: 2px;
}
.review p {
  margin: 0 0 6px;
}
.review footer {
  font-size: 14px;
  color: var(--muted);
}

/* Order */
.finish h1 {
  font-size: clamp(56px, 9vw, 128px);
  margin: 0 0 12px;
}
.finish-head p {
  font-size: 20px;
  margin: 0;
}
.finish-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 32px;
  margin: 40px 0 28px;
  padding-top: 28px;
  border-top: 4px solid var(--asphalt);
}
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.lines .sku {
  grid-row: 2;
  color: var(--muted);
  font-size: 14px;
}
.amount {
  font-variant-numeric: tabular-nums;
}
.receipt {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  align-self: start;
  margin: 0;
  padding: 20px;
  background: var(--slab);
  border-radius: 2px;
}
.receipt .total {
  margin: 0;
  align-self: baseline;
  font: 700 32px / 1 var(--sign);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.back {
  font-weight: 600;
}

.site {
  display: grid;
  gap: 4px;
  padding: 22px clamp(16px, 4vw, 56px);
  background: var(--asphalt);
  color: #c9ccd1;
  font-size: 15px;
}
.site p {
  margin: 0;
  max-width: 90ch;
}
.site strong {
  color: var(--hivis);
}

@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp-stage {
    position: static;
    aspect-ratio: 4 / 3;
  }
  .finish-body {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .top nav a {
    font-size: 16px;
  }
  .sizes {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
.specs {
  margin: 0 0 14px;
  color: var(--muted);
}
.cap {
  text-transform: capitalize;
}
.finish {
  max-width: 1120px;
  margin: 0 auto;
}
.route-done {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  font: 700 26px / 1 var(--sign);
  text-transform: uppercase;
}
.route-done li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-done li:not(.arch)::after {
  content: "";
  flex: 1;
  height: 4px;
  min-width: 24px;
  margin: 0 16px;
  background: var(--asphalt);
}
.route-done li:nth-child(1),
.route-done li:nth-child(2) {
  grid-column: span 2;
}
.arch {
  padding: 10px 22px 10px 10px;
  background: var(--asphalt);
  color: var(--hivis);
  border-radius: 2px;
  box-shadow: 0 6px 0 -2px var(--hivis);
  animation: arrive 700ms var(--ease) both 200ms;
}
@keyframes arrive {
  from {
    clip-path: inset(0 100% 0 0);
  }
}
.bibs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 0;
}
.bib {
  padding: 0 0 16px;
  background: var(--slab);
  border-top: 12px solid var(--asphalt);
}
.bib dt {
  padding: 12px 18px 0;
  color: var(--muted);
  font-size: 15px;
}
.bib dd {
  margin: 4px 0 0;
  padding: 0 18px;
  font: 700 clamp(30px, 4vw, 48px) / 1 var(--sign);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .bibs {
    grid-template-columns: 1fr;
  }
  .route-done {
    font-size: 20px;
  }
  .route-done li:not(.arch)::after {
    margin: 0 8px;
  }
  .route-done li .mile {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage .shoe,
  .mile,
  .size span {
    transition: none;
  }
  .marker[data-done]:not(:last-child)::after,
  .arch {
    animation: none;
  }
}
