/* rn — one stylesheet for the site.
   Same palette and voice as the app: warm canvas, serif headings, ember accent.
   No web fonts, no CDN, no trackers — the site should keep the app's promises. */

:root {
  color-scheme: light dark;
  --canvas: #f8f5f0;
  --ink: #211f1c;
  --ink-soft: #6b6560;
  --ink-faint: #9b948d;
  --warmth: #c9762f;
  --warmth-bright: #e08540;
  --hairline: #e6e0d8;
  --surface: #fffdfa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121010;
    --ink: #f2efeb;
    --ink-soft: #a9a29b;
    --ink-faint: #7d766f;
    --warmth: #e08540;
    --warmth-bright: #f0954a;
    --hairline: #2b2725;
    --surface: #1b1817;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 36rem; }

/* ---- type ---------------------------------------------------------- */

h1 {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h3 { font-size: 1.1rem; font-weight: 400; margin: 0 0 0.4rem; }

p { margin: 0 0 1.1rem; }

.lede {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.soft { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

a { color: var(--warmth); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--warmth-bright); }

/* ---- layout -------------------------------------------------------- */

header.hero { padding: 14vh 0 2rem; }

.wordmark {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  margin: 0 0 3.5rem;
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
}

section { padding: 3.5rem 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: none; }

.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warmth);
  margin: 0 0 0.9rem;
}

/* ---- the cards ----------------------------------------------------- */

/* Phone width, at every viewport. On a desktop the cards used to stretch to
   the full 44rem column, which made them wide, short letterboxes — nothing
   like the app, and the photo cropped to a strip. Constraining the column and
   pinning the aspect ratio means these are the app's proportions whatever
   you're reading on. */
.cards {
  display: grid;
  gap: 14px;
  margin: 2.5rem auto;
  max-width: 390px;          /* an iPhone, near enough */
}

.card {
  position: relative;
  border-radius: 22px;
  padding: 18px 20px;
  /* The real small card is 360×160pt. */
  aspect-ratio: 360 / 160;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.13);
  color: #fff;
}

/* Stand-ins for the photo a real card carries. */
.card.dusk { background: linear-gradient(160deg, #57406b 0%, #c4664f 55%, #f0bd77 100%); }
.card.morning { background: linear-gradient(160deg, #3d5a6c 0%, #7f9bab 50%, #e8cba6 100%); }
.card.night { background: linear-gradient(160deg, #1b2436 0%, #3b4b6b 60%, #7d6a86 100%); }

.card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.card > * { position: relative; z-index: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 11px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.card .name {
  font-size: 1.3rem;
  align-self: flex-start;
  margin-bottom: 6px;
}

.card .place { font-size: 1rem; align-self: flex-start; }

.dots { display: inline-flex; gap: 3px; margin-left: 5px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: inline-block;
}
.dots i.on { background: rgba(255, 255, 255, 0.9); }

.card .corner {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 0.82rem;
  opacity: 0.92;
  z-index: 1;
}

.caption {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: -0.4rem 0 0;
  font-style: italic;
}

/* ---- lists --------------------------------------------------------- */

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin-bottom: 1.5rem; }
ul.plain li:last-child { margin-bottom: 0; }
ul.plain strong { font-weight: 400; display: block; margin-bottom: 0.2rem; }
ul.plain span { color: var(--ink-soft); }

/* ---- buttons ------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--warmth-bright);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 15px;
  font-size: 1.02rem;
  box-shadow: 0 6px 18px rgba(224, 133, 64, 0.28);
}
.btn:hover { color: #fff; background: var(--warmth); }

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

footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0 4rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
footer a { color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1rem; }

/* ---- legal pages --------------------------------------------------- */

.doc { padding: 8vh 0 2rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.doc h2:first-of-type { margin-top: 1.5rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.6rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { color: var(--ink-soft); font-weight: 400; }

/* ── Filled-out demo cards ──────────────────────────────────────────────
   The hero cards used to be three gradients with a name on them, which
   undersold the product: the whole pitch is that a card carries a lot
   without anyone writing anything. These carry weather, motion and the
   quiet artifacts.

   NO PHOTOGRAPHS OF REAL PEOPLE. The app's sample photos are of actual
   identifiable people; this page is public and indexed, so the "photo"
   here is a CSS scene instead. Swap in a real image only with the
   consent of whoever is in it. */

/* A suggestion of a photo — a path through trees at low sun. Abstract on
   purpose: it should read as "there's a picture here", not as a stock
   photo pretending to be someone's life. */
.card.photo {
  /* A real photograph now, not a CSS impression. Used with Charlie's say-so —
     it's his own sample asset. Anyone swapping this MUST have the consent of
     whoever is in the frame: the page is public and indexed, which is a
     different thing entirely from a sample inside the app. */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.30)),
    url('/img/card-photo.jpg');
  background-size: cover;
  background-position: 50% 32%;
}

/* The place pill and the artifacts share a line, as they do in the app. */
.baseline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
/* One line, like the app. With a glyph, the text, the distance dots and the
   artifacts all sharing a row, wrapping is what happens by default — and a
   two-line place pill is the clearest possible tell that this mock wasn't
   built from the real thing. */
.baseline .place {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.86rem;
  /* Nowrap text can't compress, so without this the pill spills UNDER the
     artifacts and the distance dots end up behind the book glyph. */
  overflow: hidden;
}
.baseline .place > :not(.glyph):not(.dots) { overflow: hidden; text-overflow: ellipsis; }

/* The glyph that sits INSIDE the place pill, on its left — a house for home,
   a walking figure in transit, a pin for somewhere unnamed. It was missing
   entirely, which made the pill read as a caption rather than as the app's. */
.pill .glyph {
  width: 15px; height: 15px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Artifact glyphs, bottom right — the book on the nightstand, the song on
   repeat. Mirrors the real card. */
.artifacts {
  display: flex; gap: 12px;
  margin-left: auto;          /* pushed to the right of the place pill */
  flex: 0 0 auto;
  z-index: 2;
}
.artifacts svg { width: 18px; height: 18px; fill: none;
                 stroke: rgba(255,255,255,0.92); stroke-width: 1.75;
                 stroke-linecap: round; stroke-linejoin: round;
                 filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)); }
/* The warm "new in the last day" dot the app uses. */
.artifacts .fresh { position: relative; }
.artifacts .fresh::after {
  content: ''; position: absolute; top: -2px; right: -3px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #e8873d;
}

/* Walking glyph: the legs actually swing, because a still figure reads as
   an icon and a moving one reads as "right now". */
.walker .glyph, .walker svg { width: 17px; height: 17px; }
.walker .leg { transform-origin: 12px 14px; animation: step 1.1s ease-in-out infinite; }
.walker .leg2 { animation-delay: -0.55s; }
@keyframes step {
  0%, 100% { transform: rotate(16deg); }
  50%      { transform: rotate(-16deg); }
}

/* Snow, drifting over the card it belongs to. Two layers at different
   speeds so it has depth; small and slow so it stays weather rather than
   decoration. */
.snow {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden; border-radius: inherit;
}
.snow i {
  position: absolute; top: -12px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  animation: fall linear infinite;
}
.snow i:nth-child(odd) { width: 3px; height: 3px; background: rgba(255,255,255,0.65); }
@keyframes fall {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(200px) translateX(14px); opacity: 0; }
}

/* Anyone who's asked not to see motion gets a still card. */
@media (prefers-reduced-motion: reduce) {
  .snow i, .walker .leg { animation: none; }
  .snow i { opacity: 0.8; }
}
