/* ---------- Clean & minimal ---------- */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1a18;
  --muted: #6b6660;
  --faint: #9a948c;
  --line: #e9e5de;
  --accent: #4a6785;
  --accent-strong: #395270;
  --radius: 10px;
  --maxw: 940px;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  height: 56px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: 0.25s ease; }

/* ---------- Hero ---------- */
.hero { padding: 104px 28px 84px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 500px; }

/* ---------- Work sections ---------- */
.work { padding: 30px 28px 46px; }
.work-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.work-head h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.work-count {
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; }
.card-thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: #efece6;
  border: 1px solid var(--line);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { padding: 16px 2px 0; }
.card-body h3 { font-family: var(--serif); font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 7px; }
.card-body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 12px; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.card-link:hover { color: var(--accent-strong); }
.card-link.is-muted { color: var(--faint); }

.card--empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.card--empty .card-body { padding: 0; }
.card--empty h3 { color: var(--faint); }

.card--paper {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--surface);
}
.card--paper .card-body { padding: 0; max-width: 720px; }
.card--paper h3 { line-height: 1.35; }
.card--paper h3 a { transition: color 0.18s ease; }
.card--paper h3 a:hover { color: var(--accent); }
.card--paper p em { font-style: italic; }
.paper-venue {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 11px;
}

/* ---------- About ---------- */
.about { padding: 70px 28px 84px; }
.about-grid { display: grid; grid-template-columns: 190px 1fr; gap: 46px; align-items: center; }
.about-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #eee9e1;
  display: grid;
  place-items: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder { display: none; color: var(--faint); font-size: 0.85rem; }
.about-photo.is-placeholder { border: 1px dashed var(--line); }
.about-photo.is-placeholder .about-placeholder { display: block; }
.about-text { max-width: 560px; }
.about-text h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-note { font-size: 0.85rem; color: var(--faint); font-style: italic; }
/* ---------- Contact / social links ---------- */
.contact { margin-top: 24px; }
.contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 13px;
}
.contact-mark {
  width: 15px;
  height: 23px;
  flex: none;
  image-rendering: pixelated;
  transform: translateY(-4px);
}
.social-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.social-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.18s ease;
}
.social-links a:hover { color: var(--accent-strong); }
.social-links .handle { color: var(--muted); font-weight: 400; margin-left: 7px; }

/* ---------- Detail page ---------- */
.page-hero { padding: 64px 28px 40px; }
.back-link { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }
.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-sub { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.page-intro { max-width: 640px; margin-top: 20px; }
.page-intro p { font-size: 1.02rem; color: var(--text); line-height: 1.7; margin-bottom: 13px; }
.page-intro p:last-child { margin-bottom: 0; }

.detail { padding: 26px 28px 40px; }
.detail-subhead {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--muted);
  margin: 26px 0 16px;
}
.detail-subhead:first-of-type { margin-top: 6px; }

.asset-stack { display: flex; flex-direction: column; gap: 22px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.asset-figure { margin: 0; }
.asset-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #efece6;
}
.asset-figure figcaption {
  margin-top: 9px;
  font-size: 0.85rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  transition: background 0.18s ease;
}
.btn:hover { background: var(--accent-strong); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 28px 22px; display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .about-grid { grid-template-columns: 1fr; justify-items: start; gap: 26px; }
  .about-photo { width: 120px; }
  .hero { padding: 70px 28px 54px; }
}
