/* Reset. The original loaded the whole Tailwind Play CDN only for its base reset (it uses no utility
   classes), so this file keeps just the reset rules that change something on this page.
   v2 adds the four rules Lenis needs (from its lenis.css) at the end. */

*,
::before,
::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

html {
  line-height: 1.5;
  tab-size: 4;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* While a dialog is open the page stops scrolling. The lock goes on <html>, not <body>: Lenis also
   clips <html> while paused, and a clipped <html> would turn an overflow on <body> into a second
   scroll box, which un-sticks every sticky frame behind the dialog. */
html:has(body.modal-open) {
  overflow: hidden;
}

::selection {
  background: var(--shu);
  color: var(--paper);
}

h1,
h2,
h3,
p,
blockquote,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

small {
  font-size: 80%;
}

b,
strong {
  font-weight: bolder;
}

button,
input {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  text-transform: none;
  -webkit-appearance: button;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: wait;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 6px;
}

img,
svg,
canvas {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button svg,
a svg {
  flex-shrink: 0;
}

input::placeholder {
  opacity: 1;
  color: var(--muted);
}

[hidden] {
  display: none;
}

dialog {
  padding: 0;
}

/* Lenis (js/core/smooth-scroll.js) */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}
