@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken_grotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --card: #fbf8f2;
  --ink: #1e2a22;
  --muted: #5e6258;
  --forest: #2f5a45;
  --accent: #a0502c;
  --rule: #ddd4c3;
  --bezel: #1e2a22;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1a13;
    --card: #132219;
    --ink: #e8efe9;
    --muted: #a3b0a6;
    --forest: #8ee3b0;
    --accent: #ffa27a;
    --rule: #26382d;
    --bezel: #2a3d31;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { padding: 24px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 22px; font-size: 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 48px 0 72px; }
h1 { font-size: 52px; line-height: 1.08; letter-spacing: -1.5px; font-weight: 700; }
.lede { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 520px; }

.join { margin-top: 32px; padding: 22px 24px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; max-width: 520px; }
.join h2 { font-size: 17px; font-weight: 700; }
.join ol { margin: 12px 0 0 20px; color: var(--muted); }
.join li { margin: 6px 0; }
.join li a { font-weight: 600; }
.join .note { margin-top: 12px; font-size: 15px; color: var(--muted); }

.phone { justify-self: center; width: 300px; border-radius: 36px; overflow: hidden; border: 8px solid var(--bezel); background: #0c1a13; }
.phone img { display: block; width: 100%; height: auto; }

/* How it works */
.steps { padding: 24px 0 80px; border-top: 1px solid var(--rule); }
.steps h2 { font-size: 28px; letter-spacing: -0.5px; margin: 48px 0 28px; }
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps figure img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--rule); display: block; }
.steps figcaption { margin-top: 14px; }
.steps figcaption strong { display: block; font-size: 18px; }
.steps figcaption span { color: var(--muted); font-size: 16px; }

/* Build log */
.page { padding-top: 32px; padding-bottom: 80px; max-width: 760px; }
.page h1 { font-size: 40px; }
.page .lede { font-size: 18px; }
.log { list-style: none; margin-top: 40px; }
.log li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule); }
.log time { color: var(--muted); font-size: 15px; padding-top: 3px; }
.log h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.log p { margin-top: 6px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 16px 0 48px; }
  .log li { grid-template-columns: 1fr; gap: 6px; }
}

/* Phones */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  header { padding: 16px 0; }
  .brand { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  nav { gap: 16px; font-size: 15px; }

  h1 { font-size: 34px; letter-spacing: -1px; }
  .lede { margin-top: 14px; font-size: 17px; }

  /* The app screen comes before the join box, cropped to its top half. */
  .hero > div:first-child { display: contents; }
  .hero h1 { order: 1; }
  .hero .lede { order: 2; }
  .hero .phone { order: 3; }
  .hero .join { order: 4; }
  .hero { display: flex; flex-direction: column; gap: 0; }
  .phone { width: 240px; height: 360px; margin-top: 28px; border-width: 6px; border-radius: 30px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; align-self: center; }
  .phone img { object-fit: cover; object-position: top; height: 100%; }
  .join { margin-top: 0; padding: 18px 18px; border-radius: 14px; }

  /* How it works: a row you swipe through, with the next card peeking in. */
  .steps { padding-bottom: 56px; }
  .steps h2 { font-size: 24px; margin: 36px 0 20px; }
  .steps ol { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .steps ol::-webkit-scrollbar { display: none; }
  .steps li { flex: 0 0 72%; scroll-snap-align: start; }
  .steps figure img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 18px; max-width: none; }
  .steps figcaption strong { font-size: 17px; }
  .steps figcaption span { font-size: 15px; }

  .page h1 { font-size: 32px; }
  .log { margin-top: 28px; }
  .log li { padding: 20px 0; }
  .log h2 { font-size: 18px; }

  footer .wrap { flex-direction: column; gap: 8px; }
}
