:root {
  --color-accent: #162c53;
  --bg: #fff;
  --fg: #000;
  --theme-fade: 0.5s; /* light/dark mode cross-fade */
  /* size unit for the corner controls: ≈1px on a laptop, growing to 2.5px on very large screens */
  --ui-unit: clamp(1px, 0.08vw, 2.5px);
}

/* Animatable number for the project card hover fade (see Project.svelte). */
@property --fade {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

:root[data-theme="dark"] {
  --bg: #000;
  --fg: #fff;
}

body {
  font: 200 100%/1.5  'Helvetica Neue', 'Inter', Helvetica, Arial, sans-serif;
  color: azure;
  max-width: 75%;
  margin-inline: auto;
  padding: 2rem;
  accent-color: var(--color-accent);
  background-color: var(--bg);
  transition: background-color var(--theme-fade) ease, color var(--theme-fade) ease;
}

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

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: 400%;
}

