/* Same tokens as theme/tokens.ts's DEFAULT_PALETTE / DARK_PALETTE in the
   RN app — this site is meant to read as the same brand, not a
   lookalike, so it borrows the app's real color system rather than
   inventing a new one. */
:root {
  --paper: #ffffff;
  --wall: #dedede;
  --edge: #bdbdbd;
  --ink: #000000;
  --muted: #5f5f5f;
  --deep-brass: #303030;
  --notebook: #f2f2f2;
  --rose: #c0293c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --wall: #212121;
    --edge: #424242;
    --ink: #ffffff;
    --muted: #a0a0a0;
    --deep-brass: #bfbfbf;
    --notebook: #0d0d0d;
    --rose: #ff6b6b;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --wall: #212121; --edge: #424242; --ink: #ffffff;
  --muted: #a0a0a0; --deep-brass: #bfbfbf; --notebook: #0d0d0d; --rose: #ff6b6b;
}
:root[data-theme="light"] {
  --paper: #ffffff; --wall: #dedede; --edge: #bdbdbd; --ink: #000000;
  --muted: #5f5f5f; --deep-brass: #303030; --notebook: #f2f2f2; --rose: #c0293c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Ranade', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Fraunces';
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--deep-brass); font-weight: 400; }

nav.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
nav.top a.back {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 7px 14px;
}
nav.top a.back:hover { color: var(--ink); border-color: var(--muted); }

.eyebrow {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
h1 {
  font-family: 'Fraunces';
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 8px;
  color: var(--ink);
}
p.lede { color: var(--muted); font-size: 15px; max-width: 60ch; margin: 0 0 44px; }

section.topic { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--wall); }
section.topic:last-of-type { border-bottom: none; }
h2 {
  font-family: 'Ranade';
  font-weight: 500;
  font-size: 15px;
  color: var(--deep-brass);
  margin: 0 0 8px;
}
section.topic p { font-size: 15px; color: var(--ink); margin: 0; max-width: 62ch; }
section.topic a, .lede a, footer a { color: var(--deep-brass); }

.card-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.card-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--notebook);
  font-size: 14.5px;
}
.card-links a:hover { border-color: var(--deep-brass); }
.card-links a .arrow { color: var(--muted); font-family: 'IBM Plex Mono'; font-size: 13px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 8px; }
.contact-row div { font-size: 14px; }
.contact-row span.label {
  display: block;
  font-family: 'IBM Plex Mono';
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--wall);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  color: var(--muted);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
