@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0c0b0a;
  --bg-raise: #141210;
  --text: #f1eadc;
  --text-soft: #cfc7b8;
  --muted: #a39c8f;
  --line: #2a2723;
  --accent: #e2a13a;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* spacing scale: every margin, padding and gap below comes from here */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 72px;
  --section: clamp(40px, 5vw, 64px);
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) 0;
}
.logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-decoration: none;
}
.top nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: 15px;
}
.top nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
}
.top nav a:not(.btn):hover {
  color: var(--text);
}

/* ---- the one button component ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s4);
  background: var(--accent);
  color: #1a1206;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #efb554;
  border-color: #efb554;
}
.btn.outline {
  min-height: 44px;
  padding: 0 var(--s3);
  background: transparent;
  color: var(--text);
  border-color: #6a6358;
  font-size: 15px;
  font-weight: 500;
}
.btn.outline:hover {
  background: transparent;
  border-color: var(--text);
}

/* ---- type ---- */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s3);
}

/* ---- hero: headline + the A-or-B question the product is built on ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
  padding: var(--s4) 0 var(--s6);
}
.hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 450;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.lede {
  max-width: 30em;
  margin: var(--s4) 0 var(--s5);
  font-size: 19px;
  color: var(--text-soft);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
}
.cta .fine {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.duel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  width: 100%;
  max-width: 500px;
  justify-self: end;
}
.duel figure {
  margin: 0;
}
.duel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-raise);
  box-shadow: 0 24px 48px -24px #000;
}
.duel .pick img {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.duel figcaption {
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--muted);
}
.duel .pick figcaption {
  color: var(--accent);
  font-weight: 600;
}
.duel .neither {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.duel .neither i {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-soft);
}
.duel .or {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text-soft);
}

/* ---- sections ---- */
section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
section h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  max-width: 16em;
}

/* ---- how it works ---- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}
.steps {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}
.steps .num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  line-height: 1.4;
}
.steps h3 {
  font-size: 26px;
  margin-bottom: var(--s1);
}
.steps p {
  margin: 0;
  color: var(--text-soft);
  max-width: 30em;
}
/* A modern handset drawn in CSS. Everything scales from --w (the phone's width), so the proportions hold at any size.
   The screen is 390:844, the shape of a real phone; the screenshot (website/img/app) is captured at 390x790 and sits
   under a 54px status bar drawn here. */
.phone {
  --w: min(268px, 68vw);
  position: relative;
  justify-self: center;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #4b4741, #201e1b 45%, #36332e);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 40px 80px -30px #000,
    0 12px 24px -12px rgb(0 0 0 / 0.8);
}
/* side buttons: two volume keys on the left, power on the right */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: calc(var(--w) * 0.014);
  background: #3a3631;
  border-radius: 2px;
}
.phone::before {
  left: calc(var(--w) * -0.009);
  top: calc(var(--w) * 0.3);
  height: calc(var(--w) * 0.085);
  box-shadow: 0 calc(var(--w) * 0.115) 0 #3a3631;
}
.phone::after {
  right: calc(var(--w) * -0.009);
  top: calc(var(--w) * 0.4);
  height: calc(var(--w) * 0.14);
}
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--w) * 0.14);
  background: #0b0b0f;
  box-shadow: 0 0 0 calc(var(--w) * 0.012) #000;
}
.screen > img {
  width: 100%;
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--w) * 0.129);
  padding: 0 calc(var(--w) * 0.08);
  font-size: calc(var(--w) * 0.05);
  font-weight: 600;
  color: #fff;
}
.status img {
  width: calc(var(--w) * 0.17);
}
/* Dynamic Island and home indicator */
.screen::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: calc(var(--w) * 0.028);
  left: 50%;
  width: calc(var(--w) * 0.3);
  height: calc(var(--w) * 0.088);
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}
.screen::after {
  content: '';
  position: absolute;
  z-index: 1;
  bottom: calc(var(--w) * 0.02);
  left: 50%;
  width: calc(var(--w) * 0.33);
  height: max(3px, calc(var(--w) * 0.014));
  transform: translateX(-50%);
  background: rgb(255 255 255 / 0.85);
  border-radius: 999px;
}

/* ---- principles ---- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding-top: var(--s3);
  border-top: 2px solid var(--accent);
}
.principles b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--s1);
}
.principles span {
  color: var(--muted);
}

/* ---- closing ---- */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.closing h2 {
  max-width: 12em;
}

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: var(--s5) 0 var(--s6);
  color: var(--muted);
  font-size: 14px;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
}
footer p {
  margin: 0;
  max-width: 54em;
}
footer a {
  color: var(--text);
}

/* ---- prose pages ---- */
.prose {
  max-width: 660px;
  padding: var(--s6) 0 var(--s7);
}
.prose h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: var(--s4);
}
.prose h2 {
  font-size: 26px;
  margin: var(--s5) 0 var(--s1);
}
.prose p,
.prose li {
  color: var(--text-soft);
}
.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
}
.lost h1 {
  font-size: clamp(54px, 9vw, 120px);
}
.lost p {
  color: var(--muted);
  margin: var(--s3) 0 var(--s5);
}

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

/* ---- phone ---- */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .hide-sm {
    display: none !important;
  }
  .hero,
  .how {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: var(--s5);
    padding-top: var(--s2);
  }
  .duel {
    justify-self: center;
    max-width: 360px;
  }
  .lede {
    font-size: 18px;
  }
  .principles {
    gap: var(--s4);
  }
}
@media (max-width: 480px) {
  .principles {
    grid-template-columns: 1fr;
  }
  .closing .btn {
    width: 100%;
  }
}
