:root {
  --bg: #ffffff;
  --text: #000000;
  --surface: #f7f7f7;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

.container {
  max-width: 980px;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

.lead {
  font-size: 1.08rem;
  max-width: 72ch;
  text-align: justify;
}

#projects {
  margin-top: 2.5rem;
}

.navbar-brand,
.nav-link,
a {
  color: var(--text);
}

.nav-link:focus-visible,
a:focus-visible,
.navbar-brand:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.profile-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--surface);
  border-width: 3px !important;
}

.project-card {
  background-color: var(--surface);
  border: 2px solid var(--text);
  height: 100%;
}

.project-card .card-body {
  padding: 1.2rem;
}

.project-card .card-title {
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
}

.project-meta {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-text {
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  body {
    line-height: 1.6;
  }

  .lead {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
