/* ============================================================
   RESET — minimal, opinionated
   ============================================================ */

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

/* A background is PAINTED to the border box by default, but SIZED to
   the padding box. So a gradient stops at the padding edge and the
   strip under a 1px border shows the tile repeating — the far end of
   the gradient, wrapped around. Under a semi-transparent stroke that
   reads as a dark hairline, whatever colour the stroke is.
   Figma has no such split: an inside stroke sits on top of a fill
   that spans the whole shape. border-box origin is that model. */
*, *::before, *::after { background-origin: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* `hidden` must beat component display rules. Without this, any
   component that sets display:flex silently ignores the attribute. */
[hidden] { display: none !important; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Longhands, not the `background` shorthand: the shorthand resets
   background-origin to padding-box and would undo the rule above on
   every button in the system. */
button {
  background-color: transparent;
  background-image: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol { list-style: none; padding: 0; }

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

/* Keyboard focus only — never a ring on mouse click. */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
