@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

/* Global reset ringkas */
* {
  box-sizing: border-box;
}

/* Tema asas */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101010;
  color: #f2f2f2;
}

/* Container tengah */
.wrapper {
  max-width: 1080px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

/* Link */
a {
  color: inherit;
  text-decoration: none;
}

a.link,
.nav a {
  border-bottom: 1px solid #444;
}

a.link:hover,
.nav a:hover {
  border-bottom-color: #f2f2f2;
}

/* Header / site title */
.site-header {
  margin-bottom: 40px;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.site-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b5b5b5;
}

/* Navigation */
.nav {
  margin-top: 16px;
}

.nav a {
  margin-right: 16px;
  font-size: 1rem;   /* <- KUNCI SAIZ */
  line-height: 1.4;
}

/* Main content */
main h1 {
  font-weight: 400;
  margin-bottom: 8px;
}

main p {
  color: #bbbbbb;
  line-height: 1.7;
  max-width: 720px;
}

/* Grid untuk portfolio */
.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Gambar + frame */
figure {
  margin: 0;
  background: #181818;
  padding: 8px;
}

figure img {
  width: 100%;
  display: block;
}

figcaption {
  font-size: 0.8rem;
  color: #888888;
  margin-top: 6px;
}

/* Footer kecil */
.footer {
  margin-top: 60px;
  font-size: 0.8rem;
  color: #666666;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,10,0.95);
  z-index: 9999;
  padding: 20px;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #444;
}

/* ====== MOBILE TUNING ====== */
@media (max-width: 768px) {

  .wrapper {
    margin: 24px auto 40px;
    padding: 0 16px;
  }

  .site-title {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
  }

  .site-subtitle {
    font-size: 0.85rem;
  }

  .nav {
    margin-top: 10px;
  }

  .nav a {
    display: inline-block;
    margin-right: 12px;
    font-size: 0.9rem;
  }

  main h1 {
    font-size: 1.2rem;
  }

  main p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .grid {
    gap: 12px;
  }

  figure {
    padding: 6px;
  }

  figcaption {
    font-size: 0.75rem;
  }

  .footer {
    margin-top: 40px;
    font-size: 0.75rem;
  }
}
