html {
  background: var(--surface);
  scroll-behavior: smooth;
}

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

#work {
  scroll-margin-top: calc(var(--nav-h) * 0.5);
}

body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- The homepage type scale (variables.css) — use only these ---------- */
.t-display-xl,
.t-display-l,
.t-serif-m {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
}

.t-display-xl {
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.t-display-l {
  font-size: var(--fs-display-l);
  line-height: 1.05;
  letter-spacing: var(--ls-display);
}

.t-serif-m {
  font-size: var(--fs-serif-m);
  line-height: var(--lh-serif);
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
}

.t-label {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- THE logo: the only way the name appears (corner: hero.css, footer: footer.css) ---------- */
.logo {
  display: block;
  font-family: var(--font-logo);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.logo__line {
  display: block;
}

/* ---------- Motion (js/modules/motion.js) ---------- */
/* a hairline that can draw itself in (data-reveal="rule") */
.rule {
  display: block;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
}

/* SplitText's line masks (it names them <linesClass>-mask): a little taller than the line, so
   descenders and italic overhangs are not clipped; the negative margin keeps the layout */
.reveal-line-mask {
  padding: 0 0.06em 0.1em 0;
  margin: 0 -0.06em -0.1em 0;
}

/* italic inside a sentence: the emphasis */
.t-display-xl em,
.t-display-l em,
.t-serif-m em {
  font-style: italic;
}

body.is-locked {
  overflow: hidden;
  height: 100%;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

h1, h2, h3, h4 {
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  font-weight: 500;
}

p {
  line-height: var(--lh-body);
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-mobile), 1fr);
  column-gap: var(--gutter);
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(var(--cols-tablet), 1fr);
  }
}

@media (min-width: 1080px) {
  .grid {
    grid-template-columns: repeat(var(--cols-desktop), 1fr);
  }
}

.section {
  position: relative;
  padding-block: var(--space-2xl);
}

@media (max-width: 700px) {
  .section {
    padding-block: var(--space-xl);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-burgundy);
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 0.85em;
  height: 1px;
  background: currentColor;
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--edge);
  z-index: 1000;
  background: var(--color-black);
  color: var(--color-off-white);
  padding: 0.75em 1.25em;
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--edge);
}

::selection {
  background: var(--color-burgundy);
  color: var(--color-off-white);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 1.5px solid var(--color-burgundy);
  outline-offset: 4px;
}
