:root {
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-size-base: 1rem;
  --text-size-sm: 0.875rem;
  --text-size-lg: 1.125rem;
  --line-height: 1.6;
  --line-height-tight: 1.35;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Layout */
  --content-max-width: 65ch;
  --page-padding-inline: var(--space-lg);

  /* Colors – adjust to your theme */
  --color-bg: #fff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #2563eb;
  --color-border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1a;
    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-accent: #60a5fa;
    --color-border: #333;
  }
}

/* Reset: only what’s needed */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Main content */
main {
  max-inline-size: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding-inline);
  padding-block: var(--space-2xl);
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: var(--line-height-tight);
  margin-block: 0 0.5em;
}

p {
  margin-block: 0 1em;
}

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

