/* CUBE CSS - Global Element Defaults
   Base typography and element styles using semantic tokens
*/

/* Text Selection */
::selection {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-body);
  min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-xxl);
  padding-block: var(--space-md);
}

h2 {
  font-size: var(--fs-xl);
  padding-block: var(--space-md);
}

h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  padding-block: var(--space-sm);
}

h4 {
  font-size: var(--fs-md);
  font-weight: 500;
}

h5 {
  font-size: var(--fs-base);
  font-weight: 500;
}

/* Links */
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-accent);
}

a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Emphasis */
em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* Paragraphs */
p {
  margin-block-end: var(--space-md);
}
