/**
 * MyronCMS — Base Reset & Body Defaults
 * Bound exclusively to --myron-* CSS variables from tokens.css.
 * No hard-coded color, spacing, or typography values.
 */

/* ================================================================
   Box model
   ================================================================ */

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


/* ================================================================
   Root & body
   ================================================================ */

html {
  font-size: var(--myron-typography-size-md);
  line-height: var(--myron-typography-line-normal);
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  margin: 0;
  background-color: var(--myron-color-bg);
  color: var(--myron-color-text);
  font-family: var(--myron-font-role-body-family, var(--myron-typography-font-sans));
  font-size: var(--myron-font-role-body-size, var(--myron-typography-size-md));
  font-weight: var(--myron-font-role-body-weight, var(--myron-typography-weight-regular));
  font-style: var(--myron-font-role-body-style, normal);
  line-height: var(--myron-typography-line-normal);
  letter-spacing: var(--myron-typography-tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
   Typography baseline
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--myron-font-role-headlines-family, var(--myron-typography-font-sans));
  font-weight: var(--myron-font-role-headlines-weight, var(--myron-typography-weight-bold));
  font-style: var(--myron-font-role-headlines-style, normal);
  line-height: var(--myron-typography-line-tight);
  color: var(--myron-color-text);
}

p {
  margin: 0;
  font-family: var(--myron-font-role-body-family, var(--myron-typography-font-sans));
  font-size: var(--myron-font-role-body-size, var(--myron-typography-size-md));
  font-weight: var(--myron-font-role-body-weight, var(--myron-typography-weight-regular));
  font-style: var(--myron-font-role-body-style, normal);
  line-height: 1.6;
}

a {
  color: var(--myron-color-link);
  text-decoration: underline;
}

a:hover {
  color: var(--myron-color-link-hover);
}

code,
kbd,
samp,
pre {
  font-family: var(--myron-typography-font-mono);
  font-size: var(--myron-typography-size-sm);
}

small {
  font-family: var(--myron-font-role-micro-family, var(--myron-typography-font-sans));
  font-size: var(--myron-font-role-micro-size, var(--myron-typography-size-sm));
  font-style: var(--myron-font-role-micro-style, normal);
  font-weight: var(--myron-font-role-micro-weight, var(--myron-typography-weight-medium));
}

strong, b {
  font-weight: var(--myron-typography-weight-bold);
}

em, i {
  font-style: italic;
}


/* ================================================================
   Media
   ================================================================ */

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


/* ================================================================
   Forms baseline
   ================================================================ */

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

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

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

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}


/* ================================================================
   Focus — global default (components override per their spec)
   ================================================================ */

:focus-visible {
  outline: var(--myron-focus-ring-width) var(--myron-focus-outline-style) var(--myron-color-focus);
  outline-offset: var(--myron-focus-ring-offset);
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ================================================================
   Lists baseline
   ================================================================ */

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


/* ================================================================
   Table baseline
   ================================================================ */

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ================================================================
   HR
   ================================================================ */

hr {
  border: none;
  border-top: var(--myron-border-hairline) solid var(--myron-color-border);
  margin: 0;
}
