/* ═══════════════════════════════════════════════════════════════
   A BOOK TO BURN, CONTINUED — the drawer and the margin.
   續焚書 · the same desk as Carp City, seen from the other side.

   Where Carp City's page is the proof — the honest version struck
   through — this one is the drawer it was filed in: the morgue
   folder of drafts stamped by date, and the sentence that arrived
   in a hand that could not have written it. The colour comes from
   the Paper & Ink system the volume vendors; what the page adds
   is graphite, incense smoke, and one red pen.

   House rule: this page carries the colour, the prose does not.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ab-pencil:      #8a8378;
  --ab-smoke:       #a89f92;
  --ab-red:         #b3342e;   /* the red pen — the same one, in the same cup */
  --ab-rule:        var(--pap-border);
  --ab-sheet:       var(--pap-surface-card);
}

/* ─── nav ─────────────────────────────────────────────────────
   Paper's .pap-nav__brand-mark is a wood-green diamond with no colour
   set, so the seal glyph inherits --pap-fg — near-black on sage in
   light mode (legible), but cream on green in dark mode at 1.99:1,
   which is a seal nobody can read. The volume's own pigment is the
   red pen, and the stamp takes it: red ground, pale paste. */
.pap-nav__brand-mark {
  display: grid;
  place-items: center;
  background: var(--ab-red);
  color: #f6f3ea;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 1.05rem;
  line-height: 1;
}

/* ─── hero ──────────────────────────────────────────────────── */

.ab-hero {
  padding: calc(3.5rem + clamp(3rem, 8vw, 5.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
}

.ab-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.ab-hero__text { min-width: 0; }

.ab-badge { margin-bottom: 1.4rem; }

.ab-hero__title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .4rem;
}

.ab-hero__zh {
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--ab-pencil);
  margin: 0 0 1.1rem;
  line-height: 1.2;
}

.ab-hero__motto {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--pap-muted);
  margin: 0 0 1.6rem;
  max-width: 42ch;
}
.ab-hero__motto [lang="zh-Hans"] {
  font-style: normal;
  font-family: "Noto Serif SC", serif;
}

.ab-hero__lede {
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 0 1.6rem;
}

.ab-facts {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ab-rule);
  border-bottom: 1px solid var(--ab-rule);
  max-width: 32rem;
}
.ab-facts li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .3rem 0;
  font-size: .92rem;
}
.ab-facts__k {
  color: var(--pap-muted);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-top: .18em;
}
.ab-facts__v [lang="zh-Hans"] { font-family: "Noto Serif SC", serif; }
.ab-facts__v a { color: inherit; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.ab-facts__v a:hover { color: var(--ab-red); }

.ab-take { display: flex; flex-wrap: wrap; gap: .6rem; }

.ab-hero__plate { padding-top: .4rem; }

.ab-plate {
  position: relative;
  width: clamp(13rem, 24vw, 17rem);
  box-shadow: var(--pap-shadow-lg);
}
.ab-plate img {
  display: block;
  width: 100%;
  height: auto;
}
.ab-plate__seal {
  position: absolute;
  bottom: .8rem;
  right: .8rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: var(--ab-red);
  color: #f7f0dc;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 1.3rem;
  border-radius: 3px 5px 4px 5px;
  transform: rotate(3deg);
}

/* ─── shared section furniture ──────────────────────────────── */

.ab-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.ab-sec-head { margin-bottom: 2.2rem; }

.ab-h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: .6rem 0 .5rem;
}

.ab-h2__sub {
  color: var(--pap-muted);
  max-width: 60ch;
  margin: 0;
  line-height: 1.6;
}
.ab-h2__sub [lang="zh-Hans"] { font-family: "Noto Serif SC", serif; }

/* ─── the sentence — found, not written ─────────────────────── */

.ab-found {
  max-width: 44rem;
  position: relative;
  border-left: 3px solid var(--ab-red);
  padding: .4rem 0 .4rem clamp(1.4rem, 4vw, 2.4rem);
}

