@font-face { font-family: "Literata"; src: url(/fonts/literata-normal-300-800.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-italic-400-600.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-normal-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-normal-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* Newsprint and ink, the app's orange, and a highlighter. */
:root {
  --paper: #ECEEE8;
  --sheet: #F8F9F5;
  --ink: #1D2731;
  --muted: #5B6670;
  --rule: #CDD2CA;
  --orange: #C9561F;
  --marker: #F3DD6B;
  --serif: "Literata", Georgia, serif;
  --ui: "Atkinson", -apple-system, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141A20;
    --sheet: #1C242C;
    --ink: #E6E8E2;
    --muted: #9AA4AD;
    --rule: #2F3943;
    --orange: #F08A50;
    --marker: rgba(243, 221, 107, .32);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 19px/1.62 var(--serif); font-optical-sizing: auto;
}
a { color: var(--orange); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; font-family: var(--ui); }

.top, .bottom, main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; font-family: var(--ui); font-size: 16px; }
.top .mark { font: 600 22px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top nav a { margin-left: 22px; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0 96px; }
h1 {
  font-weight: 650; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.025em;
  margin: 0 0 28px; font-variation-settings: "opsz" 72; text-wrap: balance;
}
.lede { font-size: 21px; max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0; }
.button {
  font: 700 17px/1 var(--ui); color: #fff; background: var(--orange); text-decoration: none;
  padding: 15px 22px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .button { color: #1a1310; } }
.button:hover { filter: brightness(1.06); }
.aside { font: 15px/1.4 var(--ui); color: var(--muted); }

/* The pile that becomes a sheet */
.pile { position: relative; height: 470px; }
.sheet {
  position: absolute; inset: 0 10px; background: var(--sheet); border-radius: 14px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(29, 39, 49, .35);
  opacity: 0; transform: scale(.96); transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.sheet-title { position: absolute; top: 26px; left: 28px; font: 650 26px/1 var(--serif); font-variation-settings: "opsz" 48; }
.scrap {
  position: absolute; left: 30px; width: calc(100% - 60px); top: 0;
  display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--sheet); border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(29, 39, 49, .45), 0 0 0 1px var(--rule);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .9s ease, border-radius .9s ease;
}
.scrap b { font: 600 16px/1.25 var(--serif); grid-column: 2; }
.scrap em { font: 13px/1.3 var(--ui); font-style: normal; color: var(--muted); grid-column: 2; }
.scrap .ico { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 7px; background: var(--rule); position: relative; }
.ico::after { content: ""; position: absolute; inset: 7px; border: 2px solid var(--muted); border-radius: 2px; }
.ico.mail::after { border-radius: 1px; inset: 8px 6px; }
.ico.feed::after { border-radius: 50% 50% 50% 0; border-width: 2px 2px 0 0; inset: 7px 9px 9px 7px; }
.ico.play::after { inset: 7px 8px 7px 10px; border: none; border-left: 9px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-radius: 0; }
.ico.book::after { inset: 6px 8px; border-left-width: 4px; }
.ico.doc::after { inset: 6px 8px; }
.ico.tab::after { inset: 8px 6px 9px; border-top-width: 4px; }

/* Before: a mess. After: rows on the sheet. */
.s1 { transform: translate(-30px, 20px) rotate(-7deg); }
.s2 { transform: translate(40px, 92px) rotate(5deg); }
.s3 { transform: translate(-12px, 168px) rotate(-3deg); }
.s4 { transform: translate(52px, 240px) rotate(8deg); }
.s5 { transform: translate(-40px, 312px) rotate(-6deg); }
.s6 { transform: translate(24px, 384px) rotate(3deg); }
.gathered .sheet { opacity: 1; transform: none; }
.gathered .scrap { box-shadow: 0 0 0 0 transparent; border-radius: 0; background: transparent; }
.gathered .s1 { transform: translate(0, 72px); transition-delay: .05s; }
.gathered .s2 { transform: translate(0, 136px); transition-delay: .12s; }
.gathered .s3 { transform: translate(0, 200px); transition-delay: .19s; }
.gathered .s4 { transform: translate(0, 264px); transition-delay: .26s; }
.gathered .s5 { transform: translate(0, 328px); transition-delay: .33s; }
.gathered .s6 { transform: translate(0, 392px); transition-delay: .40s; }
.gathered .scrap + .scrap { }
@media (prefers-reduced-motion: reduce) {
  .sheet, .scrap { transition: none; }
  .sheet { opacity: 1; transform: none; }
  .scrap { box-shadow: none; border-radius: 0; background: transparent; }
  .s1 { transform: translate(0, 72px); } .s2 { transform: translate(0, 136px); } .s3 { transform: translate(0, 200px); }
  .s4 { transform: translate(0, 264px); } .s5 { transform: translate(0, 328px); } .s6 { transform: translate(0, 392px); }
}

/* Reading sections: one column, with notes in the margin on wide screens. */
.prose { max-width: 640px; margin: 0 0 88px; position: relative; }
h2 { font-weight: 650; font-size: 34px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 18px; font-variation-settings: "opsz" 60; }
h3 { font-weight: 650; font-size: 22px; line-height: 1.25; margin: 0 0 6px; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; }
.sources { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.sources li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sources strong { font-weight: 650; }
mark { background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%); color: inherit; padding: 0 .1em; }
.note {
  display: block; font: italic 16px/1.5 var(--serif); color: var(--muted); margin-top: 6px;
}
@media (min-width: 1000px) {
  .with-note { position: relative; }
  .note { position: absolute; top: .25em; left: calc(100% + 48px); width: 230px; margin-top: 0; }
}
.thing { margin: 0 0 34px; }
.thing p { margin: 0; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 1px 6px 2px; margin: 0 1px; text-align: center;
  font: 700 15px/1.4 var(--ui); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 6px;
}
.term {
  margin: 16px 0 0; padding: 16px 18px; border-radius: 10px; overflow-x: auto;
  background: #1D2731; color: #E6E8E2; font: 15px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) { .term { background: #0E1317; } }
.term .prompt { color: #F08A50; }
.term .out { color: #9AA4AD; }
.quiet { padding-left: 22px; border-left: 4px solid var(--orange); }
.figure { font: 650 30px/1.2 var(--serif); font-variation-settings: "opsz" 48; margin-bottom: 14px; }
.price .cta-row { margin-top: 26px; }

.bottom { padding-top: 28px; padding-bottom: 56px; border-top: 1px solid var(--rule); font: 15px/1.5 var(--ui); color: var(--muted); }
.bottom p { margin: 0 0 6px; }
.bottom a { margin-right: 18px; }

/* Simple text pages (privacy, support) */
.page { max-width: 660px; padding-top: 56px; padding-bottom: 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 24px; margin-top: 1.6em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 72px; }
  .pile { height: 470px; max-width: 460px; }
  .prose { margin-bottom: 72px; }
  body { font-size: 18px; }
  .lede { font-size: 19px; }
}
@media (max-width: 420px) {
  .top, .bottom, main { padding-left: 16px; padding-right: 16px; }
  .scrap { left: 16px; width: calc(100% - 32px); }
  .scrap b { font-size: 15px; }
  h2 { font-size: 28px; }
}
.scrap b, .scrap em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.after-list { margin-top: 18px; }
.small { font-size: 16px; line-height: 1.55; color: var(--muted); margin-top: 22px; }
/* Powerful, Considered, Yours: the summary, side by side on wide screens. */
.trio { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 36px; border-top: 1px solid var(--rule); }
.trio h2 { font-size: 30px; margin-bottom: 10px; }
.trio p { margin: 0; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 28px; } }
