/* style.css */
* {
  box-sizing: border-box;
}

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

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #fdfdfc;
  color: #1c1c1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 850px;
  width: 90%;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  min-height: 87.5vh;
  padding-bottom: 100px;
}

main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 10px 0 40px;
}

main > section {
  flex: 1;
}

main h2 {
  font-family: "Lora", serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1c1c1a;
}

main p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #6b6b66;
}

main a {
  color: #1c1c1a;
  text-decoration: none;
}

main a:hover {
  text-decoration: none;
}

.hero {
  --hero-top: clamp(6rem, 22vh, 12rem);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 720px;
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--hero-top) 2rem 2rem;
  gap: 0;
  position: relative;
}

.hero h1 {
  font-family: "Lora", serif;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.summary {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.summary p {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.summary a {
  text-decoration: underline;
  text-decoration-color: rgba(28, 28, 26, 0.25);
  text-underline-offset: 0.2em;
}

.summary a:hover {
  text-decoration-color: currentColor;
}

.link-list {
  margin: 0;
  padding-left: 0;
  color: #6b6b66;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.7;
  list-style-position: inside;
  text-align: left;
}

.link-list li + li {
  margin-top: 0.75rem;
}

.link-list a,
.project-name {
  color: #1c1c1a;
  font-size: inherit;
  font-weight: 400;
}

.project-list li + li {
  margin-top: 1rem;
}

.back-link {
  position: absolute;
  top: calc(var(--hero-top) - 2.5rem);
  left: 2rem;
  color: #6b6b66;
  font-size: 0.85rem;
}

.back-link:hover {
  color: #1c1c1a;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  main {
    flex-direction: column;
  }

  main h2 {
    font-size: 1.7rem;
  }

  main p {
    font-size: 1rem;
  }

  .hero {
    padding: var(--hero-top) 1.5rem 1.5rem;
  }

  .back-link {
    left: 1.5rem;
  }

}
