/* PHOTONIC — editorial material log (2026-09 redesign)
   Two voices: Newsreader (the observer) and JetBrains Mono (the instrument).
   One colour source: the photographs. Everything else is white, ink, hairline. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f3f0;
  --ink: #111111;
  --muted: #7a7873;
  --rule: rgba(17, 17, 17, 0.14);
  --rule-2: rgba(17, 17, 17, 0.45);

  --serif: 'Newsreader', 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 2vw, 32px);
  --pad: clamp(20px, 3.2vw, 56px);
  --max: 1680px;
  --mast-h: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'kern', 'liga', 'onum';
  -webkit-font-smoothing: antialiased;
}
html[lang="zh"] body { line-height: 1.85; font-size: 16px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.col-margin { grid-column: 1 / span 4; }
.col-body { grid-column: 6 / span 6; }

/* ---------- type voices ---------- */
.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
html[lang="zh"] .mono { letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
html[lang="zh"] .eyebrow { text-transform: none; letter-spacing: 0.12em; }

.display {
  font-weight: 300;
  font-size: clamp(52px, 8.4vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 14ch;
  font-variation-settings: 'opsz' 72;
}
html[lang="zh"] .display { letter-spacing: 0; line-height: 1.12; font-weight: 400; }

.lede {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.38;
  font-weight: 300;
  margin: 0 0 26px;
  max-width: 32ch;
}
.lede--narrow { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }

.note { color: var(--muted); margin: 0 0 14px; max-width: 42ch; }
.note--wide { max-width: 72ch; margin-top: 18px; }

.todo {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--muted);
  border-bottom: 1px dashed var(--rule-2);
  letter-spacing: 0.04em;
}
.obs { color: var(--muted); font-family: var(--mono); font-size: 0.85em; vertical-align: super; line-height: 0; margin-left: 1px; }

.tag {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--rule-2); border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; line-height: 1.5; vertical-align: 1px;
  color: var(--ink);
}

