:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d9dee8;
  --accent: #1d4ed8;
  --accent-soft: #e8f0ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 4.5rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.subtitle {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.projects {
  padding: 1rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-content {
  flex: 1;
}

.project-tag {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.project-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.project-description {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.18);
}

.button.primary:hover {
  background: #1e40af;
}

.button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover {
  background: #f3f4f6;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-author {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 3.5rem;
  }

  .project-card {
    flex-direction: column;
  }

  .project-links {
    width: 100%;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
