/* ── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #1a6b4f;
  --accent-light: #e8f5ef;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e5e5e7;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

/* ── Page Shell ────────────────────────────────── */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  border-bottom: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
  border-bottom: none;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

/* ── Section ──────────────────────────────────── */
.projects-section {
  padding-top: 48px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Project Cards Grid ───────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.project-card .description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ── Tags ─────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--bg);
  color: var(--text-muted);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

/* ── Card Links ───────────────────────────────── */
.card-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: none;
  transition: opacity 0.2s;
}

.card-links a:hover {
  opacity: 0.7;
  border-bottom: none;
}

.card-links a svg {
  width: 13px;
  height: 13px;
}

/* ── Footer ────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 0;
  margin-top: 24px;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 48px 0 32px;
  }
}