/* ---------- masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  height: var(--mast-h);
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.mast__brand { display: flex; align-items: baseline; gap: 10px; }
.mast__name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; font-weight: 500; }
.mast__zh { font-size: 13px; color: var(--muted); }
.mast__descriptor { margin: 0; font-style: italic; font-size: 15px; color: var(--muted); }
.mast__nav { display: flex; gap: clamp(12px, 1.6vw, 26px); }
.mast__nav a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted); padding: 2px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.mast__nav a:hover, .mast__nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.mast__lang {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 4px 10px; border: 1px solid var(--rule-2); border-radius: 999px;
}
.mast__lang:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.running {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding: 9px var(--pad);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.running b { font-weight: 400; color: var(--ink); }
.running .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); margin-right: 8px; vertical-align: 1px;
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .running .dot { animation: none; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 5vh, 64px); padding-bottom: clamp(48px, 6vw, 96px); }
.hero__grid { align-items: start; }
.hero__aside { grid-column: 1 / span 5; padding-top: 4px; }
.hero__figure { grid-column: 6 / -1; margin: 0; }

.live { color: var(--ink); border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 24px; min-height: 2.6em; max-width: 44ch; }
.live .live__alt { display: block; color: var(--muted); margin-top: 4px; }

.angle {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg);
  overflow: hidden;
  cursor: ew-resize;
  outline: none;
  touch-action: pan-y;
}
.angle:focus-visible { box-shadow: 0 0 0 1px var(--ink); }
.angle__img { width: 100%; height: 100%; object-fit: contain; }

.angle__scale {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: 14px; margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.angle__scale i { position: relative; display: block; }
.angle__scale i::before { content: ''; position: absolute; left: 0; top: -1px; width: 1px; height: 8px; background: var(--rule-2); }
.angle__scale i.is-active::before { height: 14px; width: 2px; background: var(--ink); }
.angle__scale i:last-child::after { content: ''; position: absolute; right: 0; top: -1px; width: 1px; height: 8px; background: var(--rule-2); }
.cap { color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 120px); border-top: 1px solid var(--ink); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.section__title { font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
html[lang="zh"] .section__title { font-weight: 400; letter-spacing: 0; }
.section__count { color: var(--muted); margin: 0; white-space: nowrap; }

/* ---------- index table ---------- */
.table-wrap { overflow-x: auto; }
.index { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.index th, .index td { text-align: left; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; white-space: nowrap; }
.index th { font-weight: 400; color: var(--muted); border-bottom-color: var(--rule-2); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0; }
html[lang="zh"] .index th { text-transform: none; }
.index td.title { white-space: normal; font-family: var(--serif); font-size: 17px; letter-spacing: 0; min-width: 18ch; }
.index td.num { text-align: right; padding-right: 0; }
.index tr.row--entry { cursor: pointer; }
.index tr.row--entry:hover td, .index tr.row--group:hover td { background: var(--bg-2); }
.index tr.row--group td { padding-top: 8px; padding-bottom: 8px; color: var(--muted); cursor: pointer; }
.index tr.row--group td:first-child { padding-left: 2.2ch; }
.index tr.row--group td.title { font-size: 15px; color: var(--ink); }
.index tr.row--ref td { color: var(--muted); }
.index tr.row--withdrawn td { text-decoration: line-through; text-decoration-color: var(--rule-2); }
.index tr.row--withdrawn td.status { text-decoration: none; }
.index td .sub { color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-left: 8px; }
.row-preview[hidden] { display: none; }
.row-preview {
  position: fixed; z-index: 20; pointer-events: none;
  width: 200px; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  transform: translate(18px, -50%);
}

/* ---------- entries ---------- */
.entry { border-top: 1px solid var(--rule); padding-top: clamp(36px, 4vw, 60px); margin-top: clamp(36px, 4vw, 60px); }
.entry:first-child { border-top: 0; margin-top: 0; }
.entry__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: 8px; }
.entry__id { grid-column: 1 / span 5; font-weight: 300; font-size: clamp(56px, 7.4vw, 120px); line-height: 0.9; letter-spacing: -0.03em; margin: 0; }
.entry__meta { grid-column: 6 / -1; padding-bottom: 8px; }
.entry__title { font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; line-height: 1.25; margin: 0 0 14px; }
.entry__conds { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); margin: 0; }
.entry__conds span + span::before { content: '·'; margin: 0 10px; color: var(--rule-2); }
.entry__conds a, .a-name a { border-bottom: 1px solid var(--rule-2); }
.entry__conds a:hover, .a-name a:hover { border-bottom-color: var(--ink); }

.group { padding-top: 28px; }
.group__head { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.group__head b { font-weight: 400; color: var(--ink); }
.group__head .group__label { font-family: var(--serif); font-size: 17px; letter-spacing: 0; color: var(--ink); }
.group__head .spacer { flex: 1; }

.strip { padding: 10px 0 6px; }
.strip__scroller {
  display: flex; gap: clamp(16px, 2vw, 32px);
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 var(--pad) 12px;
  scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent;
}
.strip__scroller::-webkit-scrollbar { height: 3px; }
.strip__scroller::-webkit-scrollbar-thumb { background: var(--rule-2); }
.frame { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.frame button { display: block; }
.frame img { height: clamp(240px, 42vh, 520px); width: auto; max-width: none; object-fit: contain; background: var(--bg-2); }
.frame figcaption { margin-top: 10px; color: var(--muted); display: flex; gap: 14px; max-width: 100%; }
.frame figcaption b { font-weight: 400; color: var(--ink); }

.entry__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 28px; }
.entry__margin { grid-column: 1 / span 4; }
.entry__result { grid-column: 6 / span 6; margin: 0; font-size: 18px; }
html[lang="zh"] .entry__result { font-size: 16px; }

/* ---------- statement / prose ---------- */
.statement__heading { font-weight: 300; font-style: italic; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 clamp(28px, 3vw, 44px); }
html[lang="zh"] .statement__heading { font-style: normal; font-weight: 400; letter-spacing: 0; }
.prose p, .prose__p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
html[lang="en"] .prose p:first-child::first-letter { float: left; font-size: 4.2em; line-height: 0.8; padding: 0.08em 0.12em 0 0; font-weight: 300; }
.pull { margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); font-style: italic; font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; max-width: 26ch; }
html[lang="zh"] .pull { font-style: normal; }

