/* --------------------------------------------------
   1. Normalize + Base Setup
-------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@300..700&display=swap");

html {
  box-sizing: border-box;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  height: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  line-height: 1.75;
  color: #002DC3;
  background: #ffcae7;
  margin: 6rem 0;
}

/* --------------------------------------------------
   2. Typography
-------------------------------------------------- */
h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  text-transform: lowercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p, ul, blockquote {
  margin-bottom: 1.5rem;
}

blockquote {
  font-weight: bold;
  font-style: italic;
  max-width: 90%;
}

hr {
  border: none;
  height: auto;
  margin: 3rem 0;
}
hr::before {
  content: "***";
  display: block;
  text-align: left;
  font-weight: 500;
}

/* --------------------------------------------------
   3. Layout
-------------------------------------------------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  margin-bottom: 4rem;
}

footer {
  text-align: center;
  padding: 0.5rem 0;
  margin-top: 4rem;
}

/* --------------------------------------------------
   4. Navigation
-------------------------------------------------- */
.main-nav ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.main-nav li {
  margin-bottom: 0.75rem;
}

.main-nav a {
  font-style: italic;
  font-size: 1rem;
  text-transform: lowercase;
  text-decoration: none;
  transition: all 0.25s ease-in;
  color: #002DC3;
  border-bottom: 2px dotted transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: currentColor;
}

/* --------------------------------------------------
   5. Links
-------------------------------------------------- */
a {
  color: #002DC3;
  text-decoration: none;
  border-bottom: 2px dotted currentColor;
  transition: background 0.3s ease-in;
}

a:hover {
  background: rgba(0, 45, 195, 0.15);
}

/* --------------------------------------------------
   6. Components
-------------------------------------------------- */
.project-card {
  border-bottom: 3px dotted #002DC3;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.project-card:last-child {
  border: none;
}

.project-card img,
.banner-project img,
.bg-blog img {
  max-width: 100%;
  border-radius: 12px;
}

.project-card h3 {
  margin: 0 0 0.5rem;
}

.project-card p {
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------
   7. Utilities
-------------------------------------------------- */
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.justify {
  text-align: justify;
}

/* --------------------------------------------------
   8. Responsive
-------------------------------------------------- */
@media (max-width: 45em) {
  body {
    margin: 3rem 0;
  }

  header {
    text-align: center;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .main-nav ul {
    display: flex;
    justify-content: space-around;
    margin: 0 0 2rem;
  }
}
