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

:root {
  --color-primary:        #0c57a6;
  --color-primary-dark:   #094280;
  --color-primary-light:  #e6eef8;
  --color-accent:         #202938;
  --color-bg:             #FAFAFA;
  --color-dark:           #202938;
  --color-mid:            #4a5568;
  --color-light:          #f0f4f8;
  --color-white:          #ffffff;
  --color-border:         #dde3ea;

  --font-headline: 'DM Serif Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);

  --ease: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--ease);
}

ul, ol { list-style: none; }

button { font-family: var(--font-body); cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw,   3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; }

p {
  color: var(--color-mid);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
}

section[id] {
  scroll-margin-top: 106px;
}
