/* Fonts, hosted here so visitors never hit Google's servers. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}

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

/* Palette and type, taken from the App Store artboards. */

:root {
  --background: #0E0F12;
  --surface: #26272C;
  --text: #F2EEE6;
  --text-muted: #B5B1AA;
  --accent: #C9A96E;
  --accent-hover: #E2C994;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
}

a,
img {
  -webkit-user-drag: none;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

/* Document pages (privacy policy, terms) */

.document {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 24px 128px;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
}

.document h1 {
  margin: 24px 0 8px;
  font-family: var(--serif);
  font-size: clamp(48px, 11vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1px;
}

.document h1 + p {
  margin: 0 0 56px;
  color: var(--text-muted);
  font-size: 15px;
}

.document h2 {
  margin: 56px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--surface);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
}

.document p,
.document ul {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.document strong {
  color: var(--text);
  font-weight: 600;
}

/* Not found page (Website/404.html) */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.not-found h1 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1px;
}

.not-found p {
  margin: 20px 0 0;
  color: var(--text-muted);
}

.not-found .back {
  margin-top: 32px;
  font-weight: 600;
}

/* Landing page */

.landing {
  overflow: hidden;
  text-align: center;
}

.landing h1,
.landing h2 {
  margin: 20px auto 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1px;
}

.landing h1 {
  max-width: 900px;
  font-size: clamp(52px, 10vw, 112px);
}

.landing h2 {
  font-size: clamp(44px, 8vw, 80px);
}

.landing em {
  font-style: italic;
}

.landing h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.landing p {
  color: var(--text-muted);
}

.hero {
  padding: 120px 24px 0;
}

.lead {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 19px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.app-store-badge {
  display: block;
}

.app-store-badge img {
  display: block;
}

/* All the cool combos drift slowly sideways in an endless loop */
/* The track holds two identical sets, so moving it by half its width loops without a seam */

.marquee {
  margin: 88px -24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.marquee-set {
  display: flex;
}

/* Spacing on each image rather than a gap, so the seam between the two sets matches the rest */
.marquee-set img {
  width: clamp(120px, 15vw, 190px);
  height: auto;
  margin-right: clamp(16px, 2.5vw, 32px);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 160px 24px 0;
}

.models,
.features {
  display: grid;
  gap: 56px 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.models {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.models img {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-bottom: 20px;
}

.models p,
.features p {
  margin: 0;
  font-size: 15px;
}

.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features li {
  padding-top: 28px;
  border-top: 1px solid var(--surface);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 160px;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--surface);
  font-size: 14px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

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

  .features {
    grid-template-columns: 1fr;
  }
}
