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

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

body {
  font-family: var(--font-body);
  font-size: var(--size-1);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  transition: background 0.4s ease, color 0.4s ease;
}

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

h1 { font-size: var(--size-7); }
h2 { font-size: var(--size-5); }
h3 { font-size: var(--size-4); }
h4 { font-size: var(--size-3); }

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

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

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

::selection {
  background: var(--color-accent);
  color: var(--color-paper);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-7) 0;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.section__label {
  font-family: var(--font-label);
  font-size: var(--size-0);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section__title {
  margin-bottom: var(--space-3);
}

.section__sub {
  font-size: var(--size-2);
  color: var(--color-ink-2);
  line-height: 1.6;
}

@media (max-width: 768px) {
  h1 { font-size: var(--size-5); }
  h2 { font-size: var(--size-4); }
  h3 { font-size: var(--size-3); }

  .section {
    padding: var(--space-5) 0;
  }
}
