/* Road Rage Payday
   Big Shoulders Display, Newsreader, and IBM Plex Mono are SIL Open Font License.
   License texts live in ../fonts/. */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/BigShouldersDisplay-latin.woff2") format("woff2");
}

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

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

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
}

:root {
  --ink: #14120e;
  --paper: #f3eee4;
  --paper-2: #e7e0d2;
  --card: #f7f3ea;
  --rule: #d5ccbb;
  --yellow: #ffd000;
  --yellow-2: #ffe14d;
  --brake: #b10e08;
  --mute: #3f3a33;
  --fog: #c8c0b2;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: Newsreader, "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 40rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
dl,
ol,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

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

.site-header a:focus-visible,
.site-footer a:focus-visible,
.door-watch:focus-visible,
.player:focus-visible {
  outline-color: var(--yellow);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.skip:focus {
  top: 0.6rem;
}

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

.band {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.hazard {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 10px,
    var(--ink) 10px 20px
  );
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.lede {
  max-width: var(--measure);
  margin-top: 1rem;
  font-size: clamp(1.15rem, 2.1vw, 1.42rem);
  line-height: 1.42;
}

.lede em {
  font-style: italic;
}

/* Header */

.site-header {
  background: var(--ink);
  color: var(--paper);
}

@media (min-width: 681px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1.2rem;
  padding-block: 0.45rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem 0.95rem;
}

.mark {
  display: flex;
  flex-direction: column;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark span:last-child {
  color: var(--yellow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-submit {
  background: var(--yellow);
  color: var(--ink);
}

.nav-submit:hover {
  background: var(--yellow-2);
}

.nav-watch {
  color: var(--paper);
}

.nav-watch:hover {
  color: var(--yellow);
}

.nav-submit[aria-current="page"] {
  box-shadow: inset 0 -4px 0 var(--ink);
}

.nav-watch[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--yellow);
}

/* Home */

.hero {
  padding-block: clamp(1.6rem, 4vw, 3.2rem) clamp(2rem, 5vw, 3.6rem);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 13.2vw, 5.2rem);
  letter-spacing: 0.01em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-title > span {
  display: block;
}

.hero-title > span:last-child {
  margin-top: 0.08em;
}

.paid {
  display: inline-block;
  background: var(--yellow);
  padding: 0 0.08em 0.02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.045em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-yellow {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-yellow:hover {
  background: var(--yellow-2);
}

.btn-yellow:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-side {
  min-width: 0;
}

.bezel {
  border: 2px solid var(--ink);
  background: #070706;
  padding: 8px;
  box-shadow: 10px 10px 0 var(--ink);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #10151c;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.5);
}

.screen svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #f4efe4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

.hud-tl {
  top: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--yellow);
}

.hud-tr {
  top: 8px;
  right: 10px;
}

.hud-bl {
  bottom: 8px;
  left: 10px;
}

.hud-br {
  right: 10px;
  bottom: 8px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.28);
}

.cam figcaption {
  padding-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.stub {
  margin-top: 1rem;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 0.85rem 0.95rem 0.45rem;
  box-shadow: 6px 6px 0 var(--ink);
}

.stub-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #b7ad9c;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stamp {
  color: var(--brake);
  font-size: 1.15rem;
  white-space: nowrap;
}

.stub dl > div,
.specimen dl > div {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.35;
}

.stub dl > div:last-child,
.specimen dl > div:last-child {
  border-bottom: 0;
}

.stub dt,
.specimen dt {
  color: var(--mute);
  font-weight: 500;
}

.stub dd,
.specimen dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Sections */

.block {
  padding-block: clamp(1.4rem, 4vw, 2.8rem);
}

.section-title {
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.7rem);
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.35rem;
  border-top: 2px solid var(--ink);
}

.step {
  min-width: 0;
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.step-no {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0 0.35rem;
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.step h3 {
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.15rem;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.step p,
.plain li,
.seq span {
  font-size: 1.08rem;
  line-height: 1.4;
}

.split {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.2rem;
}

.flag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.05rem 0.4rem 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.flag-air {
  background: var(--yellow);
}

.flag-hold {
  background: var(--brake);
  color: #fff;
}

.plain {
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 0.72rem 0;
  border-top: 1px solid var(--rule);
}

.more {
  margin-top: 1.15rem;
}

.more a {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 0.2em;
}

.ban {
  background: var(--yellow);
  padding-block: clamp(2rem, 6vw, 3.6rem);
}

.ban h2 {
  max-width: 11em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 8.6vw, 6.4rem);
  letter-spacing: 0.005em;
  line-height: 0.86;
  text-transform: uppercase;
}

.ban p {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
}

.doors {
  display: grid;
}

.door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.4rem;
  min-height: 260px;
  padding: clamp(1.35rem, 3vw, 2.15rem);
  text-decoration: none;
}

.door-send {
  background: var(--yellow);
  color: var(--ink);
}

.door-watch {
  background: var(--ink);
  color: var(--paper);
}

.door-send:hover {
  background: var(--yellow-2);
}

.door-watch:hover {
  background: #201e19;
}

.door-watch .kicker {
  color: var(--yellow);
}

.door-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 0.01em;
  line-height: 0.86;
  text-transform: uppercase;
}

.door-go,
.endcap-go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.door-go::after,
.endcap-go::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-0.05em) rotate(45deg);
}

.door-go {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Inner pages */

.mast {
  padding-block: clamp(1.7rem, 4.5vw, 3.2rem) 0.4rem;
}

.page-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 9vw, 5.5rem);
  letter-spacing: 0.01em;
  line-height: 0.86;
  text-transform: uppercase;
}

.desk-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.seq {
  padding: 0;
  list-style: none;
}

.seq li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}

