:root {
  color-scheme: light dark;
  --paper: #f3f1ed;
  --ink: #1f1e1c;
  --muted: #6b6762;
  --line: #d8d3cb;
  --surface: #faf8f4;
  --ting: #fff1e6;
  --glow: #fff4d4;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --ink: #f0ece6;
    --muted: #a39c93;
    --line: #3a3732;
    --surface: #1d1c19;
    --ting: #2a211c;
    --glow: #2a2618;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: .2rem;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2 { margin: 0; text-wrap: pretty; }
h1, h2 { font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }

.skip {
  position: fixed;
  top: .75rem;
  left: 1rem;
  z-index: 2;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(68rem, calc(100% - 4.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding-block: .75rem;
}
.wordmark {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.04em;
  text-decoration: none;
}

.hero {
  padding: 3.25rem 0 3.75rem;
  max-width: 38rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero p {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.apps { display: grid; gap: 1rem; padding-bottom: 4.5rem; }
.app {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(14rem, .95fr);
  gap: 2.5rem;
  align-items: center;
  min-height: 22rem;
  padding: 2rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), background-color .25s ease;
}
.app:hover { transform: translateY(-2px); }
.app:active { transform: translateY(1px); }
.app-ting { background: var(--ting); }
.app-glow { background: var(--glow); }
.app-copy { min-width: 0; }
.app-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.15rem;
}
.app-brand img { width: 3rem; height: 3rem; border-radius: .8rem; }
.app h2 { font-size: clamp(1.55rem, 2.4vw, 1.85rem); line-height: 1.15; }
.app p {
  margin-top: .85rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.more {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
.app:hover .more { text-decoration-thickness: 2px; }

.visual { display: grid; place-items: center; min-width: 0; }
.phone {
  width: min(100%, 13.5rem);
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 1.7rem;
  background: var(--ink);
  box-shadow: 0 16px 32px rgb(31 30 28 / .12);
}
.phone img { width: 100%; aspect-ratio: 1206 / 2622; }
.poster {
  width: min(100%, 16.5rem);
  border-radius: 1rem;
  overflow: hidden;
}
.poster img { width: 100%; aspect-ratio: 360 / 390; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.site-footer p { margin: 0; }

@media (max-width: 767px) {
  .wrap { width: calc(100% - 2.25rem); }
  .site-header { min-height: 4rem; }
  .hero { padding: 2.25rem 0 2.5rem; }
  .apps { padding-bottom: 3rem; }
  .app {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    min-height: 0;
    padding: 1.5rem 1.3rem 1.7rem;
  }
  .phone { width: 11.5rem; }
  .poster { width: 13.5rem; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app, .app:hover, .app:active { transition: none; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .phone { box-shadow: none; }
}
