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

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-feature-settings: var(--font-features-default);
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

body.is-menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  font-feature-settings: inherit;
  letter-spacing: inherit;
}

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

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

a,
button {
  touch-action: manipulation;
}

p,
h1,
h2,
h3,
dl,
dd,
figure {
  margin: 0;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.visually-hidden,
.skip-link:not(:focus) {
  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 {
  top: 12px;
  left: 12px;
  z-index: 50;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.site-main,
.site-footer {
  padding-inline: var(--page-padding);
}

.site-main {
  flex: 1 0 auto;
}

.site-shell {
  width: min(100%, var(--shell-width));
  margin-inline: auto;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-stack);
}

.section-title {
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.editorial-copy {
  max-width: var(--copy-width);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--text-body-line);
  letter-spacing: var(--tracking-tight);
}

.section-title,
.site-header__intro,
.project-card__title,
.editorial-copy {
  text-wrap: balance;
}

@supports (text-wrap: pretty) {
  .section-title,
  .project-card__title,
  .editorial-copy {
    text-wrap: pretty;
  }
}

.editorial-copy p + p {
  margin-top: 18px;
}
