/* jichu.art — static rebuild. Palette and typefaces carried over from the old WordPress theme. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --line: #2f2f2f;
  --text: #ffffff;
  --body: #c4c4c4;
  --muted: #999999;
  --accent: #db4f3d;
  --serif: "Playfair Display", "Songti SC", Georgia, serif;
  --sans: "Open Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1180px;
  --measure: 720px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 1.25; margin: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: 8px 14px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header { text-align: center; padding: 34px 0 26px; }
.site-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.8vw, 42px);
  letter-spacing: 6.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.site-title a { color: var(--text); text-decoration: none; }
.site-tagline {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text);
}
.site-nav { margin-top: 18px; display: flex; justify-content: center; gap: 28px; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  background: #000;
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 85% 47%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,0) 70%);
}
.hero-text {
  position: relative; z-index: 1;
  padding: clamp(72px, 13vw, 168px) 0;
}
.hero-year {
  margin: 0 0 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.1px; color: var(--text);
}
.hero h1 { font-size: clamp(38px, 6.2vw, 65px); line-height: 1.3; max-width: 8em; }
.hero-sub { margin: 28px 0 0; letter-spacing: 2.1px; color: var(--text); }

/* ---------- Home: works ---------- */

.works { padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(32px, 4.8vw, 42px); }
.section-head p { margin: 14px 0 0; color: var(--muted); }
.section-head .eyebrow { margin: 0 0 10px; color: var(--accent); }
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.1px; text-transform: uppercase;
  color: var(--accent);
}

.work-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
}
.work { position: relative; }
.work-thumb {
  aspect-ratio: 3 / 2; width: 100%;
  object-fit: cover; background: var(--panel);
  border: 1px solid var(--line);
}
.work h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 22px; }
.work h3 a { color: var(--text); text-decoration: none; }
.work h3 a::after { content: ""; position: absolute; inset: 0; }
.work:hover h3 a, .work h3 a:focus-visible { color: var(--accent); }
.work:hover .work-thumb { border-color: var(--muted); }
.work-cat {
  margin: 8px 0 0;
  font-size: 12px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
  color: var(--accent);
}
.work-excerpt { margin: 12px 0 0; font-size: 15px; color: var(--muted); max-width: 34em; }
.work-more {
  display: inline-block; margin-top: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
  color: var(--text);
}

/* ---------- About band (home) and About page ---------- */

.about-band { background: var(--panel); border-block: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0; }
.about-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.avatar { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.about-grid h2 { font-size: clamp(32px, 4.8vw, 42px); }
.about-grid p { margin: 14px 0 0; font-size: 15px; max-width: var(--measure); }
.about-grid .eyebrow { margin-bottom: 6px; }

.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; }
.social a {
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.social a:hover { color: var(--accent); }

.button {
  display: inline-block; margin-top: 28px;
  padding: 12px 28px;
  border: 1px solid var(--text);
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
}
.button:hover { background: var(--text); color: #000; }

.about-page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.about-page .about-grid { margin-bottom: 8px; }
.about-page h1 { font-size: clamp(36px, 5.4vw, 56px); }
.cv { max-width: var(--measure); margin: 0 0 0 calc(200px + clamp(28px, 5vw, 72px)); }
.cv h2 { font-size: 28px; margin-top: 56px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cv-org { color: var(--text); font-weight: 600; }
.cv-when { color: var(--muted); font-size: 14px; white-space: nowrap; }
.cv-role { grid-column: 1 / -1; font-size: 15px; }
.cv h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); margin-top: 24px; }
.cv ul.plain { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.cv ul.plain li { margin-top: 4px; }

/* ---------- Project pages ---------- */

.project { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.back {
  display: inline-block; margin-bottom: 28px;
  color: var(--muted); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
}
.back:hover { color: var(--text); }
.project h1 { font-size: clamp(36px, 5.4vw, 60px); max-width: 16em; }
.project .work-cat { margin-top: 14px; }
.prose { max-width: var(--measure); margin-top: 32px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.project h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 22px; }
.media-label { margin: 40px 0 12px; color: var(--text); font-weight: 600; }

.player { margin: 0 0 28px; max-width: 960px; }
.player video, .player iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  background: #000; border: 1px solid var(--line);
}
.player iframe { display: block; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.gallery figure { margin: 0; }
.shot { display: block; border: 1px solid var(--line); background: var(--panel); cursor: zoom-in; }
.shot:hover { border-color: var(--muted); }
.shot img { width: 100%; }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.pager {
  margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.pager a { text-decoration: none; color: var(--text); font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); }
.pager a:hover { color: var(--accent); }
.pager span { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pager .next { text-align: right; }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(48px, 7vw, 80px) 0 40px; text-align: center; }
.site-footer h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; }
.site-footer p { margin: 14px 0 0; font-size: 15px; }
.site-footer .social { justify-content: center; }
.copyright { margin-top: 36px !important; color: var(--muted); font-size: 13px !important; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .94);
  display: none; align-items: center; justify-content: center;
  padding: 56px 16px 64px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: var(--body); font-size: 14px; padding: 0 64px; }
.lightbox button {
  position: absolute; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; font: 400 22px/1 var(--sans); cursor: pointer;
}
.lightbox button:hover { border-color: var(--text); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  body { font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .avatar { width: 140px; height: 140px; }
  .cv { margin-left: 0; }
  .hero::after { background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.62) 100%); }
  .gallery.wide { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
