:root {
  --paper: #F2EEE6;
  --block: #FDFBF7;
  --ink: #1C1B19;
  --grey: #5F5B55;
  --shadow: #CBC6BA;
  --hair: #DDD7CC;
  --on-ink: #F2EEE6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1B19;
    --block: #2B2926;
    --ink: #F2EEE6;
    --grey: #A8A39A;
    --shadow: #4A4743;
    --hair: #36332E;
    --on-ink: #1C1B19;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { opacity: .7; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* Header */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-weight: 900; font-size: 24px; letter-spacing: -0.8px; }
nav.site { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
nav.site a { text-decoration: none; color: var(--grey); }
nav.site a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: .95;
}
.tagline { margin: 14px 0 0; font-size: 22px; color: var(--grey); }
.lede { margin: 28px 0 0; font-size: 19px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--on-ink);
  padding: 15px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.button:hover { opacity: .85; }
.note { font-size: 14px; color: var(--grey); }

/* Phone illustration */
.phone {
  justify-self: center;
  width: 300px; max-width: 100%;
  aspect-ratio: 390 / 800;
  background: var(--paper);
  border: 10px solid var(--ink);
  border-radius: 52px;
  padding: 44px 14px 0;
  position: relative;
  box-shadow: 0 30px 60px rgba(28, 27, 25, .18);
  overflow: hidden;
}
.phone .title { font-size: 34px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; padding: 0 6px; }
.phone .date { font-size: 12px; color: var(--grey); padding: 4px 6px 0; }
.stack { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.stack + .label { margin-top: 20px; }
.row {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px;
  background: var(--block);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
}
.row:first-child { border-top-left-radius: 14px; border-top-right-radius: 14px; }
.row:last-child { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.row i { width: 15px; height: 15px; border-radius: 50%; border: 1.3px solid var(--grey); flex: none; opacity: .6; }
.row small { margin-left: auto; color: var(--grey); font-size: 11px; font-weight: 600; }
.label { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; padding: 0 6px 8px; }
.phone .plus {
  position: absolute; right: 18px; bottom: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
  display: flex; align-items: center; justify-content: center;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding-bottom: 80px;
}
.feature { background: var(--block); padding: 28px 26px; border-radius: 8px; }
.feature:first-child { border-radius: 18px 8px 8px 18px; }
.feature:last-child { border-radius: 8px 18px 18px 8px; }
.feature h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--grey); font-size: 15px; }

/* Text pages */
.page { padding: 40px 0 80px; }
.page h1 { font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1.05; margin: 0 0 8px; }
.page .updated { color: var(--grey); font-size: 15px; margin: 0 0 32px; }
.page h2 { font-size: 20px; font-weight: 800; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-weight: 700; }
.card { background: var(--block); border-radius: 14px; padding: 22px 24px; margin: 20px 0; }
.card p { margin: 0; }
details { background: var(--block); border-radius: 8px; margin-top: 4px; padding: 16px 20px; }
details:first-of-type { border-top-left-radius: 14px; border-top-right-radius: 14px; }
details:last-of-type { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--grey); }

/* Footer */
footer.site {
  border-top: 1px solid var(--hair);
  padding: 28px 0 40px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 14px; color: var(--grey);
}
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--grey); text-decoration: none; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 0 56px; gap: 48px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature:first-child { border-radius: 18px 18px 8px 8px; }
  .feature:last-child { border-radius: 8px 8px 18px 18px; }
  .phone { width: 260px; }
  nav.site { gap: 16px; }
  .page h1 { font-size: 38px; }
}
