@font-face { font-family: "Baskerville It"; src: url("fonts/LibreBaskerville-Italic.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: block; }
@font-face { font-family: "Instrument"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Mono"; src: url("fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Mono"; src: url("fonts/JetBrainsMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Serif TC"; src: url("fonts/NotoSerifTC-VF.ttf") format("truetype"); font-weight: 200 900; font-display: block; }
@font-face { font-family: "Sans TC"; src: url("fonts/NotoSansTC-VF.ttf") format("truetype"); font-weight: 100 900; font-display: block; }

:root {
  --paper: #f3eee4;
  --paper-2: #ece5d8;
  --ink: #2a2622;
  --ink-2: #4a443c;
  --muted: #8d8478;
  --faint: #d6cdbd;
  --accent: #b9603d;
  --mono: "Mono", ui-monospace, monospace;
  --serif-tc: "Serif TC", "Instrument", serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body { user-select: none; -webkit-user-select: none; }

#stage {
  position: absolute; left: 0; top: 0;
  width: 1440px; height: 900px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--paper);
}
#paper {
  position: absolute; inset: 0;
  background-color: var(--paper);
  pointer-events: none;
}
#paper::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255,252,245,0.55), rgba(255,252,245,0) 70%),
              radial-gradient(ellipse 120% 100% at 50% 50%, rgba(0,0,0,0) 60%, rgba(120,95,60,0.08) 100%);
}

/* ---------- shared ---------- */
.rule { position: absolute; left: 64px; right: 64px; height: 0; border-top: 1px solid var(--faint); }
.r0 { top: 64px; border-top-color: var(--ink-2); }
.r1 { top: 206px; }
.r2 { top: 414px; border-top-style: dashed; }
.r3 { top: 858px; }
.vrule { position: absolute; top: 444px; height: 392px; width: 0; border-left: 1px solid var(--faint); }
.v1 { left: 456px; }
.v2 { left: 962px; }

.sec-head {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap;
}
.sec-head .no { color: var(--muted); font-size: 10.5px; }
.sec-head .en { text-transform: lowercase; }
.sec-head .en b { color: var(--accent); font-weight: 400; }
.sec-head .zh { font-family: var(--serif-tc); font-size: 13px; color: var(--muted); letter-spacing: 0.12em; font-weight: 400; }
.sec-head .count { margin-left: auto; color: var(--muted); font-size: 10.5px; }

/* ---------- masthead ---------- */
.meta-row {
  position: absolute; top: 40px; left: 64px; right: 64px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-2); text-transform: lowercase;
}
.meta-row i { font-style: normal; color: var(--accent); }

.title {
  position: absolute; left: 58px; top: 80px; margin: 0;
  font-family: "Baskerville It", "Instrument", serif; font-weight: 400;
  font-size: 100px; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); white-space: nowrap;
}

.mast-zh { position: absolute; right: 64px; top: 104px; text-align: right; }
.zh-big { font-family: var(--serif-tc); font-weight: 500; font-size: 26px; letter-spacing: 0.32em; margin-right: -0.32em; color: var(--ink); }
.mast-zh p { margin: 10px 0 0; font-family: var(--serif-tc); font-size: 13px; line-height: 1.8; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- pins ---------- */
.pins-label { position: absolute; left: 64px; top: 232px; }
.hint { margin: 14px 0 0; font-family: var(--mono); font-size: 10.5px; line-height: 1.8; color: var(--muted); letter-spacing: 0.04em; }
.hint span { font-family: var(--serif-tc); letter-spacing: 0.1em; font-size: 11.5px; }

#slots { position: absolute; inset: 0; pointer-events: none; }
.slot {
  position: absolute; top: 382px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted);
  white-space: nowrap; text-align: center;
}
.slot .zh { font-family: var(--serif-tc); font-size: 11px; letter-spacing: 0.1em; margin-left: 6px; color: var(--ink-2); }
.slot::before {
  content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 5px; background: var(--faint);
}

#pins { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.pin {
  position: absolute; left: 0; top: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}
