/* Reset, defaults, base typography. */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--surface-base);
  min-height: 100vh;
  overflow-x: hidden;

  /* Subtle paper texture — atmospheric, not loud. */
  background-image:
    radial-gradient(rgba(21, 49, 90, 0.012) 1px, transparent 1px),
    radial-gradient(rgba(200, 85, 46, 0.010) 1px, transparent 1px);
  background-size: 28px 28px, 64px 64px;
  background-position: 0 0, 14px 14px;
}

img, svg { display: block; max-width: 100%; }

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--brand-terra);
  color: var(--surface-base);
}

/* Focus — visible, branded, accessible. */
:focus-visible {
  outline: 2px solid var(--brand-terra);
  outline-offset: 3px;
  border-radius: 2px;
}
