@layer base {
  html { scroll-padding-block-start: calc(var(--header-h) + var(--space-sm)); }
  body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-0);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
  }
  main { flex: 1; }

  h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  h1 { font-size: var(--fs-4); }
  h2 { font-size: var(--fs-2); }
  h3 { font-size: var(--fs-1); }
  p { text-wrap: pretty; max-inline-size: 70ch; }

  a { color: var(--color-accent); text-underline-offset: .15em; }
  a:hover { text-decoration-thickness: 2px; }

  ::selection { background: var(--color-accent); color: var(--color-accent-contrast); }
}
