/* Type is loaded from the Fontshare CDN in index.html (two separate <link>
   tags — a combined f[]=satoshi&f[]=general-sans request silently drops the
   second family, verified against the live endpoint). */

/* Bootstrap variable remap — utilities/offcanvas/toast inherit our system
   instead of Bootstrap's defaults, so we can use them without fighting them. */
:root {
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--fs-body);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-md);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-border-radius-pill: var(--radius-pill);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--ink-2);
  --bs-tertiary-bg: var(--surface-2);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}
html[data-bs-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}

/* Lime is a fill color only — it never sits as foreground text on paper or
   surface (≈1.2:1 contrast on white, unreadable). Anywhere --accent is used
   as a background, pair it with --accent-ink text. */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 0.98;
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 600;
  letter-spacing: var(--tracking-section);
}

.micro {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  color: var(--ink-3);
}

.mono {
  font-family: var(--font-mono);
}

.text-muted-2 { color: var(--ink-2); }
.text-muted-3 { color: var(--ink-3); }
.text-fade { color: var(--ink-4); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-track {
  background: transparent;
}
