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

html {
  scroll-behavior: smooth;
}

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

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

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--on-dark);
  padding: 8px 12px;
  z-index: 70;
}

.skip:focus {
  left: 8px;
}

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

.section {
  padding-block: var(--section);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.section__title span {
  color: var(--accent);
}

.section__lead {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background-color var(--hover),
    color var(--hover),
    border-color var(--hover),
    transform 160ms var(--ease-out);
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ink {
  background: var(--graphite);
  color: #fff;
  text-align: left;
  white-space: normal;
  line-height: 1.2;
}

.btn--ink:hover {
  background: #4d4d4d;
  color: #fff;
}

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

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

.btn--ghost-light {
  border: 1px solid rgb(255 255 255 / 0.35);
  color: var(--on-dark);
}

.btn--ghost-light:hover {
  background: rgb(255 255 255 / 0.08);
}

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

.btn--light:hover {
  background: var(--cream);
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

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

  .btn:active,
  .choice button:active,
  .menu-btn:active {
    transform: none;
  }

  .mega,
  .drawer,
  .header,
  .object img,
  .hero-tile img,
  .hero__copy,
  .form__ok,
  .field--reveal,
  .js-reveal .reveal,
  .marquee__track {
    animation: none !important;
    transform: none !important;
  }

  .marquee__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 24px;
  }

  .marquee__item {
    border-right: 0;
    padding-right: 0;
  }

  .mega,
  .drawer,
  .header,
  .object img,
  .hero-tile img,
  .form__ok,
  .field--reveal,
  .js-reveal .reveal {
    transition:
      color var(--hover),
      background-color var(--hover),
      border-color var(--hover) !important;
  }
}
