/* ==========================================================================
   Global resets and element defaults. Element selectors only — no classes.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-page);
  background-image: url('/assets/images/bg-pattern.png');
  background-repeat: repeat;
  background-size: var(--bg-pattern-size) var(--bg-pattern-size);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--font-body);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h3 {
  font-weight: 600;
  font-size: var(--font-size-md);
  margin-bottom: var(--space-3xs);
  color: var(--color-text-primary);
}

p {
  line-height: var(--line-height-base);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
