@import url("./variables.css");

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(14, 183, 166, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(23, 105, 255, 0.08), transparent 30%),
    var(--color-bg);
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
}

h4 {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.35rem);
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.95rem;
}

p {
  margin: 0 0 var(--space-md);
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  color: var(--color-text-soft);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(23, 105, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  body {
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  p {
    margin-bottom: 0.9rem;
  }

  input,
  textarea {
    padding: 0.9rem 0.95rem;
  }

  textarea {
    min-height: 120px;
  }
}