:root {
  --bg1: #fff6f2;
  --bg2: #ffe8df;
  --text: #1e1e1e;
  --muted: #666;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #ffcab6;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom right, var(--bg1), var(--bg2));
  min-height: 100vh;
  line-height: 1.5;
}

/* --- Header --- */
header {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 10;
}

header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto;

    font-size: 1rem;
    text-align: left;
    padding-left: 8px;


}

/* --- Layout --- */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}



/* --- Projects --- */
.project {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  padding: 60px 0;
  border-top: 2px solid rgb(177 117 114);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.project p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 8px;
}

.project a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.project a:hover {
  color: var(--accent);
}

.placeholder {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  height: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  
  /* make background image fit beautifully */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.right-img {
   background-position-x: right;
}


/* --- About --- */
#about {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  text-align: center;
  margin: 0 auto;
}

#about p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

#about a {
  color: inherit;
}


/* --- Footer --- */
footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.95rem;
}

footer a {
  color: var(--text);
  /* text-decoration: none; */
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

footer a:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* --- Responsive --- */
@media (min-width: 720px) {
  .project {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-top: 100px;
  }

    main {
    padding: 25px 24px 100px;
  }

  .title {
    text-align: right;
    font-size: 1.6rem;
    padding-left: 0;
  }


  .placeholder {
    flex: 1;
    height: 300px;
  }

  .text {
    flex: 1;
  }
}
