@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/space-grotesk-400.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-display: swap;
}

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

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/fonts/inter-600.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/inter-700.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f9f9;
  --white: #ffffff;
  --ink: #111111;
  --muted: #4c4546;
  --surface: #eeeeee;
  --blue: #3a6ee2;
  --red: #dc2626;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 8px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--surface) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(249, 249, 249, 0.96);
  border-bottom: var(--border);
}

.wordmark,
.nav-links,
.cta-row,
.footer-grid,
.screens-grid,
.feature-grid,
.proof-strip {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 10px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border: var(--border);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--blue);
  font-size: 0.85rem;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.release-link:hover,
.site-footer a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(48px, 8vw, 92px) 0 64px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  padding: 7px 12px;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lede {
  max-width: 620px;
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.sublede {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-red {
  color: var(--white);
  background: var(--red);
}

.button-blue {
  color: var(--white);
  background: var(--blue);
}

.button-plain {
  background: var(--white);
}

.button-small {
  min-height: 40px;
  padding: 8px 13px;
}

.button-wide {
  width: 100%;
}

.cta-row {
  flex-wrap: wrap;
  gap: 14px;
}

.chinese-positioning {
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 4px solid #f2e600;
  font-weight: 700;
}

.hero-board {
  position: relative;
  min-height: 690px;
  overflow: hidden;
}

.phone-card,
.screen-phone {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}

.phone-card {
  position: absolute;
  width: min(48%, 280px);
  padding: 10px;
}

.phone-card img,
.screen-phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border: var(--border);
  border-radius: 18px;
}

.phone-card figcaption,
.screen-phone figcaption {
  padding: 10px 4px 2px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  text-align: center;
}

.phone-card-feed {
  top: 24px;
  left: 28px;
  transform: rotate(-4deg);
}

.phone-card-player {
  right: 22px;
  bottom: 30px;
  transform: rotate(4deg);
}

.doodle-note {
  position: absolute;
  padding: 10px 13px;
  background: #f2e600;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
}

.note-one {
  top: 96px;
  right: 60px;
  transform: rotate(7deg);
}

.note-two {
  left: 58px;
  bottom: 126px;
  background: var(--white);
  transform: rotate(-7deg);
}

.proof-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--white);
  border-top: var(--border);
  border-bottom: var(--border);
}

.proof-strip div {
  min-width: 170px;
  padding: 12px 15px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-section,
.safety-section,
.download-grid {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-heading {
  display: grid;
  max-width: 800px;
  gap: 18px;
  margin-bottom: 34px;
}

.feature-grid {
  align-items: stretch;
  gap: 18px;
}

.feature-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card p {
  margin-top: 12px;
  color: var(--muted);
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.screens-section {
  padding: clamp(64px, 9vw, 104px) 0;
  background: var(--surface);
  border-top: var(--border);
  border-bottom: var(--border);
}

.screens-grid {
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.screen-phone {
  flex: 1 1 0;
  max-width: 250px;
  padding: 10px;
}

.safety-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.paper-panel,
.download-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.paper-panel {
  padding: 28px;
}

.safety-copy {
  display: grid;
  gap: 18px;
}

.safety-list {
  display: grid;
  gap: 14px;
}

.safety-list div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
}

.safety-list span,
.download-grid p,
.site-footer p {
  color: var(--muted);
}

.download-section {
  background: var(--ink);
  color: var(--white);
  border-top: var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: 30px;
  align-items: center;
}

.download-section .eyebrow {
  color: var(--ink);
}

.download-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
}

.version-stamp {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.release-link {
  font-weight: 800;
  text-align: center;
}

.checksum {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.checksum span {
  display: block;
  margin-top: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.site-footer {
  padding: 28px 0;
  background: var(--white);
  border-top: var(--border);
}

.footer-grid {
  justify-content: space-between;
  gap: 22px;
}

.footer-grid div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero,
  .download-grid,
  .safety-section {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: 600px;
  }

  .feature-grid,
  .screens-grid {
    flex-wrap: wrap;
  }

  .feature-card {
    flex-basis: calc(50% - 18px);
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .wordmark span:last-child {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-board {
    min-height: 500px;
  }

  .phone-card {
    width: 56%;
  }

  .phone-card-feed {
    left: 4px;
    transform: rotate(-2deg);
  }

  .phone-card-player {
    right: 4px;
    transform: rotate(2deg);
  }

  .note-one {
    right: 8px;
  }

  .note-two {
    left: 2px;
    bottom: 92px;
  }

  .feature-card,
  .screen-phone {
    flex-basis: 100%;
    max-width: none;
  }

  .screen-phone img {
    max-height: 560px;
  }

  .button {
    width: 100%;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
