/* ============================================================
   Base
   Typography defaults and element-level styles.
   All values reference tokens from tokens.css.
   ============================================================ */

/* --- Root / HTML ------------------------------------------ */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

/* --- Body -------------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --------------------------------------------- */

::selection {
  background-color: var(--color-secondary);
  color: #fff;
}

/* --- Headings ---------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  letter-spacing: normal;
  margin: 0;
}

h1 {
  font-size: var(--text-8xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tighter);
}

h2 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

/* --- Paragraphs -------------------------------------------- */

p {
  margin: 0;
}

/* --- Links ------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
}

/* --- Inline Elements --------------------------------------- */

strong {
  font-weight: var(--weight-bold);
}

em {
  font-style: italic;
}

/* --- Lists ------------------------------------------------- */

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

/* --- Images ------------------------------------------------ */

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

/* --- Material Symbols -------------------------------------- */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
