/* The app's own palette: warm paper, ink, and the gradient only where
   something has been resolved. */
:root {
  --paper: #fbf9f5;
  --ink: #181613;
  --ink-soft: #6b655c;
  --ink-faint: #a8a199;
  --hairline: #e7e2d9;

  /* The brand is paper. A site that flips to dark with the reader's system
     is a different object from the one in every screenshot of the app. */
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 640px; margin: 0 auto; }

header { padding: 72px 0 40px; }

.mark {
  display: block;
  width: 44px;
  height: 30px;
  margin-bottom: 28px;
}

h1, h2 {
  font-family: "New York", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 21px; margin: 44px 0 12px; }

.dateline {
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

p, li { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--ink); text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

ul { padding-left: 20px; }
li { margin: 8px 0; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 56px 0 32px; }

footer { color: var(--ink-faint); font-size: 14px; }
footer a { color: var(--ink-faint); }

/* --- Landing ------------------------------------------------------------ */

.hero { padding: 88px 0 28px; }
.hero h1 { font-size: 40px; }
@media (max-width: 480px) { .hero h1 { font-size: 31px; } }

.lede { font-size: 19px; margin: 18px 0 26px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }

.badge {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.cta .note { color: var(--ink-faint); font-size: 14px; }

h3 { font-size: 17px; margin: 30px 0 6px; color: var(--ink); }

.steps { padding-left: 20px; }
.steps li { margin: 14px 0; }

/* --- The demo ----------------------------------------------------------- */

.demo {
  margin: 42px 0 8px;
  padding: 30px 26px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  min-height: 250px;
}

.demo-note { display: flex; gap: 13px; font-size: 17px; line-height: 1.5; }

.demo-note .dot {
  flex: 0 0 auto;
  width: 5px; height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--hairline);
}

.demo-note.writing .dot { background: var(--ink-faint); }

/* While it is read, the colour runs through the words themselves. */
.demo-note.reading .text {
  background: linear-gradient(100deg,
    var(--ink) 0%, var(--ink) 32%,
    #fa8f54 42%, #f05c9e 50%, #9e4ceb 58%, var(--ink) 68%, var(--ink) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 1.6s linear infinite;
}

@keyframes sweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.panel { margin-top: 6px; }
.group { margin-top: 22px; }

.label {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label .glyph { margin-right: 5px; }

.panel ul { list-style: none; margin: 0; padding: 0; }

.panel li {
  color: var(--ink);
  font-size: 16px;
  margin: 8px 0;
}

.panel li.arriving { animation: arrive .7s ease-out both; }

@keyframes arrive {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-note.reading .text { animation: none; }
  .panel li.arriving { animation: none; }
}
