/* =========================================================
   Jessica · 摄影作品集 — 杂志编辑风
   ========================================================= */

:root {
  --bg: #f2f0eb;
  --bg-alt: #eae7df;
  --ink: #1c1b19;
  --ink-soft: #6b6862;
  --accent: #9c3a2e;
  --line: #d6d2c8;
  --serif: "Playfair Display", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.is-scrolled {
  background: rgba(242, 240, 235, .88);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}
.header-inner {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
  height: 78px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em; }
.brand-dot { color: var(--accent); }
.brand-en { font-size: .64rem; letter-spacing: .2em; color: var(--ink-soft); text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  font-size: .83rem; letter-spacing: .05em; color: var(--ink-soft);
  transition: color .25s ease;
  white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 18px; height: 1px; background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle.is-active span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-active span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 190px 0 110px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center;
}
.eyebrow, .section-no, .series-index {
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.16; letter-spacing: -.015em; font-weight: 500;
  margin: 26px 0 12px;
}
.hero-signature {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--ink-soft); margin: 0 0 26px 6px;
  letter-spacing: .01em;
}
.hero-signature .dot { color: var(--accent); }
.hero-lead { max-width: 34em; color: var(--ink-soft); font-size: 1rem; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 42px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .9rem; letter-spacing: .04em;
  transition: gap .3s ease, color .25s ease, background .25s ease;
}
.btn-primary { background: var(--ink); color: #fff; padding: 15px 26px; }
.btn-primary:hover { background: var(--accent); gap: 22px; }
.btn-text { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.btn-text:hover { color: var(--accent); border-color: var(--accent); gap: 20px; }

.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.hero-figure figcaption {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: 14px; font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em;
}
.hero-figure figcaption span { font-family: var(--serif); color: var(--accent); font-size: 1rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll span { font-size: .6rem; letter-spacing: .3em; color: var(--ink-soft); }
.hero-scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--ink-soft), transparent); }

/* ---------- About ---------- */
.section { padding: 120px 0; }
.about { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.section-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 18px 0 28px;
}
.about-text .lead {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.5; margin: 0 0 28px; font-weight: 500;
}
.about-text p { color: var(--ink-soft); margin: 0 0 20px; }
.about-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 46px 0 0; padding-top: 28px; border-top: 1px solid #c9c4b8;
}
.about-meta div { margin: 0; }
.about-meta dt { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.about-meta dd { margin: 0; font-size: .88rem; line-height: 1.5; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; filter: saturate(.85); }
.about-figure figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 14px; letter-spacing: .04em; }

/* ---------- Series (photo chapters) ---------- */
.series { padding: 112px 0; }
.series--alt { background: var(--bg-alt); }
.series-inner {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}
.series-intro { position: sticky; top: 118px; }
.series-title {
  font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 500; line-height: 1.12; letter-spacing: -.01em;
  margin: 20px 0 26px;
}
.series-poem {
  font-family: var(--serif); font-size: 1.02rem; line-height: 2.05;
  color: var(--ink-soft); margin: 0 0 22px;
}
.series-count { font-size: .72rem; letter-spacing: .18em; color: var(--accent); margin: 0; }

.shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; }
.shot { grid-column: span 2; margin: 0; min-width: 0; }
.shot:nth-child(5n+1),
.shot:nth-child(5n+2) { grid-column: span 3; }
.shot:nth-child(5n+2) { margin-top: 48px; }
.shot a { display: block; overflow: hidden; background: #dedad1; }
.shot:nth-child(5n+1) a,
.shot:nth-child(5n+2) a { aspect-ratio: 4 / 3; }
.shot:nth-child(5n+3) a,
.shot:nth-child(5n+4) a,
.shot:nth-child(5n+5) a { aspect-ratio: 3 / 4; }
.shot img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.88);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.shot a:hover img { transform: scale(1.045); filter: saturate(1); }
.shot figcaption {
  display: flex; gap: 12px; align-items: baseline;
  margin-top: 13px; font-size: .8rem; color: var(--ink-soft); letter-spacing: .03em;
}
.shot .num { font-family: var(--serif); color: var(--accent); font-size: .98rem; }

.series--daily .shot { grid-column: span 3; }
.series--daily .shot a { aspect-ratio: 4 / 3; }
.series--daily .shot:nth-child(2) { margin-top: 48px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #f2efe8; padding: 118px 0 42px; }
.contact .section-no { color: #c98a7c; }
.contact-title {
  font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 20px 0 24px;
}
.contact-title .italic { color: #c98a7c; }
.contact-lead { color: #a9a49a; font-size: 1rem; margin: 0 0 44px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2.2rem);
  border-bottom: 1px solid #5a564f; padding-bottom: 8px;
  transition: color .25s ease, border-color .25s ease, gap .3s ease;
}
.contact-mail:hover { color: #c98a7c; border-color: #c98a7c; gap: 26px; }
.socials { display: flex; gap: 30px; margin-top: 52px; flex-wrap: wrap; }
.socials a { font-size: .82rem; letter-spacing: .08em; color: #a9a49a; transition: color .25s ease; }
.socials a:hover { color: #f2efe8; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 96px; padding-top: 24px; border-top: 1px solid #3a3833;
  font-size: .72rem; letter-spacing: .06em; color: #7d7971;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18, 17, 15, .95);
  display: grid; place-items: center; padding: 64px 80px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; text-align: center; max-width: 100%; }
.lb-figure img { max-width: 100%; max-height: 76vh; object-fit: contain; margin-inline: auto; }
.lb-figure figcaption { color: #c9c4ba; font-size: .85rem; letter-spacing: .06em; margin-top: 18px; }
.lb-close, .lb-nav {
  position: absolute; background: transparent; border: 1px solid #4a4741; color: #e8e4dc;
  width: 46px; height: 46px; cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.lb-close:hover, .lb-nav:hover { background: #2a2824; border-color: #8a857c; }
.lb-close { top: 28px; right: 32px; font-size: .95rem; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
body.lb-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .series-inner { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: .78rem; }
}

@media (max-width: 900px) {
  .container, .header-inner { width: min(calc(100% - 40px), var(--container)); }
  .hero { padding: 150px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .hero-scroll { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-figure { max-width: 520px; }
  .section { padding: 90px 0; }
  .series { padding: 88px 0; }
  .series-inner { grid-template-columns: 1fr; gap: 42px; }
  .series-intro { position: static; }
  .series-title br { display: none; }
  .shots { gap: 26px 18px; }
  .shot:nth-child(5n+2) { margin-top: 30px; }
  .lightbox { padding: 70px 20px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 20px 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { width: 100%; padding: 11px 0; font-size: .95rem; }
  .nav-toggle { display: block; }
  .brand-en { display: none; }
  .hero { padding-top: 132px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-actions { gap: 18px; }
  .about-meta { grid-template-columns: 1fr; gap: 18px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .shot, .shot:nth-child(n), .series--daily .shot { grid-column: span 1; margin-top: 0; }
  .shot a, .shot:nth-child(n) a, .series--daily .shot a { aspect-ratio: 4 / 5; }
  .shot figcaption { font-size: .74rem; gap: 8px; }
  .contact { padding-top: 88px; }
  .footer-bottom { margin-top: 64px; }
  .lb-close { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
}
