/* ---------- Basic setup ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.5;
}

main, header, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.site-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.9rem;
}

.subtitle {
  margin: 0;
  color: #555;
}

/* ---------- Resume download ---------- */
.resume-download {
  max-width: 760px;
  margin: 1rem auto 0 auto;
  padding: 0 1.25rem;
}

.resume-button {
  display: inline-block;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
}

.resume-button:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ---------- Tag nav ---------- */
.tag-nav {
  max-width: 760px;
  margin: 1.5rem auto 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #333;
}

.tag-button:hover {
  border-color: #888;
}

.tag-button.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ---------- Project cards ---------- */
#app {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.project {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.project:first-child {
  margin-top: 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-title {
  margin: 0;
  font-size: 1.25rem;
}

.project-title a {
  color: inherit;
  text-decoration: none;
}

.project-title a:hover {
  text-decoration: underline;
}

.project-thumb {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.project-date {
  color: #888;
  font-size: 0.9rem;
  white-space: nowrap;
}

.project-summary {
  margin: 0.5rem 0 1rem 0;
  color: #333;
}

/* ---------- Subsections ---------- */
.subsection {
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
}

.subsection:first-of-type {
  border-top: none;
}

.subsection-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.subsection-description {
  margin: 0 0 0.5rem 0;
  color: #444;
  font-size: 0.95rem;
}

.tag-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-badge {
  font-size: 0.75rem;
  background: #f2f2f2;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: #444;
}

/* ---------- Project detail page ---------- */
.back-link {
  display: inline-block;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.project-detail-image {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.project-details p {
  margin: 0 0 1rem 0;
  color: #333;
}

.subsections-heading {
  font-size: 1rem;
  color: #888;
  margin: 2rem 0 0.5rem 0;
  border-top: 1px solid #e2e2e2;
  padding-top: 1.5rem;
}

/* ---------- Misc ---------- */
.loading, .empty-state {
  color: #888;
}

.site-footer {
  padding: 1.5rem 1.25rem 3rem 1.25rem;
  color: #999;
  font-size: 0.85rem;
}