/* Reset + global typography. Loaded after tokens.css. */

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin: 0 0 var(--space-4);
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-primary-soft);
}

button {
  font: inherit;
  cursor: pointer;
}

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