/* The same colors as the app. */
:root {
  --page: #14161a;
  --panel: #1d2026;
  --line: #2c3038;
  --chat: #0e141c;
  --text: #f1f3f5;
  --muted: #9aa2ae;
  --red: #e5404f;
  --red-text: #f0737f;
}

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.125rem/1.6 "Barlow", "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red-text); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }

h1, h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Bahnschrift", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1;
}
h1 { font-size: clamp(3.25rem, 9vw, 7rem); max-width: 11ch; }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
p { margin: 0 0 1rem; max-width: 62ch; }

code { font: 500 0.95em "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--text); }

kbd {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 4px;
  background: var(--panel);
  font: 500 0.9em "Barlow", "Segoe UI", sans-serif;
  color: var(--text);
}

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--panel); padding: 0.5rem 1rem; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
}
.logo img { width: 130px; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--red-text); }

/* The one big moment: the art arrives row by row, the way chat draws it. */
.hero-art {
  width: 100%;
  background: var(--chat);
  animation: paste 0.75s steps(5) both;
}
@keyframes paste {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

.hero-copy { padding-top: clamp(1.75rem, 4vw, 3rem); }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy p { font-size: clamp(1.125rem, 2vw, 1.375rem); }
.soon { color: var(--red-text); font-weight: 500; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; color: var(--muted); }
.steps li::before {
  content: counter(step);
  display: block;
  font: 700 3.5rem/1 "Barlow Condensed", "Segoe UI", sans-serif;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.steps strong { color: var(--text); font-weight: 500; }

/* A wall of art with no gaps, like one long chat. */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11.5rem, 46vw), 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--chat);
}
.wall li { position: relative; }
.wall img { width: 100%; }
.wall code {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.1rem 0.5rem;
  background: var(--chat);
  font-size: 0.85rem;
}

.pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.pairs li { display: grid; grid-template-columns: 2fr 3fr; align-items: center; gap: 1rem; }

.more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: 2rem 3rem;
  margin: 0;
}
.more dt { font-weight: 500; }
.more dd { margin: 0.25rem 0 0; color: var(--muted); max-width: 44ch; }

.get { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.get h2 { color: var(--red-text); }

.foot {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.foot nav { display: flex; gap: 1.5rem; margin-bottom: 1rem; }

/* Privacy, terms and the missing page. */
.page { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.page h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); max-width: none; margin-bottom: 0.5rem; }
.page h2 { font-size: 1.75rem; margin: 2.5rem 0 0.75rem; line-height: 1.1; }
.page ul { max-width: 62ch; padding-left: 1.25rem; margin: 0 0 1rem; }
.page li { margin-bottom: 0.4rem; }
.dated { color: var(--muted); }
.missing-art { width: min(100%, 44rem); margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
}
