/* ── Reset & Global Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-display);   /* Syne as default UI font */
  font-size: 0.9375rem;
  line-height: 1.55;
  min-height: 100vh;
}

/* Headings always Syne */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
}

/* Body copy / long-form text uses Lora */
p { font-family: var(--font-body); margin: 0; }

/* Monospace elements */
code, pre, kbd, .mono { font-family: var(--font-mono); }

ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

button {
  font-family: var(--font-display);
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  line-height: inherit;
}

input, select, textarea {
  font-family: var(--font-display);
  font-size: inherit;
  outline: none;
  color: var(--text-primary);
}

/* Global focus ring — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Input/select focus */
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* Placeholder */
::placeholder { color: var(--text-muted); opacity: 1; }
