/* ============================================================
   Lisa Sheng — artist portfolio
   Rebuilt from the Adobe Portfolio "jess" theme:
   white background, light grey text (#7a7a7a), gold accents
   (#bf8f00), thin weight, generous whitespace.
   ============================================================ */

:root {
  --bg: #ffffff;
  --text: #7a7a7a;
  --text-dark: #333333;
  --accent: #bf8f00;
  --hairline: #e8e8e8;
  --max-width: 1100px;
  --header-h: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: dnpm, "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.45s ease;
}
body.page-ready { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 24px;
}
.logo {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--text-dark); }
.site-nav a.active::after {
  content: "";
  display: block;
  margin-top: 2px;
  border-bottom: 1px solid var(--accent);
}

/* hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-dark);
}

/* ---------- main ---------- */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 46px 24px 80px;
  min-height: 62vh;
}

.page-title {
  text-align: center;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 42px;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.25s ease; }
a:hover { opacity: 0.75; }

/* ---------- about ---------- */
.about-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.about-col {
  flex: 1;
  text-align: center;
  font-size: 16px;
}
.about-col p { margin-bottom: 1.4em; }
.series-links { line-height: 2.2; }

/* ---------- portfolio covers ---------- */
.covers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cover { position: relative; display: block; overflow: hidden; }
.cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
.cover:hover img { transform: scale(1.02); }
.cover .cover-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  font-size: 15px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cover:hover .cover-title,
.cover:focus .cover-title { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .cover .cover-title { opacity: 1; transform: none; }
}

/* ---------- project pages ---------- */
.module-text {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
  font-size: 16px;
}
.module-text h3 {
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.module-text p { margin-bottom: 1.2em; }
.module-text .footnote {
  font-size: 13px;
  line-height: 1.7;
  color: #9a9a9a;
  text-align: left;
  margin-top: 1.6em;
}

.img-block { text-align: center; margin-bottom: 44px; }
.img-block img {
  display: inline-block;
  width: var(--img-w, 100%);
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* justified gallery (dream) */
.jgallery { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 44px; }
.jgallery .jg-item { position: relative; overflow: hidden; }
.jgallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* back link */
.back-link {
  display: block;
  text-align: center;
  margin: 60px 0 0;
  font-size: 14px;
  color: var(--text);
}
.back-link:hover { color: var(--accent); }

/* ---------- contact ---------- */
.contact-form {
  max-width: 460px;
  margin: 0 auto;
}
.contact-form .form-row { margin-bottom: 26px; }
.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 2px;
  font: inherit;
  font-weight: 300;
  color: var(--text-dark);
  background: transparent;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form .submit-btn {
  display: block;
  margin: 40px auto 0;
  padding: 10px 42px;
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form .submit-btn:hover {
  background: var(--text-dark);
  color: #fff;
}
.form-thanks {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  color: var(--accent);
  display: none;
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 24px 42px;
  font-size: 13px;
  color: #b3b3b3;
  letter-spacing: 0.04em;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
}
.lightbox .lb-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 28px;
  font-weight: 200;
  color: var(--text-dark);
  line-height: 1;
  cursor: pointer;
}
.lightbox .lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  font-weight: 200;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  padding: 20px;
}
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .site-header {
    padding-top: 22px;
    align-items: center;
  }
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px 30px;
    z-index: 100;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 16px; }
  .site-main { padding-top: 34px; }
  .about-grid { flex-direction: column; gap: 40px; }
  .covers-grid { grid-template-columns: 1fr; gap: 16px; }
  .img-block img { width: 100% !important; }
  .page-title { margin-bottom: 30px; }
}
