/* Pause: a notebook page. Young Serif for the few big words, Hanken Grotesk for reading. */
:root {
  color-scheme: light dark;
  --paper: #f3f3f7;
  --ink: #161722;
  --soft: #5d5f70;
  --rule: #dcdce6;
  --accent: #2b2d4a;
  --head: #161722;
  --peach: #f0a283;
  --select: rgba(253, 187, 160, .45);
  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15161f;
    --ink: #e9e8ef;
    --soft: #9d9fb0;
    --rule: #2a2c3b;
    --accent: #FDBBA0;
    --head: #FDBBA0;
    --peach: #FDBBA0;
    --select: rgba(253, 187, 160, .28);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--select); }
a { color: var(--accent); text-decoration-color: var(--peach); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

main, footer { width: min(100% - 40px, 36rem); margin-inline: auto; }
main { padding: 72px 0 24px; }

/* The app's own icon */
.appicon { display: block; width: 72px; height: 72px; border-radius: 17px; margin: 0 0 26px; }
.home { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 6px 0; color: var(--ink); text-decoration: none; font: 400 1.15rem/1 var(--serif); }
.home img { width: 40px; height: 40px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { .appicon, .home img { box-shadow: 0 0 0 1px var(--rule); } }

h1, h2 { color: var(--head); }
h1 { font: 400 clamp(3rem, 12vw, 4.4rem)/.95 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
h1.page { font-size: clamp(2.4rem, 9vw, 3.2rem); }
.sub { font-size: 1.25rem; line-height: 1.45; margin: 0 0 32px; max-width: 24em; text-wrap: pretty; }
h1 + .small { margin: 0 0 32px; }
h2 { font: 400 1.6rem/1.2 var(--serif); letter-spacing: -.01em; margin: 56px 0 12px; text-wrap: balance; }
p { margin: 0 0 16px; text-wrap: pretty; }
.q { font-weight: 650; margin: 30px 0 4px; }
h2 + .q { margin-top: 8px; }
strong { font-weight: 650; }
.small { font-size: .95rem; color: var(--soft); }
ul, ol { margin: 0 0 16px; padding-left: 1.2em; }
li { margin: 0 0 8px; padding-left: .2em; }
li::marker { color: var(--soft); }

/* App Store badge, kept to Apple's black */
.get { margin: 0 0 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 11px;
         padding: 7px 18px 7px 14px; text-decoration: none; line-height: 1.1; }
.store:hover { background: #1b1d1f; }
.store svg { width: 21px; height: 25px; fill: #fff; flex: none; }
.store small { display: block; font-size: .7rem; }
.store b { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.get + .small { margin-bottom: 48px; }

.note { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--soft); }
.nb { white-space: nowrap; }

footer { display: flex; gap: 22px; padding: 8px 0 56px; font-size: .95rem; }
footer a { color: var(--soft); }
footer a:hover { color: var(--ink); }

@media (max-width: 520px) {
  main { padding-top: 48px; }
  .sub { font-size: 1.15rem; }
  h2 { margin-top: 44px; }
}
