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

  html {
    min-height: 100%;
    background: var(--canvas);
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    min-height: var(--viewport-block);
    overflow-x: hidden;
    color: var(--text-primary);
    background:
      radial-gradient(circle at 82% 0%, rgba(255,255,255,.90), transparent 34rem),
      linear-gradient(145deg, var(--canvas), #f8f8f6 55%, var(--canvas-deep));
    background-attachment: fixed;
    font-size: var(--font-body);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body::before,
  body::after { display: none; }

  #app { min-height: inherit; }

  [hidden] { display: none !important; }
  button, input, textarea, select { font: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; }
  a { color: inherit; text-decoration: none; }
  img, video, audio, iframe, svg { max-width: 100%; }
  p { text-wrap: pretty; }
  small, .help { font-size: var(--font-caption); }
  :where(p, li, dd, dt, blockquote, code, pre, .help) { overflow-wrap: anywhere; }
  :where(pre, code) { max-inline-size: 100%; }

  :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
  }

  summary {
    cursor: pointer;
    list-style: none;
  }
  summary::-webkit-details-marker { display: none; }
  details:not([open]) > :not(summary) { display: none !important; }

  ::selection { color: var(--text-primary); background: rgba(149,105,43,.20); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: rgba(42,52,48,.17); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
  ::-webkit-scrollbar-track { background: transparent; }

  @media (max-width: 900px) {
    body { background-attachment: scroll; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}
