:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  --page: #ebebf0;
  --ink: #0b0b0d;
  --ink-2: rgba(60, 60, 67, .76);
  --line: rgba(60, 60, 67, .16);
  --chip: #fff;
  --meal: #e87800;
  --workout: #1c9a45;
  --note: #5856d6;
  --memo: #e02f58;
  --shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 26px 48px -26px rgba(22, 22, 40, .38);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0d;
    --ink: #f5f5f7;
    --ink-2: rgba(235, 235, 245, .7);
    --line: rgba(84, 84, 88, .6);
    --chip: #1c1c1e;
    --meal: #ff9f0a;
    --workout: #30d158;
    --note: #8583ff;
    --memo: #ff5c7f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 26px 48px -26px rgba(0, 0, 0, .9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--note); outline-offset: 4px; border-radius: 6px; }

/* ---------- wordmark ---------- */

.top { padding: 22px clamp(20px, 4vw, 40px); }
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--round); font-size: 21px; font-weight: 700; letter-spacing: -.02em;
  text-decoration: none;
}
/* The week row from the app's home screen: two days done, today ringed. */
.logo { width: 39px; height: 15px; fill: currentColor; }
.logo .today { fill: var(--meal); }

/* ---------- bands ---------- */

.band {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(72px, 9vw, 120px) 24px;
  text-align: center;
  border-top: .5px solid var(--line);
}
.band.hero { min-height: calc(100svh - 70px); padding-top: 24px; border-top: 0; }
.band.white { background: var(--chip); }
.band.black { background: #000; color: #f5f5f7; --k: #ff9f0a; }

.hero h1 {
  max-width: 13ch; margin-inline: auto;
  font-family: var(--round); font-weight: 700;
  font-size: clamp(42px, 7vw, 92px); line-height: 1; letter-spacing: -.035em;
  text-wrap: balance;
}
.lede {
  max-width: 31ch; margin: clamp(18px, 2.4vw, 28px) auto 0;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.36; letter-spacing: -.012em;
  color: var(--ink-2); text-wrap: pretty;
}
.soon {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px; height: 38px; padding: 0 16px 0 13px; border-radius: 19px;
  background: var(--chip); box-shadow: 0 0 0 .5px var(--line);
  font-size: 15px; font-weight: 600; letter-spacing: -.012em;
}
.soon span { width: 8px; height: 8px; border-radius: 50%; background: var(--meal); }

/* The captures carry the device frame on a transparent ground, 423 by 882 with a 71.5 px corner. */
.phone { flex: none; width: clamp(220px, 24vw, 300px); border-radius: 16.9% / 8.1%; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 36px); }
.row .phone { width: clamp(104px, 22vw, 270px); }

.say {
  max-width: 15ch;
  font-family: var(--round); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -.028em;
  text-wrap: balance;
}
.say::before {
  content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--k);
}
[data-kind="meal"] { --k: var(--meal); }
[data-kind="workout"] { --k: var(--workout); }
[data-kind="note"] { --k: var(--note); }
[data-kind="memo"] { --k: var(--memo); }

/* ---------- long-form pages ---------- */

.doc {
  max-width: calc(66ch + 48px); margin-inline: auto;
  padding: clamp(28px, 6vw, 72px) 24px clamp(72px, 9vw, 120px);
  overflow-wrap: break-word;
}
.doc h1 {
  font-family: var(--round); font-weight: 700;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance;
}
.doc h1::before {
  content: ""; display: block; width: 12px; height: 12px; margin-bottom: 20px; border-radius: 50%;
  background: var(--k);
}
.doc h2 {
  margin: 52px 0 0; padding-top: 28px; border-top: .5px solid var(--line);
  font-family: var(--round); font-weight: 700;
  font-size: 25px; line-height: 1.16; letter-spacing: -.02em;
  text-wrap: balance;
}
.doc h3 { margin: 28px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.doc :is(p, ul, ol, dl) { margin: 14px 0 0; text-wrap: pretty; }
.doc :is(ul, ol) { padding-left: 1.25em; }
.doc li { margin-top: 7px; padding-left: 2px; }
.doc li::marker { color: var(--ink-2); }
.doc a { text-decoration: underline; text-decoration-color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc .meta { margin-top: 16px; font-size: 15px; letter-spacing: -.012em; color: var(--ink-2); }
.doc .lede { max-width: none; margin: 22px 0 0; }

/* Open questions for the owner stay loud until they are answered. */
.todo {
  padding: 1px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--meal) 24%, transparent); color: var(--ink);
  font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.gist {
  margin-top: 34px; padding: 22px 24px 24px; border-radius: 24px;
  background: var(--chip); box-shadow: 0 0 0 .5px var(--line);
}
.gist h2 { margin: 0; padding: 0; border: 0; font-size: 19px; }

.parties { border-top: .5px solid var(--line); }
.parties div { padding: 14px 0 15px; border-bottom: .5px solid var(--line); }
.parties dt { font-weight: 600; letter-spacing: -.012em; }
.parties dd { margin: 3px 0 0; color: var(--ink-2); }
@media (min-width: 680px) {
  .parties div { display: grid; grid-template-columns: 10.5em 1fr; gap: 20px; }
  .parties dd { margin: 0; }
}

.doc .steps { padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 30px; margin-top: 12px; padding: 3px 0 0 44px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chip); box-shadow: 0 0 0 .5px var(--line);
  font-family: var(--round); font-size: 15px; font-weight: 700;
}

/* ---------- footer ---------- */

.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px clamp(20px, 4vw, 40px) 40px;
  border-top: .5px solid var(--line);
  font-size: 15px; letter-spacing: -.012em; color: var(--ink-2);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot a { text-decoration: none; font-weight: 600; color: var(--ink); padding-block: 8px; }
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .lede, .soon, .row .phone { animation: rise .9s var(--ease-out) backwards; }
  .lede { animation-delay: 60ms; }
  .soon { animation-delay: 120ms; }
  .row .phone:nth-child(2) { animation-delay: 180ms; }
  .row .phone:nth-child(1) { animation-delay: 250ms; }
  .row .phone:nth-child(3) { animation-delay: 320ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
