/* base.css — ElaCloud typography and global element styles */

@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-h1-desktop);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-h1);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-h2-desktop);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-h2);
  letter-spacing: -0.02em;
}

p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}

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

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-h1-mobile);
  }

  h2 {
    font-size: var(--font-size-h2-mobile);
  }

  p {
    font-size: var(--font-size-body-mobile);
  }
}
