@font-face {
  font-family: Manrope;
  src: url('./assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --ink: #25251f;
  --muted: #625e54;
  --line: #d5d0c5;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible, video:focus-visible {
  outline: 3px solid #9f5b00;
  outline-offset: 4px;
}

.wrap {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1;
  background: var(--paper);
  padding: 12px;
}

.skip:focus { top: 16px; }

.hero { padding-block: 42px 28px; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img { border-radius: 12px; }

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.hero p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-top: 12px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.demo-card { min-width: 0; }

.demo-card:first-child {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.demo-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171714;
}

.demo-card h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-block: 12px 5px;
}

.demo-card:first-child h2 { font-size: 1.4rem; }

.description { max-width: 76ch; }

.demo-card a, .screenshot-card a, .section-heading a, .press-details a, .footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
}

.screenshots {
  border-top: 1px solid var(--line);
  margin-block: 40px 32px;
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 1.6rem;
  letter-spacing: -.025em;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.screenshot-card { min-width: 0; }

.screenshot-stage {
  height: clamp(240px, 31vw, 340px);
  background: #e7e1d5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.screenshot-stage img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.screenshot-card figcaption {
  margin-top: 8px;
  font-weight: 650;
}

.press-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  border-top: 1px solid var(--line);
  padding-block: 24px;
}

.press-details h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.press-details p {
  color: var(--muted);
  max-width: 58ch;
}

.press-details p + p { margin-top: 8px; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 22px;
  border-top: 1px solid var(--line);
  padding-block: 12px 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

@media (max-width: 960px) {
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding-block: 28px 20px; }
  .hero p { font-size: 1rem; }
  .brand img { width: 40px; height: 40px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .press-details { grid-template-columns: minmax(0, 1fr); }
  .demo-card:first-child { margin-bottom: 0; }
  .screenshot-grid { gap: 16px 12px; }
  .screenshot-stage { height: 225px; padding: 10px; }
  .screenshot-card figcaption { font-size: .875rem; }
}
