*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  text-transform: none;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
}

h3,
h4 {
  font-weight: 600;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.2;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.eyebrow {
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.lead {
  font-size: 20px;
  line-height: 1.5;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-muted);
}

.link-underline {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  background-image: linear-gradient(var(--color-text), var(--color-text));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

.link-underline:hover,
.link-underline:focus-visible {
  background-size: 100% 1px;
}

.link-accent {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-accent);
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

.link-accent:hover,
.link-accent:focus-visible {
  background-size: 100% 1px;
}

.paper-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-paper);
  padding: clamp(3rem, 8vw, 8rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
