/* ============================================
   Jiwon Ham – Portfolio
   Inspired by repponen.com
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.site-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-logo {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #999;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1a1a1a;
}

/* Main content spacing */
main {
  padding-top: 100px;
  padding-bottom: 80px;
}

/* ---- Work Index (artworks listing) ---- */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.work-item {
  display: block;
}

.work-item-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 16px;
  transition: opacity 0.3s;
}

.work-item:hover .work-item-image {
  opacity: 0.85;
}

.work-item-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.work-item-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.work-item-year {
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
}

/* ---- Project Detail Page ---- */
.project-header {
  margin-bottom: 60px;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.project-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 40px;
}

.project-description {
  max-width: 720px;
  margin-bottom: 60px;
}

.project-description p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-gallery img {
  width: 100%;
}

.project-gallery .video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.project-gallery .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-credits {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #999;
  line-height: 1.8;
}

/* Project navigation (prev/next) */
.project-nav {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.project-nav a {
  font-size: 0.8rem;
  color: #999;
  transition: color 0.2s;
}

.project-nav a:hover {
  color: #1a1a1a;
}

/* ---- CV Page ---- */
.cv-section {
  margin-bottom: 60px;
}

.cv-section-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
}

.cv-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cv-year {
  color: #999;
  font-size: 0.85rem;
}

.cv-text {
  color: #333;
}

.cv-item-plain {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* About / Bio section */
.about-section {
  max-width: 720px;
  margin-bottom: 60px;
}

.about-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 16px;
}

/* ---- Commissions Page ---- */
.commissions-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.commission-item {
  display: block;
}

.commission-item img {
  width: 100%;
  margin-bottom: 12px;
}

.commission-item-title {
  font-size: 0.95rem;
  font-weight: 400;
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.site-footer .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.75rem;
  color: #999;
}

.footer-email {
  font-size: 0.75rem;
  color: #999;
  transition: color 0.2s;
}

.footer-email:hover {
  color: #1a1a1a;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-container {
    padding: 0 20px;
  }

  .site-header .site-container {
    height: 50px;
  }

  .site-nav {
    gap: 20px;
  }

  main {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .work-list {
    gap: 48px;
  }

  .project-title {
    font-size: 1.4rem;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 14px;
  }

  .site-logo {
    font-size: 0.7rem;
  }

  .site-nav a {
    font-size: 0.7rem;
  }

  .work-list {
    gap: 36px;
  }

  .work-item-info {
    flex-direction: column;
    gap: 2px;
  }
}
