/* ============================================================
   Zijiao (Daisy) Zheng — evidence page
   Single page, no JS, minimal decoration.
   ============================================================ */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #08080d;
  --bg-soft: #0c0c13;
  --card: #0e0e16;
  --ink: #eceef6;
  --muted: #9a9fb6;
  --dim: #7c8197;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .14);
  --blue: #7d94ff;
  --violet: #ae86ff;
  --gold: #f2c76e;
  --gold-deep: #d9a63c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --w: 1000px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* a single, very faint light from the top — the only decoration */
body::before {
  content: "";
  position: fixed;
  inset: -30vh 0 auto;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(125, 148, 255, .14), rgba(174, 134, 255, .06) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: 1;
}

/* ---------------- masthead ---------------- */

.masthead {
  padding: 76px 0 38px;
}

.masthead__inner {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.masthead__portrait {
  width: 132px;
  height: 165px;
  object-fit: cover;
  object-position: 50% 6%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  flex: none;
  filter: saturate(.95);
}

.masthead h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.7rem;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: -6px 0 0;
}

.masthead__meta {
  margin: 11px 0 0;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__note {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.62;
}

.masthead__note strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------------- jump nav ---------------- */

.jump {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 13, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.jump__inner {
  display: flex;
  gap: 30px;
  align-items: center;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jump__inner::-webkit-scrollbar { display: none; }

.jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: .86rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}

.jump a b {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 400;
  color: var(--dim);
  transition: color .18s;
}

.jump a:hover { color: var(--ink); }
.jump a:hover b { color: var(--violet); }

.jump__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  padding-left: 20px;
}

/* ---------------- sections ---------------- */

section {
  padding: 56px 0 6px;
  scroll-margin-top: 52px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0;
}

.sec-head span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--violet);
  flex: none;
}

.sec-head p {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.sec-head__link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.sec-head__link:hover { color: var(--violet); }

.lede {
  margin: 22px 0 0;
  max-width: 68ch;
  color: var(--muted);
}

/* ---------------- paper group ---------------- */

.group {
  margin: 38px 0 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.group em {
  font-style: normal;
  color: var(--dim);
  letter-spacing: .04em;
  text-transform: none;
  font-size: .7rem;
}

.entry {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.entry:last-child { border-bottom: 0; }

.entry__thumb {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s, transform .18s;
}

.entry__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 132;
  object-fit: cover;
  object-position: 50% 0;
}

.entry__thumb:hover {
  border-color: rgba(174, 134, 255, .7);
  transform: translateY(-2px);
}

.entry__body { min-width: 0; }

/* published DOI — the one gold element on the page */
.doi {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  padding: 4px 11px 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(242, 199, 110, .42);
  background: linear-gradient(180deg, rgba(242, 199, 110, .16), rgba(217, 166, 60, .05));
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .055em;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(242, 199, 110, .45);
  transition: border-color .18s, background .18s, color .18s, text-shadow .18s;
}

.doi span {
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 199, 110, .68);
  text-shadow: none;
  padding-right: 2px;
  border-right: 1px solid rgba(242, 199, 110, .28);
  line-height: 1;
  padding-block: 2px;
}

.doi:hover {
  border-color: rgba(242, 199, 110, .85);
  background: linear-gradient(180deg, rgba(242, 199, 110, .26), rgba(217, 166, 60, .10));
  color: #ffe1a3;
  text-shadow: 0 0 22px rgba(242, 199, 110, .7);
}

.entry h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.35;
}

.entry h3 a { text-decoration: none; }
.entry h3 a:hover { color: var(--violet); }

.entry__meta {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

.entry__meta i {
  font-style: normal;
  color: var(--violet);
}

.entry__desc {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .94rem;
  max-width: 62ch;
}

.entry__acts {
  margin: 13px 0 0;
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--mono);
  font-size: .71rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.entry__acts a {
  text-decoration: none;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}

.entry__acts a:hover {
  color: #fff;
  border-color: var(--violet);
}

/* ---------------- thumbnail grids ---------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 30px 0 0;
}

.tile {
  text-decoration: none;
  display: block;
}

.tile__frame {
  border: 1px solid var(--line-2);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s, transform .18s;
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 130;
  object-fit: cover;
  object-position: 50% 0;
}

.tile:hover .tile__frame {
  border-color: rgba(174, 134, 255, .7);
  transform: translateY(-2px);
}

.tile__cap {
  margin: 9px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}

.tile__cap em {
  font-style: normal;
  color: var(--dim);
  letter-spacing: .04em;
}

.tile:hover .tile__cap em { color: var(--violet); }

/* video tiles */
.tiles--video {
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 24px 18px;
}

.tile--video img {
  aspect-ratio: 16 / 9;
  object-position: 50% 50%;
  background: #111;
}

.tile--video .tile__cap {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  display: block;
  color: var(--muted);
  transition: color .18s;
}

.tile--video:hover .tile__cap { color: var(--ink); }

.tile__num {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--dim);
  margin-right: 7px;
}

/* closing cell of the video grid */
.tile--all .tile__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, rgba(125, 148, 255, .18), rgba(174, 134, 255, .10) 55%, rgba(255, 255, 255, .03));
  border-color: rgba(174, 134, 255, .32);
}
.tile--all:hover .tile__frame {
  border-color: rgba(174, 134, 255, .8);
  background: linear-gradient(150deg, rgba(125, 148, 255, .26), rgba(174, 134, 255, .16) 55%, rgba(255, 255, 255, .05));
}
.tile--all b {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  line-height: 2;
}
.tile--all em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
  line-height: 1.4;
}
.tile--all .tile__cap {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
  display: block;
  color: var(--dim);
}

/* playlist callout */
.playlist {
  margin: 26px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  text-decoration: none;
  font-size: .88rem;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(125, 148, 255, .09), rgba(174, 134, 255, .04));
  transition: border-color .18s, background .18s;
}

.playlist:hover {
  border-color: rgba(174, 134, 255, .65);
  background: linear-gradient(180deg, rgba(125, 148, 255, .16), rgba(174, 134, 255, .07));
}

.playlist b {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 400;
}

.playlist .arrow { color: var(--dim); }

/* ---------------- footer ---------------- */

footer {
  margin-top: 76px;
  padding: 26px 0 54px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------------- responsive ---------------- */

@media (max-width: 760px) {
  .masthead { padding: 46px 0 32px; }
  .masthead__inner { gap: 20px; }
  .masthead__portrait { width: 92px; height: 115px; }
  .masthead h1 { font-size: 1.95rem; }
  .masthead__note { font-size: .95rem; }

  .wrap { padding-inline: 20px; }
  .jump__inner { gap: 20px; height: 48px; }
  .jump__count { display: none; }

  section { padding-top: 48px; }
  .sec-head h2 { font-size: 1.6rem; }
  .sec-head p { display: none; }
  .group { flex-direction: column; gap: 2px; }

  .entry {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }
  .entry__desc { font-size: .9rem; }
  .doi { font-size: .72rem; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tiles--video { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .tile--video .tile__cap { font-size: .76rem; }

  footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 400px) {
  .masthead h1 { font-size: 1.7rem; }
  .entry { grid-template-columns: 68px minmax(0, 1fr); }
}
