/* memorylane.pixeldesk.net — tokens from the latest design handoff
   (docs/design/2026-06-13-design_handoff_select_and_share §3, shared with D2).
   Light values are the handoff's; the dark variant is derived (the handoff
   defines none) so links opened from the app in dark mode don't flash white. */
:root {
  --accent: #007aff;              /* app value of the system-blue accent */
  --accent-soft: rgba(0, 122, 255, 0.12);
  --text: #111;
  --text-body: #1d1d22;
  --muted: #6b7280;
  --muted-2: #8a8f98;
  --hairline: #ececf0;
  --hairline-2: #f0f0f2;
  --surface: #fff;
  --bg: #f4f5f7;
  --todo-bg: #fff4e0;             /* draft markers — pending orange #e8902a */
  --todo-fg: #8a4b00;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --text: #f2f2f5;
    --text-body: #e4e4ea;
    --muted: #9ca3af;
    --muted-2: #8a8f98;
    --hairline: #2a2a30;
    --hairline-2: #232328;
    --surface: #18181c;
    --bg: #0e0e11;
    --todo-bg: #3a2a10;
    --todo-fg: #ffcf8a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── top bar ───────────────────────────────────────────── */
.bar { padding: 18px 0 6px; }
.bar .wrap { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15.5px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

/* ── heading block (Share screen: eyebrow + title) ─────── */
.head { padding: 22px 0 4px; }
.eyebrow {
  margin: 0;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--muted-2);
}
.title { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: var(--text); }
.lede { margin: 10px 0 0; font-size: 16px; color: var(--muted); }

/* ── cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 18px 0 0;
  padding: 22px 20px;
}
.rows { padding: 0; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; }
.row + .row { border-top: 0.5px solid var(--hairline-2); }
.tile {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.row h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.row p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.button {
  display: block; text-align: center;
  background: var(--accent); color: #fff;
  border-radius: 14px; padding: 14px;
  font-size: 15.5px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.27);
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ── legal prose ───────────────────────────────────────── */
.prose { font-size: 15.5px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.2px;
  margin: 2rem 0 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline-2);
}
.prose h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 1.4rem 0 0.4rem; }
.prose p, .prose li { color: var(--text-body); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.3rem 0; }
.prose strong { font-weight: 600; color: var(--text); }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose .table { overflow-x: auto; margin: 1rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
mark.todo { background: var(--todo-bg); color: var(--todo-fg); border-radius: 4px; padding: 0 3px; }

/* ── footer ────────────────────────────────────────────── */
.foot { padding: 28px 0 44px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
