/* Element defaults (layer "base", below the old sheets: they can still override these). */
@layer base {
  html {
    -webkit-text-size-adjust: 100%;
  }

  /* The hidden attribute always hides, whatever display a class sets. (!important in
     the first layer beats every later layer's rules, !important ones included.) */
  [hidden] {
    display: none !important;
  }

  body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    accent-color: var(--color-accent);
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
  }

  .content :is(h1, h2, h3, h4) {
    color: var(--color-heading);
  }

  a {
    color: var(--color-link);
  }

  :focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }

  ::selection {
    background: var(--gold-100);
    color: var(--ink-900);
  }
}
