/* ═══════════════════════════════════════════════════════════════
   THE YELLOW IMMORTAL
   Built on Mono (单色) — hairline, square, industrial, typographic.

   The novel's governing fact is the heating system: not a service but
   a circulatory system, one boiler, one artery, eleven thousand
   households drinking from the same heart. So the contents are
   rendered as a RISER — a single vertical pipe with twenty-two rooms
   hanging off it. The structure of the book is the structure of the
   building.

   Colour: Mono is grayscale by definition, and this page keeps that
   discipline for every structural element. One accent is admitted —
   the yellow of the weasel, the single warm thing in the book — and
   it is used only where the animal itself would be: on hover, and at
   the seal.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --hg-yellow: #c8901a;
  --hg-riser: var(--mo-border);
}

/* ─── Nav ──────────────────────────────────────────────────────
   Mono's own template leaves .mo-nav__brand-mark an EMPTY decorative
   square: it sets `background: var(--mo-ink)` and no colour at all. Put
   a glyph in it without setting one and the glyph inherits --mo-fg, which
   is the same value as its own background — invisible in light mode, and
   a white square with white text in dark. The mark is inverted ink, so
   the glyph has to invert with it. */
.mo-nav__brand-mark {
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", "Noto Serif CJK SC", serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--mo-bg);
}

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

.hg-hero {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .hg-hero { grid-template-columns: 1fr; }
  .hg-plate { max-width: 15rem; order: -1; }
}

.hg-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--mo-ink);
  margin: .9rem 0 1.1rem;
  text-wrap: balance;
}

.hg-lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: var(--mo-text-muted, var(--mo-ash));
  max-width: 48ch;
  margin: 0 0 2rem;
}

/* a specification table, not a marketing list */
.hg-facts {
  margin: 0 0 2.2rem;
  border-top: 1px solid var(--mo-border);
  max-width: 40rem;
}
.hg-facts > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--mo-border);
}
.hg-facts dt {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mo-ash);
  padding-top: .3rem;
}
.hg-facts dd {
  margin: 0;
  font-size: .95rem;
  color: var(--mo-ink);
  font-variant-numeric: tabular-nums;
}

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

.hg-plate {
  margin: 0;
  border: 1px solid var(--mo-border);
  padding: .5rem;
  background: var(--mo-surface);
}
.hg-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;
}

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

.hg-riser-section { border-top: 1px solid var(--mo-border); }

.hg-head { margin-bottom: 2.6rem; max-width: 46rem; }
.hg-h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.15;
  color: var(--mo-ink);
  margin: .7rem 0 .9rem;
}
.hg-head__note {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--mo-ash);
  margin: 0;
  max-width: 60ch;
}

/* ─── The riser ────────────────────────────────────────────── */

.riser {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* the pipe. Sits at x=3px, which is the centre of a 7px joint. */
.riser::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: var(--hg-riser);
}

.entry { position: relative; padding-left: 2.6rem; }

/* a joint on the pipe — square, because Mono has no rounded corners */
.entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.62rem;
  width: 7px;
  height: 7px;
  background: var(--mo-bg);
  border: 1px solid var(--mo-border-strong);
  transition: background-color .25s ease, border-color .25s ease,
              box-shadow .25s ease;
}

.entry__link {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  grid-template-areas:
    "no title words"
    ".  open  open";
  gap: .25rem 1.1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}
.entry__no {
  grid-area: no;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--mo-ash);
  font-variant-numeric: tabular-nums;
  padding-top: .35rem;
  transition: color .2s ease;
}
.entry__title {
  grid-area: title;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--mo-ink);
  text-wrap: balance;
}
.entry__open {
  grid-area: open;
  font-size: .88rem;
  line-height: 1.62;
  color: var(--mo-ash);
  max-width: 64ch;
}
.entry__words {
  grid-area: words;
  font-size: .74rem;
  color: var(--mo-ash-soft, var(--mo-ash));
  font-variant-numeric: tabular-nums;
  padding-top: .3rem;
}

/* the only warmth on the page, and only on contact */
.entry__link:hover .entry__title { color: var(--hg-yellow); }
.entry:hover::before {
  background: var(--hg-yellow);
  border-color: var(--hg-yellow);
}

/* the run of the pipe past the last joint */
.entry:last-child .entry__link { padding-bottom: 1.4rem; }

@media (max-width: 620px) {
  .entry__link {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    grid-template-areas:
      "no title"
      ".  open"
      ".  words";
  }
  .entry__words { padding-top: .2rem; }
}

/* ─── The place ────────────────────────────────────────────── */

.hg-place { border-top: 1px solid var(--mo-border); }
.hg-place__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) { .hg-place__grid { grid-template-columns: 1fr; } }

.hg-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mo-text-muted, var(--mo-ash));
  max-width: 58ch;
  margin: 0;
}

.hg-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--mo-border);
  border: 1px solid var(--mo-border);
}
.hg-figures .mo-stat-block {
  background: var(--mo-bg);
  padding: 1.4rem 1.3rem;
}
.hg-figures .mo-stat__value {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 .35rem;
}
.hg-figures .mo-stat__label {
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mo-ash);
  line-height: 1.5;
  margin: 0;
}

/* ─── Footer ───────────────────────────────────────────────── */

.hg-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.4rem;
}
@media (max-width: 720px) { .hg-foot { grid-template-columns: 1fr; } }
.hg-foot__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--mo-ink);
  margin: 0 0 .4rem;
}
.hg-foot__links { list-style: none; margin: 0; padding: 0; }
.hg-foot__links li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  .entry::before, .entry__no { transition: none; }
}

