/* base.css — reset + element defaults */

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

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

body {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.2;
  /* No browser-inserted soft hyphens anywhere on the page — compound
     words are protected explicitly with &#8209; (non-breaking hyphen)
     where needed instead. */
  hyphens: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw + 1.25rem, 4.0625rem); line-height: 1.1; }
h2 { font-size: clamp(1.875rem, 2.5vw + 1.25rem, 2.8125rem); }
h3 { font-size: clamp(1.4375rem, 1.25vw + 1.125rem, 1.75rem); }

p {
  font-size: clamp(1.1rem, 0.44vw + 0.99rem, 1.21rem);
  text-wrap: pretty;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
}

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