@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

/* Inline <svg> icons default to inline-block with font-metric baseline
   spacing, which causes a few pixels of vertical drift wherever an icon
   sits next to text/inputs in a flex row (search boxes, buttons, badges).
   Forcing block display lets the parent's align-items handle centering. */
svg {
  display: block;
}

/* Defensive fallback: any icon using our standard 24x24 viewBox gets a
   sane default size even if a more specific rule fails to match for some
   reason. Specific per-context rules (nav icons, search icons, buttons)
   all load after this and take precedence via normal cascade order. */
svg[viewBox="0 0 24 24"] {
  width: 1em;
  height: 1em;
}

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

::selection {
  background: var(--brass-soft);
  color: var(--brass-ink);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
