/* ==========================================================================
   Base
   Reset, typography, links, selection, focus ring, page wrapper, scroll progress bar and reveal animation.
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font:
    400 1.05rem/1.65 Figtree,
    system-ui,
    sans-serif;
  transition:
    background 0.4s,
    color 0.4s;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: Outfit, Figtree, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}
h3 {
  font-size: 1.5rem;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--lime);
  color: #10130a;
}
:focus-visible {
  outline: 3px solid var(--a);
  outline-offset: 3px;
  border-radius: 10px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 72px 0;
}
.s0 {
  padding-top: 0;
}
.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 36em;
  margin-top: 16px;
}
.pg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lime);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 60;
}
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

/* The reset above removes the browser's automatic centring of <dialog>; restore it. */
dialog {
  margin: auto;
}