.pin img { display: block; width: 100%; height: 100%; pointer-events: none; }
.tack {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  margin: -5.5px 0 0 -5.5px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.75) 0 1.5px, rgba(255,255,255,0) 3px), var(--c, #b9603d);
}

/* ---------- columns ---------- */
.col { position: absolute; }
.col-a  { left: 64px;   top: 446px; width: 360px; }
.col-a2 { left: 64px;   top: 640px; width: 360px; }
.col-b  { left: 496px;  top: 446px; width: 430px; }
.col-b2 { left: 496px;  top: 600px; width: 430px; }
.col-c  { left: 1002px; top: 446px; width: 374px; }

.list { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: it; }
.list li {
  counter-increment: it;
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0 10px; border-bottom: 1px dotted var(--faint);
}
.list li::before {
  content: counter(it, decimal-leading-zero);
  font-family: var(--mono); font-size: 10px; color: var(--muted); width: 16px; flex: none;
}
.list .txt { font-family: var(--serif-tc); font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: 0.04em; white-space: nowrap; }
.list .tag { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }

.obs { list-style: none; margin: 20px 0 0; padding: 0; }
.obs li {
  font-family: var(--serif-tc); font-weight: 400; font-size: 21px; line-height: 1.5; letter-spacing: 0.06em;
  color: var(--ink); margin-bottom: 8px;
}
.obs .dash { font-family: "Instrument", serif; color: var(--accent); margin-right: 12px; }

.books { display: flex; gap: 16px; margin-top: 20px; }
.book { margin: 0; width: 95px; }
.book img {
  display: block; width: 95px; height: 153px; object-fit: cover;
  border-radius: 1px 3px 3px 1px;
  box-shadow: 0 1px 1px rgba(60,40,20,0.12), 0 6px 14px -6px rgba(60,40,20,0.35), inset 0 0 0 1px rgba(0,0,0,0.04);
}
.book figcaption {
  margin-top: 10px; font-family: var(--serif-tc); font-size: 11.5px; color: var(--ink-2);
  letter-spacing: 0.06em; text-align: center; white-space: nowrap;
}

.clip {
  position: absolute; margin: 0; width: 200px;
  background: #fbf8f1; padding: 8px 8px 0;
  box-shadow: 0 1px 2px rgba(60,40,20,0.12), 0 10px 22px -12px rgba(60,40,20,0.4);
}
.clip img { display: block; width: 184px; height: 137px; object-fit: cover; }
.clip figcaption {
  font-family: var(--serif-tc); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-2);
  padding: 9px 2px 11px; white-space: nowrap;
}
.clip-1 { left: 1006px; top: 488px; }
.clip-2 { left: 1174px; top: 646px; }
.tape {
  position: absolute; left: 50%; top: -11px; width: 74px; height: 22px; margin-left: -37px;
  background: rgba(226, 214, 186, 0.72);
  box-shadow: 0 0 0 0.5px rgba(150,130,90,0.15);
  transform: rotate(-3deg);
}
.clip-2 .tape { transform: rotate(4deg); background: rgba(205, 190, 168, 0.65); }

/* ---------- footer ---------- */
.foot {
  position: absolute; left: 64px; right: 64px; top: 868px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted);
}
.foot i.zh { font-style: normal; font-family: var(--serif-tc); letter-spacing: 0.12em; color: var(--ink-2); }

/* ---------- custom cursor ---------- */
html, body, body * { cursor: none !important; }
#cursor {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 10px; height: 10px; border-radius: 999px;
  background: #1c1a17; color: #f6f1e6;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0; overflow: hidden; white-space: nowrap;
  font: 500 13px "Sans TC", "Inter", sans-serif; letter-spacing: 0.06em;
  pointer-events: none; opacity: 0;
  transform-origin: 5px 50%;
  box-shadow: 0 0 0 1px rgba(250,245,235,0.55), 0 4px 14px -6px rgba(30,20,10,0.45);
  will-change: transform, width, height;
}
#cursor .cur-txt { display: inline-block; line-height: 1; margin-left: 14px; flex: none; }
#cursor .cur-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 3px; background: #f6f1e6; border-radius: 1px; flex: none; }
