*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ── Header ── */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid #e5e7eb;
}

.site-name {
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
}

header nav a {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  margin-left: 24px;
}

header nav a:hover {
  color: #111;
}

/* ── Main ── */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* ── Hero ── */

.hero {
  margin-bottom: 56px;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: #222;
  margin: 0;
}

/* ── Index sections ── */

section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

/* ── Item list ── */

.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-list li {
  display: flex;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 16px;
}

.item-list li:last-child {
  border-bottom: none;
}

.item-name {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 180px;
}

.item-name:hover {
  text-decoration: underline;
}

.item-desc {
  font-size: 14px;
  color: #6b7280;
  flex: 1;
}

.item-badge {
  font-size: 11px;
  color: #d1d5db;
  flex-shrink: 0;
}

/* ── Project / App pages ── */

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
}

.page-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

.page-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 16px;
}

.page-body ul {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  padding-left: 20px;
  margin: 0 0 16px;
}

.page-body ul li {
  margin-bottom: 4px;
}

.page-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-links a {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: #9ca3af;
  text-decoration: none;
  margin-top: 48px;
}

.back-link:hover {
  color: #111;
}

/* ── CV page ── */

.cv-overview {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 48px;
}

.cv-section {
  margin-bottom: 48px;
}

.cv-section h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.cv-role {
  margin-bottom: 32px;
}

.cv-role:last-child {
  margin-bottom: 0;
}

.cv-role-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 2px;
}

.cv-role h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.cv-role .period {
  font-size: 13px;
  color: #9ca3af;
  flex-shrink: 0;
}

.cv-role .company {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 10px;
}

.cv-role ul {
  padding-left: 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

.cv-role ul li {
  margin-bottom: 5px;
}

.cv-skills p {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 8px;
}

.cv-skills p:last-child {
  margin-bottom: 0;
}

.cv-edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-edu-list li {
  display: flex;
  gap: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 8px;
}

.cv-edu-list li:last-child {
  margin-bottom: 0;
}

.edu-year {
  color: #9ca3af;
  font-style: italic;
  flex-shrink: 0;
  min-width: 56px;
}

/* ── Footer ── */

footer {
  border-top: 1px solid #e5e7eb;
  padding: 20px 40px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  header {
    padding: 16px 20px;
  }

  main {
    padding: 40px 20px 60px;
  }

  .item-list li {
    flex-direction: column;
    gap: 2px;
  }

  .item-name {
    min-width: auto;
  }

  .item-badge {
    margin-top: 2px;
  }

  .cv-role-meta {
    flex-direction: column;
    gap: 2px;
  }

  footer {
    padding: 16px 20px;
  }
}
