@layer reset {
/*
@elements/ui: reset (inside @layer reset)

Minimal, opinionated. Kill browser-default margins, normalize box-sizing,
make media block-level. The defining principle: this layer can't fight
the components layer because it's earlier in the cascade order.
*/

*, ::before, ::after {
  box-sizing:   border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

* {
  margin:  0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button, [role="button"],
input[type="submit"], input[type="reset"], input[type="button"] {
  cursor: pointer;
}
button:disabled, [role="button"][aria-disabled="true"],
input[type="submit"]:disabled, input[type="reset"]:disabled, input[type="button"]:disabled {
  cursor: not-allowed;
}
button,
input[type="submit"], input[type="reset"], input[type="button"] {
  background: transparent;
  background-image: none;
}

ol, ul, menu {
  list-style: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  text-indent: 0;
  border-color: inherit;
}

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

input, textarea, select {
  background-color: transparent;
}

[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  outline-offset: -2px;
}
::-webkit-search-decoration { -webkit-appearance: none; }

/* The clear button of a search field: an x masked out of the theme's dim
   ink, darkening to the ink on hover, in place of the browser's own glyph. */
::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance:         none;
  flex:               none;
  width:              0.875em;
  height:             0.875em;
  margin-inline-start: var(--space-1);
  background-color:   var(--ink-dim);
  -webkit-mask:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:               url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor:             pointer;
}
::-webkit-search-cancel-button:hover { background-color: var(--ink); }

/* Forced colors replace backgrounds, which would erase a masked icon. */
@media (forced-colors: active) {
  ::-webkit-search-cancel-button {
    forced-color-adjust: none;
    background-color:    ButtonText;
  }
}
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }

textarea { resize: vertical; }

::placeholder {
  opacity: 1;
}

/* until-found content stays in the layout so find in page and text
   fragments can match it; the browser hides it with content-visibility. */
[hidden]:not([hidden="until-found"]) { display: none !important; }

:focus { outline: none; }

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

code, kbd, samp, pre {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.95em;
}

sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top:    -0.5em; }

fieldset { min-width: 0; }
legend   { padding: 0; }

}
