/* assets/css/base.css — resets, typography, layout primitives */

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 var(--space-3) 0; font-weight: 700; line-height: 1.25; }
h1 { font-size: var(--text-h1); line-height: var(--line-h1); }
h2 { font-size: var(--text-h2); line-height: var(--line-h2); }
h3 { font-size: var(--text-h3); line-height: var(--line-h3); }
p { margin: 0 0 var(--space-4) 0; }
small, .text-small { font-size: var(--text-small); line-height: var(--line-small); color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

#main-content { min-height: 60vh; }

.error-page {
  max-width: 560px;
  margin: var(--space-8) auto;
  text-align: center;
  padding: 0 var(--space-4);
}
.error-page__actions { display: flex; gap: var(--space-3); justify-content: center; margin: var(--space-5) 0; flex-wrap: wrap; }

@media (max-width: 768px) {
  .container { padding: 0 var(--space-3); }
}
