/* ======================================================================
   SwordControl Studio — Reset
   ====================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

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

body {
  font-family: var(--sc-font-ui);
  font-size: var(--sc-fs-md);
  font-weight: var(--sc-fw-regular);
  line-height: var(--sc-lh-normal);
  color: var(--sc-text);
  background: var(--sc-bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--sc-fw-medium);
  line-height: var(--sc-lh-tight);
}

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

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

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

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

input, textarea, select {
  background: none;
  border: 0;
  outline: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--sc-border-subtle);
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--sc-dark-green-tea);
  outline-offset: 2px;
}

::selection {
  background: var(--sc-green-bg);
  color: var(--sc-text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sc-bg-0); }
::-webkit-scrollbar-thumb { background: var(--sc-border); border-radius: var(--sc-radius); }
::-webkit-scrollbar-thumb:hover { background: var(--sc-border-strong); }