/* ==========================================================================
   Base — reset, type, grid
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

::selection {
  background: var(--teal-pale);
  color: var(--ink);
}

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

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Layout ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* 12-column editorial grid: label on the left, content on the right */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.section-label {
  grid-column: 1 / 4;
  padding-top: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.6rem;
  vertical-align: 0.1em;
  background: var(--teal);
}

.col-main {
  grid-column: 4 / 13;
}

/* Type -------------------------------------------------------------------- */

.heading {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.statement {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Accessibility ----------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Reveal ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0s),
    transform 0.8s var(--ease) var(--d, 0s);
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Responsive grid --------------------------------------------------------- */

@media (max-width: 900px) {
  .section-label,
  .col-main {
    grid-column: 1 / -1;
  }

  .section-label {
    padding-top: 0;
    margin-bottom: 1.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}
