@font-face {
  font-family: DelaPoster;
  src: url("fonts/dela-full.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffe14a;
  --ink: #111;
  --muted: #2a2200;
  --display: DelaPoster, ui-sans-serif, sans-serif;
  --ui: ui-sans-serif, system-ui, sans-serif;
  --tape: 44px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.tape {
  position: relative;
  z-index: 2;
  height: var(--tape);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.tape b {
  display: inline-block;
  padding-left: 0.4em;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.18em;
  font-weight: 400;
  animation: crawl 22s linear infinite;
}

@keyframes crawl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tape b {
    animation: none;
  }
}

.shell {
  min-height: calc(100dvh - var(--tape));
  display: grid;
  grid-template-rows: auto minmax(160px, 34vh);
}

.copy {
  position: relative;
  z-index: 1;
  padding: 28px 20px 8px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 14vw, 64px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

h1 span {
  display: block;
}

.lede {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.4;
  max-width: 22ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 2px;
}

.cta:focus-visible,
.legal a:focus-visible,
.doc a:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.cta:focus-visible,
.skip:focus-visible {
  outline-color: var(--paper);
  box-shadow: 0 0 0 6px var(--ink);
}

.what {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  max-width: 36ch;
}

.what h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.what p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.legal {
  margin-top: 28px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}

.legal a {
  color: var(--ink);
  font-weight: 700;
}

.mark {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  pointer-events: none;
  user-select: none;
}

.mark b {
  position: absolute;
  right: -4%;
  top: auto;
  bottom: calc(4% - 30px);
  left: auto;
  font-family: var(--display);
  font-size: min(86vw, 400px);
  line-height: 0.7;
  letter-spacing: -0.1em;
  color: var(--ink);
  transform: rotate(-9deg);
}

.doc {
  max-width: 62ch;
  padding: 28px 20px 40px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  line-height: 1.5;
}

.doc h1 {
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.05;
  margin-bottom: 8px;
}

.doc .meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.doc h2 {
  margin: 24px 0 8px;
  font-size: 15px;
}

.doc p,
.doc li {
  margin: 0 0 12px;
  font-size: 16px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.doc a {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 860px) {
  :root {
    --tape: 48px;
  }
  .tape b {
    font-size: 18px;
  }
  .shell {
    grid-template-rows: 1fr;
    grid-template-columns: minmax(380px, 48%) 1fr;
    min-height: calc(100dvh - var(--tape));
  }
  .copy {
    padding: 7vh 6vw 8vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  h1 {
    font-size: clamp(64px, 7vw, 96px);
  }
  h1 span {
    display: inline;
  }
  .lede {
    font-size: 22px;
  }
  .mark {
    min-height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  .mark b {
    right: -4%;
    top: auto;
    bottom: calc(6% - 30px);
    left: auto;
    transform: rotate(-9deg);
    font-size: min(48vw, 760px);
  }
  .doc {
    padding: 8vh 8vw 10vh;
  }
}
