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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-focus, currentColor);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--color-accent, #00ff37); color: var(--color-accent-ink, #0b0d10); }
/* Light mode: match the heading green instead of the warm-sand accent. */
:root[data-theme="light"] ::selection { background: #00ff37; }

dialog { padding: 0; border: 0; background: transparent; color: inherit; }
dialog::backdrop { background: var(--color-scrim); backdrop-filter: blur(8px); }
