/* ============================================================
   MetaDesk — Base Styles
   Reset, body, typography foundations.
   ============================================================ */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.875rem;   /* 14px */
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === LINKS === */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-text); }

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: 1.375rem; }  /* 22px — page title */
h2 { font-size: 1rem; }      /* 16px — section heading */
h3 { font-size: 0.875rem; }  /* 14px */

/* === PARAGRAPHS === */
p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-primary);
}

/* === MONOSPACE ELEMENTS === */
.mono, code, .number {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

/* === UTILITY TEXT COLORS === */
.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary  { color: var(--color-text-tertiary); }
.text-accent    { color: var(--color-accent); }
.text-success   { color: var(--color-success); }
.text-warning   { color: var(--color-warning); }
.text-danger    { color: var(--color-danger); }

/* === UTILITY FONT SIZES === */
.text-xs  { font-size: 0.75rem; }   /* 12px */
.text-sm  { font-size: 0.875rem; }  /* 14px */
.text-md  { font-size: 1rem; }      /* 16px */
.text-lg  { font-size: 1.125rem; }  /* 18px */

/* === DIVIDER === */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* === IMAGES === */
img { max-width: 100%; display: block; }

/* === LISTS === */
ul, ol { list-style: none; }

/* === SCROLLBAR — subtle === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === SELECTION === */
::selection {
  background: var(--color-accent-light);
  color: var(--color-accent-text);
}

/* === SCREEN READER ONLY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