.seq .n {
  background: var(--yellow);
  padding: 0 0.32rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.05;
}

.note {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--mute);
}

.specimen {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 1rem 1rem 0.85rem;
  box-shadow: 8px 8px 0 var(--ink);
}

.specimen-label {
  margin-bottom: 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hint {
  color: var(--mute);
}

.send-line {
  margin: 0.85rem 0 0.75rem;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 2.3vw, 1.15rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.send-line a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.specimen .btn {
  width: 100%;
}

.fine-ink {
  margin-top: 0.75rem;
  color: var(--mute);
  font-size: 1rem;
}

.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.15rem;
  row-gap: 0.25rem;
  align-items: center;
  min-height: 210px;
  margin-top: 0.4rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 10px 10px 0 var(--yellow);
}

.player:hover {
  background: #201e19;
}

.play {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--yellow);
}

.play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--ink);
}

.player-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--yellow);
}

.player-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.warning {
  max-width: var(--measure);
  margin-top: 1rem;
  font-style: italic;
}

.endcap {
  display: block;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  padding-block: 1.5rem 1.65rem;
}

.endcap:hover {
  background: var(--yellow-2);
}

.endcap-title {
  display: block;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}

.endcap-go {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inline-link {
  text-underline-offset: 0.16em;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--fog);
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  padding-block: 1.45rem 1.7rem;
}

.footer-brand {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  line-height: 0.82;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  color: var(--yellow);
}

.domain {
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-nav a {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.fine {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.4;
}

#pay,
#rules,
#get-the-app {
  scroll-margin-top: 1.25rem;
}

@media (min-width: 681px) {
  #pay,
  #rules,
  #get-the-app {
    scroll-margin-top: 6.5rem;
  }
}

@media (max-width: 680px) {
  .bar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .nav a {
    width: 100%;
    padding-inline: 0.4rem;
    font-size: 1.2rem;
  }

  .nav-watch {
    border: 2px solid var(--paper);
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .status-row span:nth-child(n + 2) {
    display: none;
  }
}

@media (max-width: 420px) {
  .stub dl > div,
  .specimen dl > div {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  .stamp {
    font-size: 1rem;
  }

  .play {
    width: 58px;
    height: 58px;
  }
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--rule);
  }

  .step {
    padding: 1.25rem 1.15rem 1.4rem;
    border-bottom: 0;
  }

  .step:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

  .step:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

@media (min-width: 760px) {
  .doors {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.15fr 0.9fr 1.25fr;
    align-items: start;
    gap: 1.5rem;
  }
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
}

@media (min-width: 900px) {
  .desk-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.25rem;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(4.4rem, 5.15vw, 6.05rem);
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 0;
  }

  .step,
  .step:nth-child(odd),
  .step:nth-child(n + 3) {
    border-top: 0;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }

  .step:last-child {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .rec-dot {
    animation: recblink 1.6s steps(1, end) infinite;
  }
}

@keyframes recblink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}
