*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
body {
  margin: 0;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: 1.6;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-strong);
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
p, ul, ol, dl, figure, table { margin: 0; }
p, li { max-width: var(--measure); }
b, strong { font-weight: var(--weight-strong); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: var(--rule-bold);
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 0.2em; }
}
:focus-visible {
  outline: var(--rule-bold) solid var(--color-focus);
  outline-offset: 3px;
}
::selection { background: var(--color-ink); color: var(--color-paper); }

.site-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.mark { width: 1.75rem; height: 1.25rem; flex: none; }
.site-head__link { white-space: nowrap; font-size: var(--text-sm); }

.site-foot {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg) var(--space-xl);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.site-foot p { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
}
