/* ═══════════════════════════════════════════════════════════════
   THE MAD ARHAT
   Built on 幽墨 Yōu Mò (Ghost Ink).

   The novel is not narrated. It is *assembled* — from a livestream
   caption track, a comment section, a trademark dossier, a fire
   brigade incident report, a compilation of fifty phone videos.
   So the page is a file: exhibits, a record, and one fragment
   reproduced in full.

   The page is monochrome by the system's own law (墨分五色，夜分十色)
   — and that turns out to be the novel's own image. A grey city,
   at night, with one warm thing in it. The only colour anywhere on
   this page is the cover, which is the man in the yellow jacket.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────────────── */

.ar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 120px clamp(20px, 5vw, 56px) 200px;
}
@media (max-width: 900px) {
  .ar-hero { grid-template-columns: 1fr; padding-bottom: 180px; }
  .ar-plate { max-width: 13rem; margin: 0 auto; }
}

.ar-title { margin: 0 0 18px; }

.ar-title__glyph {
  display: block;
  font-family: var(--ym-font-brush);
  font-size: clamp(76px, 12vw, 148px);
  line-height: .92;
  color: var(--ym1);
  letter-spacing: .06em;
  text-shadow: 0 0 60px rgba(244, 242, 236, .12);
}

.ar-title__en {
  display: block;
  font-family: var(--ym-font-brush);
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.15;
  color: var(--ym2);
  letter-spacing: .02em;
  margin-top: 6px;
}

.ar-hero .ym-hero-lede { max-width: 46ch; margin-left: 0; }
.ar-hero .ym-hero-actions { justify-content: flex-start; }

.ar-plate { margin: 0; }
.ar-plate img {
  display: block;
  width: 100%;
  /* the width/height ATTRIBUTES on <img> are definite, which makes
     the browser ignore aspect-ratio entirely and hand object-fit a
     tall box to crop into. height:auto gives the ratio back. */
  height: auto;
  max-width: 17rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--ym-border-strong);
  box-shadow: 0 0 0 1px var(--ym-bg), 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.ar-plate figcaption {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ym5);
}

/* ─── Section furniture ────────────────────────────────────── */

.ar-sec-en {
  display: block;
  font-family: var(--ym-font-serif);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ym5);
  margin-top: 10px;
}

/* ─── A document ───────────────────────────────────────────── */

.ar-doc {
  position: relative;
  border: 1px solid var(--ym-border);
  background: linear-gradient(180deg, var(--ym-card), var(--ym-bg-alt));
  padding: clamp(20px, 3.4vw, 38px);
}
/* the corner cut of a filed document */
.ar-doc::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--ym-bg) transparent transparent;
}

.ar-doc__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ym-border);
  margin-bottom: 20px;
}
.ar-doc__tag {
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ym3);
}
.ar-doc__src {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ym5);
}

.ar-doc__note {
  font-size: 12.5px;
  line-height: 1.9;
  font-style: italic;
  color: var(--ym5);
  max-width: 76ch;
  margin-bottom: 30px;
}

.ar-doc__foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--ym-border);
  text-align: right;
}
.ar-more {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ym3);
  text-decoration: none;
  transition: color .25s ease;
}
.ar-more:hover { color: var(--ym1); }

/* ─── The transcript ───────────────────────────────────────── */

.ar-clip { list-style: none; margin: 0; padding: 0; }
.ar-clip__loading {
  color: var(--ym5);
  font-size: 13px;
  padding: 20px 0;
}

.ar-clip__line {
  display: grid;
  grid-template-columns: 4.4rem 6.6rem minmax(0, 1fr);
  gap: 0 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ym-border);
}
.ar-clip__line:last-child { border-bottom: 0; }

.ar-clip__t {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ym6);
  padding-top: 3px;
}
.ar-clip__kind {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ym6);
  padding-top: 4px;
}
.ar-clip__body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ym4);
}

/* stage directions — the camera, not the people */
.ar-clip__line--direction .ar-clip__body {
  font-style: italic;
  color: var(--ym5);
}
.ar-clip__line--direction .ar-clip__kind { color: transparent; }

/* captions — the poster's own voice, quieter than events */
.ar-clip__line--caption .ar-clip__body { color: var(--ym2); }
.ar-clip__line--caption .ar-clip__kind { color: var(--ym4); }

/* on-screen text */
.ar-clip__line--onscreen .ar-clip__body { color: var(--ym1); letter-spacing: .04em; }
.ar-clip__line--onscreen .ar-clip__kind { color: var(--ym3); }

/* the comment section — eleven people watching */
.ar-clip__line--chat { background: rgba(255, 255, 255, .012); }
.ar-clip__line--chat .ar-clip__kind { color: var(--ym7); text-shadow: 0 0 0 var(--ym5); }
.ar-clip__line--chat .ar-clip__body {
  color: var(--ym3);
  font-size: 12.5px;
  border-left: 1px solid var(--ym-border-strong);
  padding-left: 14px;
  margin-left: -14px;
}

@media (max-width: 640px) {
  .ar-clip__line { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0 12px; }
  .ar-clip__kind { grid-column: 2; padding: 2px 0 4px; }
  .ar-clip__body { grid-column: 2; }
  .ar-clip__line--direction .ar-clip__kind { display: none; }
}

/* ─── Exhibits ledger ──────────────────────────────────────── */

.ar-ledger-head {
  margin: 76px 0 22px;
  padding-top: 26px;
  border-top: 1px solid var(--ym-border);
}
.ar-ledger-head .ym-sec-label { margin-bottom: 0; }

.ar-ledger-link {
  color: var(--ym3);
  text-decoration: none;
  transition: color .25s ease;
}
.ar-ledger-link:hover { color: var(--ym1); }

/* ─── The monk ─────────────────────────────────────────────── */

.ar-monk {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 940px) { .ar-monk { grid-template-columns: 1fr; } }

.ar-quote-en {
  font-style: italic;
  color: var(--ym4);
  max-width: 44ch;
  margin-top: 18px !important;
}

.ar-prose p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ym4);
  margin-bottom: 22px;
  max-width: 62ch;
}
.ar-prose strong { color: var(--ym2); font-weight: 500; }
.ar-prose em { font-style: italic; }

.ar-note { margin-top: 34px; }
.ar-note .ym-alert-msg { line-height: 1.95; }
.ar-note em { font-style: italic; color: var(--ym2); }
.ar-note strong { color: var(--ym1); font-weight: 500; }

