/* base.css — minimal reset + element defaults. */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700&family=Fira+Mono:wght@400;500&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-0);
  line-height: var(--lh-tight);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  color: var(--text-1);
  max-width: 65ch;
}

a {
  color: var(--text-1);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}
a:hover  { color: var(--text-0); }
a:focus-visible {
  outline: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--ring-focus);
}

code, pre {
  font-family: var(--font-mono);
}

button {
  font-family: inherit;
  font-size: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
