/* ═══════════════════════════════════════════════════════════════
   CITY OF SOULS — THE FATHER
   Built on Mono (单色).

   The telling is a shift log: a man whose language is work, who
   tests what he loves by tapping it, and who has walked past a
   closed door ten times a day for a year without knocking. So the
   page is the log — hairlines, square corners, tabular figures,
   no hue. The subject is a man keeping himself together the way
   he keeps a warehouse; the page has no sentiment in it at all.

   The log is not decoration. It IS the table of contents: the
   same seventeen days as the other three volumes — one story,
   four tellings.

   Element: Ink 黑 — the volume's colour on the shelf.
   ═══════════════════════════════════════════════════════════════ */

/* ─── 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. Same fix as the Yellow Immortal's. */
.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 ─────────────────────────────────────────────────── */

.fw-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 3.5rem; }

.fw-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.fw-hero__text { min-width: 0; }
@media (max-width: 880px) {
  .fw-hero__grid { grid-template-columns: 1fr; }
  .fw-plate { order: -1; max-width: 15rem; }
}

.fw-hero__title {
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1.3rem;
  text-wrap: balance;
}

.fw-hero__lede {
  font-family: "Archivo", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 2rem;
}

/* facts, as a specification sheet */
.fw-facts {
  margin: 0 0 2.2rem;
  border-top: 1px solid var(--mo-border);
  max-width: 46ch;
}
.fw-facts__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--mo-border);
}
.fw-facts__row dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-top: .2rem;
  opacity: .62;
}
.fw-facts__row dd {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: .92rem;
  line-height: 1.55;
}

/* format actions */
.fw-take { display: flex; flex-wrap: wrap; gap: .7rem; }
.fw-take .mo-btn { display: inline-flex; align-items: center; gap: .5rem; }
.fw-take .fmt {
  font-family: "IBM Plex Mono", monospace;
  font-size: .6rem;
  letter-spacing: .14em;
  opacity: .62;
}

/* the cover plate */
.fw-plate {
  margin: 0;
  border: 1px solid var(--mo-border);
  padding: .55rem;
  background: var(--mo-surface);
}
.fw-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;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.fw-plate figcaption {
  padding: .55rem .2rem .1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
  text-align: center;
}

/* ─── Section headings ─────────────────────────────────────── */

.fw-h2 {
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -.018em;
  margin: 0 0 .7rem;
}
.fw-h2__soft { opacity: .45; font-weight: 500; }
.fw-h2__sub {
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  opacity: .68;
  max-width: 46ch;
  margin: 0;
}

.fw-hr {
  border: 0;
  height: 1px;
  background: var(--mo-border);
  margin: 0;
}

/* ─── Day One ──────────────────────────────────────────────── */

.fw-dayone {
  max-width: 44rem;
  margin: 0 auto;
}
.fw-dayone__kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
  margin: 0 0 1.2rem;
}
.fw-dayone__quote {
  margin: 0 0 1.8rem;
  padding: 0;
  border: 0;
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -.015em;
}
.fw-dayone__body p {
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.05rem;
}
.fw-dayone__src {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mo-border);
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
}

/* ─── The shift log ────────────────────────────────────────── */

.fw-loghead { margin-bottom: 2.2rem; }

.fw-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--mo-ink);
}

.entry {
  border-bottom: 1px solid var(--mo-border);
}
.entry:last-child { border-bottom: 0; }

.entry__link {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  column-gap: 1.1rem;
  row-gap: .22rem;
  align-items: baseline;
  padding: .8rem .6rem;
  margin: 0 -.6rem;
  text-decoration: none;
  transition: background-color .15s ease;
}
.entry__link:hover { background: color-mix(in srgb, var(--mo-ink) 5%, transparent); }

.entry__no {
  grid-area: 1 / 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  opacity: .55;
}
.entry__link:hover .entry__no { opacity: 1; }

.entry__title {
  grid-area: 1 / 2;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .1em;
}

.entry__words {
  grid-area: 1 / 3;
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  opacity: .55;
  white-space: nowrap;
  justify-self: end;
}

.entry__open {
  grid-area: 2 / 2 / 3 / 4;
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-size: .9rem;
  line-height: 1.55;
  opacity: .72;
}

@media (max-width: 560px) {
  .entry__link { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
}

.fw-log__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem .6rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .62;
}
.fw-log__total-n {
  font-size: .88rem;
  letter-spacing: .06em;
  opacity: 1;
  font-variant-numeric: tabular-nums;
}

/* ─── The hands ────────────────────────────────────────────── */

.fw-hands {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .fw-hands { grid-template-columns: 1fr; } }

.fw-figures {
  border-top: 2px solid var(--mo-ink);
  margin-top: 1.2rem;
}
.fw-figures__row {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid var(--mo-border);
}
.fw-figures__n {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fw-figures__label {
  font-family: "Archivo", sans-serif;
  font-size: .85rem;
  line-height: 1.55;
  opacity: .72;
}

.fw-hands__right p {
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-size: .98rem;
  line-height: 1.78;
  margin: 0 0 1.1rem;
}
.fw-hands__right strong { font-weight: 600; }

.fw-note {
  margin-top: 1.8rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--mo-border);
}
.fw-note p {
  font-family: "Archivo", sans-serif;
  font-size: .86rem;
  line-height: 1.7;
  margin: 0 0 .9rem;
}
.fw-note p:last-child { margin-bottom: 0; }
.fw-note strong { font-weight: 600; }

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

.fw-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (max-width: 720px) { .fw-foot { grid-template-columns: 1fr; } }
.fw-foot__name {
  font-family: "Archivo", "Noto Serif SC", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 .4rem;
}
.fw-foot__col { min-width: 0; }
.fw-foot__links { list-style: none; margin: 0; padding: 0; }
.fw-foot__links li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  .entry__link { transition: none; }
}

/* grid children: the parent's grid positions them; min-width:0 keeps a
   long word from forcing the column wider than its share. */
.fw-hands__left { min-width: 0; }
