:root {
  --bg: #f5ede4;
  --bg2: #e8d9cc;
  --sand: #bea694;
  --ink: #351930;
  --ink2: #5a3a52;
  --ink3: #8a6a80;
  --olive: #7c9d45;
  --olive-dk: #566427;
  --berry: #7a1e47;
  --rule: #d6c5b8;
  --nav-h: 58px;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

.intro {
  color: var(--ink2);
  margin-bottom: 30px;
  line-height: 1.5;
}

.tags {
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px;
  background: var(--bg2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink2);
  transition: 0.2s;
}

.tag:hover {
  background: var(--olive);
  color: white;
}

.tag.active {
  background: var(--olive-dk);
  color: white;
}

#projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-content: center;
}

/* Responsive fallback */
@media (max-width: 700px) {
  #projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  #projects {
    grid-template-columns: 1fr;
  }
}

.project {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}

.project:hover {
  border-color: var(--olive);
  transform: translateY(-2px);
}

.project img {
  width: 100%;
  height: 55%;
  object-fit: cover;
}

.project-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.project-title {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}

.project-desc {
  font-size: 12px;
  color: var(--ink2);
}

a {
  color: var(--olive-dk); /* A deep red/purple for links */
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: var(--olive); /* Changes to green when you hover */
  text-decoration: underline;
}
