@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Inline typography */
p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Monospace & shortcuts */
code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

kbd {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas);
  padding: 2px 5px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Horizontal line */
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* List details */
ul, ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}
