/* ── Reset ── */

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

/* ── Base ── */

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.7;
  padding: 0 1.5rem;
}

/* ── Container ── */

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

/* ── Typography ── */

h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 0.8rem;
}

.subtitle {
  color: #555;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* ── Links ── */

a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.15s;
}

a:hover {
  border-color: #111;
}

/* ── Horizontal rules ── */

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* ── Sections ── */

.about p:last-child {
  margin-bottom: 0;
}

/* ── Projects ── */

.project {
  margin-bottom: 2rem;
}

.project:last-child {
  margin-bottom: 0;
}

.project p:last-of-type {
  margin-bottom: 0;
}

.stack {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.3rem;
}

.links {
  font-size: 0.85rem;
}

.links a {
  margin-right: 1rem;
}

/* ── Footer ── */

footer {
  font-size: 0.85rem;
}

footer a {
  margin-right: 1.2rem;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 2.5rem 0 2rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
