@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('site/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('site/fonts/fraunces-latin.woff2') format('woff2');
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('site/fonts/fraunces-latin-italic.woff2') format('woff2');
}

:root {
  --night: #0f1f28;
  --night-raised: #16303b;
  --bezel: #071117;
  --line: #3c5562;
  --line-strong: #5b7685;
  --paper: #f3eee3;
  --paper-text: #13262f;
  --paper-muted: #4a5d64;
  --text: #f3eee3;
  --muted: #b9c4c4;
  --accent: #e8b04b;
  --accent-ink: #8a5a12;
  --serif: Fraunces, Georgia, serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--text);
  font:
    400 16px/1.5 Inter,
    system-ui,
    sans-serif;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--night);
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.stack {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 112px;
}

/* .stack's 420px basis is a column width; in this vertical stack it would
   become a 420px height. */
.stack-lg > .stack {
  flex: none;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.body {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

/* Header and footer */

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  /* The logo file is dark blue; use it as a mask in the text color, as the
     app tints it with its theme color. */
  background: var(--text);
  -webkit-mask: url('site/logo.png') center / contain no-repeat;
  mask: url('site/logo.png') center / contain no-repeat;
}

.site-header nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
}

.nav-link {
  padding: 12px 14px;
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

.site-footer {
  padding-block: 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .brand {
  font-size: 15px;
  color: var(--text);
}

.site-footer .logo {
  width: 28px;
  height: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-footer nav > * {
  padding: 12px;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-accent {
  background: var(--accent);
  color: var(--night);
}

.button-accent:hover {
  background: #f0c16a;
}

.button-outline {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 500;
}

.button-outline:hover {
  border-color: var(--text);
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-block: 56px 96px;
  overflow-x: clip;
}

.hero-copy {
  flex-basis: 460px;
  gap: 32px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  color: var(--accent);
}

.lead {
  max-width: 460px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-phones {
  --phone: 250px;
  position: relative;
  flex: 1 1 520px;
  min-width: 0;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.halo {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--night-raised);
}

.phone {
  width: 230px;
  border: 8px solid var(--paper-text);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(19, 38, 47, 0.18);
}

.hero-phones .phone {
  position: absolute;
  border-color: var(--bezel);
}

.phone-left,
.phone-right {
  width: 210px;
  border-width: 7px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone-left {
  transform: translateX(-190px) rotate(-8deg);
}

.phone-right {
  transform: translateX(190px) rotate(8deg);
}

.hero-phones .phone-front {
  position: relative;
  width: 250px;
  border-radius: 34px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

/* Sections */

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  padding-block: 112px;
}

.split-reverse {
  flex-wrap: wrap-reverse;
}

.split-top {
  align-items: flex-start;
  gap: 56px;
}

.paper {
  background: var(--paper);
  color: var(--paper-text);
}

.paper .eyebrow {
  color: var(--accent-ink);
}

.paper .body,
.paper .card p {
  color: var(--paper-muted);
}

.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
  font-size: 15px;
  color: var(--paper-muted);
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatches span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cfc8b8;
}

.swatches span:nth-child(1) {
  background: #fff;
}

.swatches span:nth-child(2) {
  background: #f1e1c6;
}

.swatches span:nth-child(3) {
  background: #777d80;
  border-color: #777d80;
}

.swatches span:nth-child(4) {
  background: #12181d;
  border-color: #12181d;
}

.pair {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
}

.pair .phone {
  flex: 0 1 230px;
}

.pair .raised {
  margin-bottom: 64px;
}

.solo {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.phone-glow {
  width: 270px;
  border-color: var(--bezel);
  border-radius: 36px;
  box-shadow:
    0 0 0 1px #2a4553,
    0 40px 90px rgba(0, 0, 0, 0.5);
}

.wave {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 48px;
  padding-top: 8px;
}

.wave span {
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
}

.wave span:nth-child(n + 6) {
  background: var(--line);
}

.wave span:nth-child(1) {
  height: 14px;
}
.wave span:nth-child(2) {
  height: 30px;
}
.wave span:nth-child(3) {
  height: 44px;
}
.wave span:nth-child(4) {
  height: 24px;
}
.wave span:nth-child(5) {
  height: 36px;
}
.wave span:nth-child(6) {
  height: 18px;
}
.wave span:nth-child(7) {
  height: 32px;
}
.wave span:nth-child(8) {
  height: 12px;
}
.wave span:nth-child(9) {
  height: 26px;
}
.wave span:nth-child(10) {
  height: 16px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 40px 0;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
}

.card p {
  font-size: 17px;
  line-height: 1.6;
}

.paper .card-dark {
  background: var(--paper-text);
  color: var(--text);
}

.paper .card-dark p {
  color: var(--muted);
}

.card-screen {
  height: 380px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.card-screen .phone {
  width: 260px;
  flex-shrink: 0;
  align-self: flex-start;
  box-shadow: none;
}

.card-dark .phone {
  border-color: var(--bezel);
}

.account {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  padding-block: 96px;
}

.account h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}

.checks svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.downloads {
  background: var(--night-raised);
}

.downloads h2 {
  flex: 1 1 360px;
}

.platforms {
  flex: 2 1 560px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.platforms li:last-child {
  border-bottom: 1px solid var(--line);
}

.platforms h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}

.platforms p,
.upcoming h3,
.soon {
  color: var(--muted);
}

.platforms p {
  margin-top: 4px;
  font-size: 15px;
}

.platforms .button {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.soon {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hero {
    padding-block: 24px 56px;
  }

  .hero-phones {
    height: 460px;
  }

  .halo {
    width: 360px;
    height: 360px;
  }

  .phone-left,
  .phone-right {
    width: 150px;
    border-width: 6px;
    border-radius: 24px;
  }

  .phone-left {
    transform: translateX(-110px) rotate(-8deg);
  }

  .phone-right {
    transform: translateX(110px) rotate(8deg);
  }

  .hero-phones .phone-front {
    width: 180px;
    border-width: 6px;
    border-radius: 26px;
  }

  .split,
  .stack-lg {
    padding-block: 72px;
  }

  .pair .raised {
    margin-bottom: 40px;
  }

  .card {
    padding: 28px 24px 0;
  }

  .account {
    padding-block: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
