@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

/* palette sampled from the original drawing (scene8) */
:root {
  --paper: #F1E7C3;
  --paper-light: #FBF5E1;
  --ink: #1C1712;
  --soft: #5A5046;
  --moss: #90AB68;
  --sun: #F2CE44;
  --fire: #B83A14;
  --line: 3px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 Inter, system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--fire); }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
mark { background: var(--sun); color: inherit; padding: 0 0.12em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); }
.top nav { display: flex; gap: 18px; font-weight: 500; font-size: 0.9375rem; }

/* hero: the drawing's world, the caveman stands on the horizon */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 34rem) 1fr; gap: 24px; align-items: end; }
.hero-copy { padding: clamp(32px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; }
.lede { font-size: 1.1875rem; margin: 20px 0 0; max-width: 31rem; }
.sun { position: absolute; top: 4px; right: 4%; width: clamp(88px, 13vw, 150px); }
.hero-caveman { justify-self: end; width: min(360px, 100%); margin-bottom: -4px; position: relative; z-index: 1; }
.ground { height: 56px; background: var(--moss); border-top: var(--line) solid var(--ink); }

/* signup */
.signup { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; max-width: 31rem; }
.signup label { flex: 1 1 100%; font-weight: 600; font-size: 0.9375rem; }
.signup input {
  flex: 1 1 14rem; min-width: 0; font: inherit; color: var(--ink);
  background: var(--paper-light); border: var(--line) solid var(--ink); border-radius: 8px; padding: 12px 14px;
}
.signup input::placeholder { color: var(--soft); opacity: 1; }
.btn {
  flex: 0 0 auto; font: 600 1.0625rem/1 Inter, sans-serif; color: var(--ink); text-decoration: none; display: inline-block;
  background: var(--sun); border: var(--line) solid var(--ink); border-radius: 8px; padding: 14px 20px;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
}
.btn:hover { color: var(--ink); background: #F6D865; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.fineprint { margin: 14px 0 0; font-size: 0.875rem; color: var(--soft); max-width: 31rem; }
.status { margin: 14px 0 0; font-weight: 600; }
.status:empty { margin: 0; }
.status.ok { color: var(--ink); }
.status.err { color: var(--fire); }

/* cards */
.cards { padding-block: clamp(48px, 8vw, 88px); }
.cards h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.cards .intro { margin: 10px 0 0; max-width: 36rem; }
.card-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 24px; }
.card {
  background: var(--paper-light); border: var(--line) solid var(--ink); border-radius: 10px;
  box-shadow: 5px 5px 0 var(--ink); padding: 20px 20px 18px; display: flex; flex-direction: column;
}
.card-ep { margin: 0; font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ep { font-family: "JetBrains Mono", monospace; font-weight: 500; background: var(--ink); color: var(--paper); padding: 2px 8px; border-radius: 5px; }
.card h3 { font-size: 1.3125rem; line-height: 1.15; margin-top: 14px; }
.prompt { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 0.9375rem; line-height: 1.65; margin: 14px 0 0; }
.card-note { margin: auto 0 0; padding-top: 16px; font-size: 0.8125rem; color: var(--soft); }
.more { margin: 28px 0 0; font-weight: 500; }

/* footer stands on moss, like the ground in the videos */
.foot { background: var(--moss); border-top: var(--line) solid var(--ink); padding: 28px 0 36px; font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; }
.foot p { margin: 0; }

/* simple text pages (welcome, privacy) */
.page { padding-block: clamp(32px, 6vw, 64px) clamp(48px, 8vw, 80px); max-width: 40rem; position: relative; z-index: 1; }
.page h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; }
.page h2 { font-size: 1.375rem; margin-top: 32px; }
.page p, .page li { max-width: 36rem; }
.page .btn { margin-top: 12px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-caveman { width: 58%; max-width: 260px; margin-top: 8px; }
  .sun { right: 0; top: 0; width: 80px; }
  .hero h1 { padding-right: 72px; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}
.hero.welcome { min-height: 36rem; }
@media (max-width: 760px) { .hero.welcome { min-height: 0; } }
