body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

section,
.footer {
  scroll-margin-top: 84px;
}

.shell {
  width: 100%;
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

main {
  position: relative;
}

.wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

main > :not(.wash):not(.modal) {
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 50;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
  padding: 12px var(--gutter);
  background: transparent;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo__mark {
  height: 58px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(2) { transform: none; }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.section {
  padding: var(--space-section) var(--gutter);
}

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