/* the keep — landing page.
   Tokens ported from docs/keep/visual.md §2 (light/dark). The page should feel
   like the app: cream paper, low-opacity ink, lowercase serif, no gradients-
   as-decoration, no icon grids. */

/* Lora, self-hosted (fontsource, OFL). The footer promises "nothing here
   tracks you either", and a Google Fonts request is a visitor IP handed to a
   third party — so the files ship with the page. */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lora-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/lora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lora-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-latin-500-italic.woff2') format('woff2');
}

:root {
  --bg: #FBF5E9;
  --paper: #FCF6E7;
  --paper2: #F3E9D2;
  --ink: #4E3B2C;
  --ink72: rgba(78, 59, 44, 0.72);
  --ink55: rgba(78, 59, 44, 0.55);
  --ink42: rgba(78, 59, 44, 0.42);
  --line: #7A5B44;
  --line45: rgba(122, 91, 68, 0.45);
  --rule: rgba(122, 91, 68, 0.22);
  --edge: rgba(122, 91, 68, 0.24);
  --btn: #E7A9AD;
  --btn-press: #D9959A;
  --btn-ink: #4E3B2C;
  --card-shadow: rgba(58, 42, 28, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262232;
    --paper: #37313F;
    --paper2: #2F2A38;
    --ink: #F3E9D9;
    --ink72: rgba(243, 233, 217, 0.72);
    --ink55: rgba(243, 233, 217, 0.55);
    --ink42: rgba(243, 233, 217, 0.42);
    --line: #E4D4BE;
    --line45: rgba(228, 212, 190, 0.45);
    --rule: rgba(243, 233, 217, 0.17);
    --edge: rgba(0, 0, 0, 0.45);
    --btn: #E0A0A5;
    --btn-press: #CE8E93;
    --btn-ink: #332E42;
    --card-shadow: rgba(0, 0, 0, 0.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- shared ---------- */

.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink42);
  margin-bottom: 14px;
}

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.12; }
h2 { font-size: clamp(27px, 6vw, 36px); line-height: 1.2; margin-bottom: 18px; }

.block {
  max-width: 620px;
  margin: 0 auto;
  padding: 84px 28px 0;
}
.block p { color: var(--ink72); max-width: 54ch; }
.block p + p { margin-top: 14px; }
.block em { font-style: italic; color: var(--ink); }

.btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--btn-ink);
  background: var(--btn);
  border: none;
  border-radius: 15px;
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}
.btn:hover, .btn:active { background: var(--btn-press); }

.wobble {
  max-width: 280px;
  margin: 84px auto 0;
  padding: 0 28px;
}
.wobble svg { display: block; width: 100%; height: 8px; }
.wobble path {
  fill: none;
  stroke: var(--line45);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- masthead ---------- */

.masthead {
  padding: 26px 28px 0;
  max-width: 620px;
  margin: 0 auto;
}
.wordmark {
  font-style: italic;
  font-size: 18px;
  color: var(--ink55);
}

/* ---------- hero ---------- */

.hero {
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 28px 0;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede {
  font-size: 19px;
  color: var(--ink72);
  max-width: 44ch;
  margin-bottom: 34px;
}
.cta-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink42);
}

/* ---------- the app, moving ---------- */

.phone-figure {
  margin: 64px auto 0;
  padding: 0 28px;
  max-width: 400px;
}
.phone-figure video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 812;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px var(--card-shadow);
}
.keep-figure { margin-top: 44px; }

.stray-questions {
  list-style: none;
  margin-top: 40px;
}
.stray-questions li {
  font-style: italic;
  color: var(--ink55);
  padding: 7px 0 7px 16px;
  text-indent: -16px;
  font-size: 16.5px;
}
.stray-questions li::before { content: "· "; color: var(--ink42); }

/* ---------- the shelf ---------- */

.shelf {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 56px 28px 28px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .shelf { padding-left: calc(50vw - 430px); padding-right: 60px; }
}

.book {
  flex: 0 0 auto;
  width: 172px;
  scroll-snap-align: center;
  perspective: 900px;
}
.book img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px 7px 7px 3px;
  transform: rotateY(9deg);
  box-shadow:
    -5px 0 0 -1px rgba(0,0,0,0.12) inset,
    14px 22px 34px -16px var(--card-shadow);
  transition: transform 300ms ease;
}
.book:hover img { transform: rotateY(2deg); }
.book figcaption {
  margin-top: 16px;
  line-height: 1.45;
}
.book figcaption strong {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 3px;
}
.book figcaption span {
  font-size: 13.5px;
  color: var(--ink55);
}

/* ---------- quiet list ---------- */

.quiet-list p { max-width: 46ch; }

/* ---------- waitlist ---------- */

.waitlist { padding-bottom: 20px; }

#waitlist-form {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 460px;
}
#waitlist-form input[type="email"] {
  flex: 1 1 220px;
  font-family: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line45);
  padding: 10px 2px;
  border-radius: 0;
  outline: none;
}
#waitlist-form input[type="email"]:focus { border-bottom-color: var(--line); }
#waitlist-form input::placeholder { color: var(--ink42); font-style: italic; }
.trap { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-note {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink55);
  font-style: italic;
  min-height: 1.5em;
}
.privacy-aside {
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink55);
  max-width: 44ch;
}

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

footer {
  max-width: 620px;
  margin: 0 auto;
  padding: 90px 28px 56px;
  font-size: 14px;
  color: var(--ink55);
}
.foot-quiet {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink42);
  font-style: italic;
}

/* ---------- reveal ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.will-reveal.in { opacity: 1; transform: none; }