/* ---------- material ---------- */
.props { margin: clamp(28px, 3vw, 44px) 0; }
.props div { display: grid; grid-template-columns: minmax(10ch, 1fr) 2fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.props div:last-child { border-bottom: 1px solid var(--rule); }
.props dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); padding-top: 4px; }
.props dd { margin: 0; }
.caveat { font-style: italic; color: var(--muted); margin: 0 0 20px; }
html[lang="zh"] .caveat { font-style: normal; }

/* ---------- artists ---------- */
.artists { list-style: none; margin: 0; padding: 0; }
.artists li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 22px 0; border-top: 1px solid var(--rule); }
.artists li:last-child { border-bottom: 1px solid var(--rule); }
.artists .a-id { grid-column: 1 / span 1; }
.artists .a-name { grid-column: 2 / span 4; font-size: clamp(20px, 1.6vw, 26px); font-weight: 400; line-height: 1.2; }
.artists .a-role { grid-column: 6 / span 2; color: var(--muted); }
.artists .a-bio { grid-column: 8 / span 5; margin: 0; }
.artists .a-bio .a-medium { display: block; margin-bottom: 8px; color: var(--muted); }

/* ---------- colophon / footer ---------- */
.credit { font-style: italic; margin: 0 0 20px; }
.provider { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; margin: 0 0 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.provider__label { color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
html[lang="zh"] .provider__label { text-transform: none; letter-spacing: 0.12em; }
.provider__link { display: flex; align-items: center; gap: 16px; }
.provider__logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; }
.provider__name { font-size: 17px; line-height: 1.4; }
a.provider__link:hover .provider__name { border-bottom: 1px solid var(--ink); }
html[lang="zh"] .credit { font-style: normal; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--rule); color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--ink); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 0 40px; gap: 14px; }
.lightbox__figure img {
  max-height: calc(100vh - 150px); max-width: 100%; object-fit: contain;
  cursor: zoom-in; user-select: none; -webkit-user-drag: none; touch-action: none;
  transition: transform .25s ease; will-change: transform;
}
.lightbox__figure img.is-zoomed { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1.5); cursor: grabbing; transition: none; }
.lightbox__figure { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lightbox__figure img { transition: none; } }
.lightbox__figure figcaption { color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 70ch; text-align: center; padding: 0 12px; }
.lightbox__figure figcaption b { font-weight: 400; color: var(--ink); }
.lightbox__nav { font-family: var(--serif); font-size: 40px; font-weight: 300; height: 100%; color: var(--ink); opacity: 0.55; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { position: absolute; top: 18px; right: var(--pad); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- prototype banner ---------- */
.proto { position: fixed; left: var(--pad); bottom: 14px; z-index: 40; padding: 5px 10px; border: 1px solid var(--rule-2); background: var(--bg); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mast__descriptor { display: none; }
  .col-margin { grid-column: 1 / span 3; }
  .col-body { grid-column: 4 / -1; }
  .entry__result { grid-column: 5 / -1; }
}
@media (max-width: 820px) {
  :root { --mast-h: 48px; }
  .mast { grid-template-columns: auto 1fr auto; gap: 12px; }
  .mast__nav { display: none; }
  .hero__grid, .entry__head, .entry__body, .grid, .artists li { display: block; }
  .hero__aside { margin-bottom: 24px; }
  .hero__aside .live { margin-top: 18px; }
  .lede { max-width: none; }
  .entry__id { margin-bottom: 14px; }
  .entry__margin { margin-bottom: 18px; }
  .col-margin { margin-bottom: 24px; }
  .pull { max-width: none; }
  .artists .a-name { margin-bottom: 4px; }
  .artists .a-role { margin-bottom: 8px; }
  .frame img { height: 40vh; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .props div { grid-template-columns: 1fr; gap: 6px; }
  .row-preview { display: none; }
}
