@font-face {
  font-family: "Tiny5";
  src: url("fonts/Tiny5.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #121015;
  --pink: #FF4FA0;
  --ink-2: #26212B;
  --ink-3: #443C4B;
  --line: #2E2834;
  --paper: #F4EEF6;
  --muted: #A99FB0;
  /* Tiny5 is drawn on an 8-per-em grid: only multiples of 8 px stay sharp. */
  --px: "Tiny5", "Unbounded", system-ui, sans-serif;
  --body: "Unbounded", system-ui, sans-serif;
  /* two-step pixel corner */
  --notch: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px,
    calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px),
    calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%,
    8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 300 16px/1.6 var(--body);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; }
p, h1, h2, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

#field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: -1;
}

/* header */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-tile { width: 40px; height: 40px; border-radius: 10px; }
.brand-word { height: 26px; width: auto; }

/* account links in the header */
.account { display: flex; align-items: center; gap: 22px; }
.link { border: 0; padding: 6px 0; background: none; color: var(--paper); font: 500 15px/1 var(--body); text-decoration: none; cursor: pointer; }
.link:hover { color: var(--pink); }
.who { color: var(--muted); font-size: 14px; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-px {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px 4px; border: 0;
  background: var(--pink); color: var(--bg); clip-path: var(--notch); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .25);
  font: 400 16px/1 var(--px); text-decoration: none; cursor: pointer;
}
.btn-px:hover { background: #FF74B5; }
.btn-px:active { transform: translateY(2px); box-shadow: inset 0 4px 0 rgb(0 0 0 / .25); padding: 4px 18px 0; }
.btn-px:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--paper); }


main { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 24svh;
}
.boil { display: grid; line-height: 0; }
.boil img { grid-area: 1 / 1; }
.boil img + img { visibility: hidden; }
.hero-word { width: min(78vw, 560px); height: auto; }
.lead { margin-top: 40px; font: 500 clamp(22px, 2.6vw, 34px)/1.2 var(--body); letter-spacing: -0.03em; }
.sub { margin: 14px auto 0; font-size: 17px; max-width: 44ch; color: var(--muted); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  height: 48px;
  padding: 0 22px 4px;
  background: var(--ink-2);
  clip-path: var(--notch);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / .3);
  font: 400 24px/1 var(--px);
}
.status i { width: 10px; height: 10px; background: var(--pink); }

/* footer, like Lane: brand and documents, then the word in dots running off the page bottom */
.foot { background: var(--bg); overflow: hidden; }
.foot-cols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  font-size: 13px;
}
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 12px; color: var(--muted); }
.foot-brand .copy { margin-top: 28px; color: var(--ink-3); }
.foot h2 { font: 400 16px/1 var(--px); color: var(--muted); margin-bottom: 18px; }
.foot ul { display: grid; gap: 12px; }
.foot a { text-decoration: none; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 2px no-repeat; }
.foot a:hover { color: var(--pink); background-size: 100% 2px; }
.foot-word { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }

/* documents: the title over a short band of hills that melt away, then plain text */
.doc-page #field { height: 460px; }
.doc-hero {
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 136px 32px 40px;
}
.doc-hero h1 { font: 400 56px/1.05 var(--px); }
.doc-hero .edition { margin-top: 14px; color: var(--muted); font-size: 13px; }
.doc { max-width: 720px; margin: 0 auto 120px; }
.doc h2 { margin-top: 56px; font: 400 32px/1.05 var(--px); }
.doc > :first-child { margin-top: 0; }
.doc p, .doc li { margin-top: 12px; color: #DCD3DF; font-size: 15px; line-height: 1.75; }
.doc b { font-weight: 500; color: var(--paper); }
.doc ol { list-style: decimal; padding-left: 1.4em; }
.doc ul { list-style: square; padding-left: 1.2em; }
.doc li::marker { color: var(--pink); }
.doc .todo { color: var(--muted); padding-left: 18px; position: relative; }
.doc .todo::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--pink); }
.doc a { color: var(--pink); }

@media (max-width: 560px) {
  .top { padding: 16px 20px; }
  .brand-word, .who { display: none; }
  .account { gap: 14px; }
  main { padding: 0 20px; }
  .hero { padding-top: 96px; }
  .sub { font-size: 15px; }
  .foot-cols { flex-direction: column; padding: 56px 20px 32px; gap: 36px; }
  .doc-page #field, .doc-hero { height: 340px; }
  .doc-hero { padding: 104px 20px 32px; }
  .doc-hero h1 { font-size: 40px; }
  .doc { margin: 16px 0 88px; }
  .doc h2 { font-size: 24px; }
}

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .brand { animation: rise 400ms steps(4) both; }
  .boil { animation: wipe 900ms steps(12) 100ms both; }
  .boil img { animation: boil 450ms steps(1) infinite; }
  .boil img + img { visibility: visible; }
  .boil img:nth-child(2) { animation-delay: -300ms; }
  .boil img:nth-child(3) { animation-delay: -150ms; }
  .lead { animation: rise 500ms steps(5) 700ms both; }
  .sub { animation: rise 500ms steps(5) 850ms both; }
  .status { animation: rise 500ms steps(5) 1000ms both; }
  .status i { animation: blink 1.2s steps(1) infinite; }

  .reveal { opacity: 0; }
  .reveal.in { opacity: 1; animation: rise 480ms steps(6) calc(var(--i, 0) * 90ms) backwards; }
  .foot a { transition: color 120ms steps(2), background-size 200ms steps(4); }
}
@keyframes boil { 0% { opacity: 1; } 33.34%, 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