.ab-found__quote {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  line-height: 1.45;
  margin: 0 0 1.2rem;
  max-width: 34ch;
  text-wrap: balance;
}

.ab-found__note {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--pap-muted);
  max-width: 56ch;
  margin: 0;
}

.ab-found__stamp {
  position: absolute;
  top: -.6rem;
  right: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ab-red);
  color: var(--ab-red);
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 1.35rem;
  border-radius: 3px 5px 4px 5px;
  transform: rotate(-3deg);
  opacity: .85;
}

/* ─── the drawer — the morgue folder, opened ────────────────── */

.ab-drawer {
  max-width: 52rem;
  background: var(--ab-sheet);
  border: 1px solid var(--ab-rule);
  box-shadow: var(--pap-shadow);
  position: relative;
}

/* the folder's tab */
.ab-drawer__tab {
  position: absolute;
  top: -1.55rem;
  left: 1.6rem;
  background: var(--ab-sheet);
  border: 1px solid var(--ab-rule);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: .3rem 1.1rem .5rem;
}
.ab-drawer__tab span {
  font-family: "Inter", sans-serif;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ab-pencil);
}

.ab-drawer__list {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
}

/* build-emitted rows (staticize.py, night_row) */
.ab-drawer__list .night { border-bottom: 1px solid color-mix(in srgb, var(--ab-rule) 65%, transparent); }
.ab-drawer__list .night:last-child { border-bottom: none; }
.ab-drawer__list .night__link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: .62rem 1.4rem;
  text-decoration: none;
  color: var(--pap-fg);
}
.ab-drawer__list .night__link:hover { background: color-mix(in srgb, var(--pap-muted) 9%, transparent); }
.ab-drawer__list .night__no {
  font-size: .74rem;
  color: var(--ab-pencil);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ab-drawer__list .night__text {
  font-family: "EB Garamond", Georgia, serif;
  font-size: .99rem;
  line-height: 1.5;
}
.ab-drawer__list .night__words {
  font-size: .74rem;
  color: var(--pap-muted);
  font-variant-numeric: tabular-nums;
}

.ab-drawer__foot {
  font-size: .86rem;
  font-style: italic;
  color: var(--pap-muted);
  margin: 0;
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid var(--ab-rule);
}

/* ─── the desk — provenance ─────────────────────────────────── */

.ab-desk {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 62rem;
}

.ab-desk__left { min-width: 0; }

.ab-colophon { padding: 1.8rem 1.6rem; }
.ab-colophon p { margin: 0 0 .9rem; }
.ab-colophon p:last-child { margin-bottom: 0; }
.ab-colophon__zh {
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  line-height: 1.5;
}
.ab-colophon__py { font-style: italic; font-size: .92rem; opacity: .75; }
.ab-colophon__en { font-size: .98rem; line-height: 1.6; }
.ab-colophon__attr {
  font-size: .8rem;
  color: var(--pap-muted) !important;
  border-top: 1px solid var(--ab-rule);
  padding-top: .8rem;
}

.ab-desk__right p:first-child {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.4rem;
}

.ab-note {
  border-left: 2px solid var(--ab-smoke);
  padding-left: 1.1rem;
}
.ab-note p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--pap-muted);
  margin: 0 0 .9rem;
}
.ab-note p:last-child { margin-bottom: 0; }

/* ─── footer ────────────────────────────────────────────────── */

.ab-foot {
  border-top: 1px solid var(--ab-rule);
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.ab-foot__meta {
  font-size: .82rem;
  color: var(--pap-muted);
  margin: 0;
}

.ab-foot__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin: 0;
  padding: 0;
}

/* ─── small screens ─────────────────────────────────────────── */

@media (max-width: 880px) {
  .ab-hero__grid { grid-template-columns: 1fr; }
  .ab-hero__plate { order: -1; }
  .ab-plate { width: 11rem; }
  .ab-desk { grid-template-columns: 1fr; }
  .ab-drawer__list .night__link { grid-template-columns: 2.2rem minmax(0, 1fr) auto; padding: .6rem .9rem; }
  .ab-drawer__tab { left: .9rem; }
}
