:root {
  --desk: #e6e0d4; --paper: #fbf8f1; --ink: #1f1c17; --ink-2: #5c564b; --ink-3: #8f877a;
  --rule: #e2dacb; --marker: #ddf54a; --dot: #9db800; --wash: #f4efe3;
  --letter: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --heavy: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 18px 40px -10px #3b2f1a33;
}
* { box-sizing: border-box; }
html { background: var(--desk); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--desk); color: var(--ink); font: 19px/1.5 var(--letter); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Chrome */
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.wordmark { font: 32px/1 var(--letter); text-decoration: none; color: var(--ink); }
.wordmark span, .sig span { color: var(--dot); }
.nav-note { font-style: italic; font-size: 17px; color: var(--ink-2); }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 22px; padding-bottom: 30px; font-size: 15px; color: var(--ink-2); }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Paper */
.sheet { position: relative; background: var(--paper); padding: 48px 56px 52px; box-shadow: var(--shadow); }
.sheet.narrow { max-width: 720px; margin: 0 auto 96px; }
.masthead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.masthead b { font: 700 14px var(--heavy); }
.masthead i { font-size: 17px; color: var(--ink-2); }
.sig { font-size: 30px; line-height: 1; margin-top: 8px; }
.heavy { font-family: var(--heavy); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
h1.heavy { font-size: clamp(34px, 4.4vw, 48px); }
.lead { font-size: 21px; }
.aside { font-style: italic; color: var(--ink-2); }
.small { font-size: 16px; }
.mark { background: linear-gradient(transparent 50%, var(--marker) 50%); padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.act { font: 700 13px var(--heavy); color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.act.quiet { font-weight: 400; color: var(--ink-2); }
.btn { display: inline-block; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font: 800 15px var(--heavy); padding: 15px 22px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; }
.line { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 6px 0 9px; font: 21px var(--letter); color: var(--ink); outline: none; }
.line::placeholder { color: var(--ink-3); font-style: italic; }
.line:focus { border-bottom-width: 2.5px; padding-bottom: 8px; }
.error { color: #9c2f12; font: 700 14px var(--heavy); }
.stack > * + * { margin-top: 22px; }
.ruled { border-top: 1px solid var(--rule); padding-top: 20px; }
.h-letter { font: 500 22px var(--letter); margin: 0; }

/* Hebel list */
.todo { list-style: none; margin: 14px 0 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: n; }
.todo li { display: flex; gap: 10px; padding: 14px 0 18px; border-bottom: 1px solid var(--rule); counter-increment: n; }
.todo li:last-child { border-bottom: 0; }
.todo li::before { content: counter(n); flex: none; width: 24px; font-style: italic; font-size: 22px; color: var(--ink-3); }
.todo strong { display: block; font: 800 clamp(23px, 2.4vw, 31px)/1.12 var(--heavy); letter-spacing: -0.02em; }
.todo small { display: block; margin-top: 8px; font-style: italic; font-size: 17px; color: var(--ink-2); }
.today { font: 800 26px var(--heavy); letter-spacing: -0.015em; margin: 26px 0 0; }

/* Landing */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); grid-template-areas: "sheet head" "sheet rest"; grid-template-rows: auto 1fr; gap: 28px 88px; align-items: start; padding-top: 16px; padding-bottom: 88px; }
.hero-demo { grid-area: sheet; }
.hero-demo .switch { margin-bottom: 18px; flex-wrap: wrap; }
.hero-head { grid-area: head; position: relative; padding-top: 40px; }
.hero-rest { grid-area: rest; position: relative; }
.pile { position: absolute; inset: 0 auto 40px -40vw; width: calc(40vw + 760px); overflow: hidden; font-style: italic; font-size: 17px; line-height: 1.5; color: #1f1c1717; pointer-events: none; user-select: none; }
.hero .sheet { transform: rotate(-0.8deg); }
.example { display: none; }
.story { margin-top: 22px; }
.story h2 { font: 800 clamp(23px, 2.4vw, 31px)/1.12 var(--heavy); letter-spacing: -0.02em; margin: 0; }
.story p { margin: 10px 0 0; font-size: 19px; line-height: 1.45; }
.story small { display: block; margin-top: 8px; font-style: italic; font-size: 16px; color: var(--ink-2); }
.why { list-style: none; margin: 0 0 22px; padding: 0; }
.why li { padding: 10px 0; font-size: 19px; }
.why strong { font: 800 19px var(--heavy); }
.example.on { display: block; }
.signup { display: flex; gap: 16px; align-items: flex-end; }
.signup .line { flex: 1; min-width: 0; }
.google { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 15px; color: var(--ink-2); }
.google label { font-style: italic; }
.google input { accent-color: var(--ink); margin-right: 6px; }
.hero-head .heavy { font-size: clamp(34px, 3.8vw, 46px); }
.switch { display: flex; gap: 18px; }
.switch .act[aria-pressed="false"] { font-weight: 400; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 24px; font-style: italic; color: var(--ink-3); }
.reading { border-top: 2px solid var(--ink); padding-top: 40px; padding-bottom: 72px; }
.reading b { font: 700 14px var(--heavy); }
.reading p { margin-top: 12px; font-style: italic; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; color: var(--ink-2); }

/* Goals form */
.notice { font-style: italic; font-size: 17px; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.fields { margin-top: 8px; }
.field { display: flex; align-items: flex-end; gap: 10px; padding-top: 14px; }
.field .n { flex: none; width: 24px; font-style: italic; font-size: 20px; color: var(--ink-3); padding-bottom: 10px; }
.field .line.goal { font: 800 23px var(--heavy); letter-spacing: -0.01em; }
.field .line.goal::placeholder { font: italic 400 20px var(--letter); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.rhythm { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 12px; }
.rhythm label { display: flex; align-items: center; gap: 8px; font: 15px var(--heavy); color: var(--ink-2); cursor: pointer; }
.rhythm label:has(input:checked) { font-weight: 700; color: var(--ink); }
.rhythm input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.time { margin-top: 12px; }
.time select { font: 800 19px var(--heavy); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 0 2px 3px; margin: 0 6px; cursor: pointer; }
.forward code { font: inherit; color: var(--ink); }

/* Done */
.crossed { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 14px 0 16px; }
.crossed s { display: block; font: 800 26px/1.15 var(--heavy); letter-spacing: -0.015em; color: var(--ink-2); text-decoration-thickness: 2px; }
.crossed s .mark { animation: swipe .6s ease-out .2s both; background-repeat: no-repeat; background-size: 100% 100%; }
@keyframes swipe { from { background-size: 0 100%; } }
.note-area { width: 100%; min-height: 116px; border: 0; resize: vertical; padding: 4px 0 0; font: 19px/38px var(--letter); color: var(--ink); background: transparent repeating-linear-gradient(transparent 0 37px, var(--rule) 37px 38px); outline: none; }
.open-list { list-style: none; margin: 10px 0 0; padding: 0; }
.open-list li { display: flex; gap: 10px; padding: 4px 0 12px; }
.open-list li > span { flex: none; width: 24px; font-style: italic; font-size: 20px; color: var(--ink-3); }
.open-list strong { display: block; font: 800 22px/1.15 var(--heavy); letter-spacing: -0.01em; }
.open-list small { display: inline-block; margin: 8px 12px 0 0; font-style: italic; font-size: 16px; color: var(--ink-2); }

/* Two columns need about 1200px; below that the headline goes on top and the note below it. */
@media (max-width: 1200px) {
  .hero { display: flex; flex-direction: column; gap: 32px; }
  .hero-head { padding-top: 0; max-width: 760px; }
  .hero-demo, .hero-rest { width: 100%; max-width: 760px; }
  .hero-head .heavy { font-size: clamp(32px, 5.4vw, 52px); }
}

@media (max-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .wordmark { font-size: 28px; }
  .sheet { padding: 28px 22px 30px; }
  .sheet.narrow { margin-bottom: 40px; }
  .hero { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
  .hero-head { padding-top: 0; }
  .hero .sheet { transform: none; }
  .pile { inset: 0 -16px auto; width: auto; height: 250px; font-size: 14px; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup .btn { text-align: center; }
  .reading { padding-top: 24px; padding-bottom: 40px; }
  .lead { font-size: 18px; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .crossed s .mark { animation: none; } }
