@import url("https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400&display=swap");

:root {
  --paper: #f7f7f5;
  --ink: #1a1a1a;
  --stone: #c4c4c4;
  --muted: #5c5c5a;
  --tint: #dee8db;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1a1a;
    --ink: #f2f2f0;
    --stone: #3a3a3a;
    --muted: #a8a8a4;
    --tint: #273026;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 Georgia, "New York", "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 680px; margin: 0 auto; padding: 56px 20px 96px; }

h1, h2, .wordmark { font-family: "Literata", Georgia, serif; font-weight: 400; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.35rem; margin: 40px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); }
a { color: var(--ink); text-underline-offset: 3px; }

.wordmark { font-size: 1.4rem; text-decoration: none; }
header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; }
nav a { margin-left: 18px; font-size: 0.95rem; }

.panel { background: var(--tint); padding: 18px 20px; margin: 24px 0; }
hr { border: 0; border-top: 1px solid var(--stone); margin: 40px 0; }
footer { margin-top: 64px; font-size: 0.9rem; color: var(--muted); }



/* Home */
main.wide { max-width: 1040px; }
.eyebrow { font: 600 0.72rem/1.4 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lede { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 0.9rem; }
h3 { font-family: "Literata", Georgia, serif; font-weight: 400; font-size: 1.2rem; margin: 0 0 6px; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.08; margin-bottom: 18px; }
.cta-row { margin: 28px 0 8px; }
.button { display: inline-block; background: var(--ink); color: var(--paper); padding: 14px 24px; font-family: "Literata", Georgia, serif; font-size: 1.05rem; text-decoration: none; }

/* The phone is the one rounded thing on the page: it's the device, not our UI. */
.phone { position: relative; margin: 0 auto; width: 100%; max-width: 300px; aspect-ratio: 1170 / 2532; background: var(--paper); border: 10px solid #1a1a1a; border-radius: 46px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone::before { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 1.6rem "Literata", Georgia, serif; color: var(--muted); background: var(--tint); }
.phone::after { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; background: #1a1a1a; border-radius: 14px; z-index: 2; }

.words { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 112px; }
.word { border-top: 3px solid var(--ink); padding-top: 16px; }
.word p:last-child { font-size: 1.1rem; margin: 0; }

.features { display: flex; flex-direction: column; gap: 112px; margin-bottom: 112px; }
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.feature:nth-child(even) .phone { order: 2; }
.feature h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 14px; }
.feature p:last-child { font-size: 1.1rem; color: var(--muted); max-width: 30em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; border-top: 1px solid var(--stone); padding-top: 48px; margin-bottom: 112px; }
.grid p { color: var(--muted); margin: 0; }

.membership { border-top: 3px solid var(--ink); padding-top: 32px; margin-bottom: 96px; }
.membership h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; margin: 28px 0 16px; }
.plan { border: 1px solid var(--stone); padding: 18px 20px; }
.price { font: 400 1.6rem "Literata", Georgia, serif; margin: 0; }
.price .muted { font-size: 1rem; }

.closing h2 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin: 0 0 32px; }
footer nav a { margin: 0 18px 0 0; }

@media (max-width: 760px) {
  main.wide { padding-top: 32px; }
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .hero .phone { max-width: 260px; }
  .feature:nth-child(even) .phone { order: 0; }
  .feature .phone { max-width: 240px; }
  .words, .grid { grid-template-columns: 1fr; }
  .features { gap: 80px; }
}

@media (max-width: 480px) {
  header { flex-direction: column; gap: 8px; }
  nav a { margin: 0 18px 0 0; }
  .plans { grid-template-columns: 1fr; }
}
