@font-face {
  font-family: 'Limelight';
  src: url('/fonts/limelight-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Old Standard TT';
  src: url('/fonts/old-standard-tt-regular-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --ink: #272923;
  --muted: #6d7065;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 7px;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.page {
  min-height: 720px;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 2000px;
  margin-inline: auto;
}

.masthead {
  padding: 32px 64px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: inherit;
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.9px;
  line-height: 1.4;
}

.wordmark span {
  font-size: 17px;
  font-weight: 400;
}

.heading {
  position: relative;
  z-index: 1;
  padding: 43px 64px 0;
  text-align: right;
  pointer-events: none;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(72px, 7vw, 132px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.057em;
  margin: 0;
}

.title-lead {
  font-family: 'Limelight', Georgia, 'Times New Roman', serif;
  font-size: min(1em, 10.8vw);
  letter-spacing: -.035em;
  white-space: nowrap;
}

h1 em {
  font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.065em;
}

.playground {
  flex: 1;
  position: relative;
  min-height: 315px;
  outline: none;
  touch-action: none;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}

.playground.can-grab {
  cursor: grab;
}

.playground.is-dragging {
  cursor: grabbing;
}

.ink {
  fill: var(--ink);
}

.paper {
  fill: var(--paper);
}

.skin {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.coat-fold {
  fill: none;
  stroke: #777970;
  stroke-width: .65;
}

.trouser-seam {
  fill: none;
  stroke: #686b60;
  stroke-width: .6;
}

.hat-band {
  fill: none;
  stroke: #85877d;
  stroke-width: 1;
}

.face-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
}

.shoe-detail {
  fill: none;
  stroke: #898b80;
  stroke-width: .7;
}

.shadow {
  fill: var(--ink);
  opacity: .09;
}

.road-edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: .75;
}

.road-marks {
  fill: none;
  stroke: #a1a297;
  stroke-width: .75;
  stroke-linecap: round;
}

.hills {
  fill: none;
  stroke: #d8d7cd;
  stroke-width: 1;
}

.poles {
  stroke: #c7c7bb;
  stroke-width: 1;
  fill: none;
}

.can-fill {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.can-hatching {
  fill: url(#hatching);
}

.hatch-line {
  stroke: var(--ink);
  stroke-width: .5;
  opacity: .2;
}

.can-end {
  fill: #e3e2d8;
  stroke: var(--ink);
  stroke-width: 1;
}

.can-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: .65;
}

.can-rib {
  fill: none;
  stroke: var(--ink);
  stroke-width: .55;
  opacity: .65;
}

.can-dent {
  fill: none;
  stroke: var(--ink);
  stroke-width: .65;
}

.tether {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0;
  pointer-events: none;
}

.grip {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
}

.foot-hint {
  fill: none;
  stroke: var(--ink);
  stroke-width: .8;
  stroke-dasharray: 2 5;
  opacity: .32;
  pointer-events: none;
  transition: opacity .3s;
}

.playground:focus-visible:not(.is-dragging) .foot-hint {
  opacity: .65;
  stroke-width: 1.1;
}

.has-interacted .foot-hint,
.is-dragging .foot-hint {
  opacity: 0;
}

.is-dragging .tether,
.is-dragging .grip {
  opacity: .65;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px 64px 35px;
  min-height: 75px;
  font-size: 12px;
  line-height: 1.5;
}

.footer p {
  margin: 0;
}

.distance {
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .02em;
}

.distance output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-left: 5px;
}

.instructions {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}

.instructions svg {
  width: 16px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.again {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 9px 0 9px 10px;
  background: transparent;
  cursor: pointer;
}

.again svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s;
}

.again:hover svg {
  transform: rotate(-40deg);
}

.again span {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #bcbeb1;
}

.again:hover span {
  text-decoration-color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.no-script {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
}

@media (min-width: 1800px) {

  .masthead,
  .heading {
    padding-left: 90px;
    padding-right: 90px;
  }

  .heading {
    padding-top: 58px;
  }

  .footer {
    padding-inline: 90px;
  }
}

@media (max-width: 760px) {
  .page {
    min-height: 640px;
  }

  .masthead {
    padding: 25px 28px 0;
  }

  .wordmark {
    font-size: 17px;
    gap: 13px;
  }

  .heading {
    padding: 52px 28px 0;
  }

  h1 {
    font-size: clamp(51px, 10.2vw, 76px);
    line-height: 1.06;
    letter-spacing: -.06em;
  }

  h1 em {
    letter-spacing: -.07em;
  }

  .playground {
    min-height: 330px;
  }

  .footer {
    padding: 0 28px 24px;
    grid-template-columns: 1fr auto;
    row-gap: 21px;
    font-size: 11px;
  }

  .instructions {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .distance {
    grid-column: 1;
    grid-row: 2;
  }

  .again {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 380px) {
  .masthead {
    padding-inline: 21px;
  }

  .heading {
    padding-inline: 21px;
    padding-top: 44px;
  }

  h1 {
    font-size: 47px;
  }

  .footer {
    padding-inline: 21px;
  }
}

@media (max-height: 700px) and (max-width: 760px) {
  .page {
    min-height: 540px;
  }

  .masthead {
    padding-top: 20px;
  }

  .heading {
    padding-top: 25px;
  }

  .playground {
    min-height: 260px;
  }

  .footer {
    row-gap: 12px;
    padding-bottom: 18px;
  }
}

@media (max-height: 740px) and (min-width: 761px) {
  .page {
    min-height: 600px;
  }

  .masthead {
    padding-top: 23px;
  }

  .heading {
    padding-top: 25px;
  }

  h1 {
    font-size: clamp(65px, 7.3vw, 105px);
  }

  .playground {
    min-height: 275px;
  }

  .footer {
    padding-bottom: 23px;
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
