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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  cursor: pointer;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-120%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform 100ms ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--accent);
  }

  .btn--ghost:hover {
    border-color: var(--ink);
  }
}

.btn--on-dark {
  background: var(--cream);
  color: var(--ink);
}

.btn--on-dark-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgb(243 242 239 / 0.4);
}

@media (hover: hover) and (pointer: fine) {
  .btn--on-dark:hover {
    background: #fff;
  }

  .btn--on-dark-ghost:hover {
    border-color: var(--cream);
  }
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

.more svg {
  width: 14px;
  height: 14px;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.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;
}
