/* ═══════════════════════════════════════════════════════════════
   YOUNG RIVER — the household book.
   河 · grain on one column, boards on the other, and a column
   called misc. that was the largest in the book.

   Ink Line (墨韵) is the lane's own hand: Song serif, brush for
   the heads, cinnabar for the seal and the rule. The page is the
   household book opened — two columns at the top, ruled pages
   under them, and the cinnabar at the end, which comes back.

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

:root {
  --yr-red:  #b93a32;                     /* cinnabar — the seal, and the rule */
  --yr-rule: var(--ink-border);
  --yr-card: var(--ink-card);
}

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

.yr-hero { padding: clamp(4.5rem, 11vw, 7.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

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

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

.yr-tag {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 1.1rem;
}

.yr-title {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0 0 .4rem;
}

.yr-zh {
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--ink-muted);
  margin: 0 0 1.3rem;
  letter-spacing: .08em;
}

.yr-say {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0 0 1.6rem;
  max-width: 46ch;
  padding-left: 1rem;
  border-left: 2px solid var(--yr-red);
}

.yr-lede {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 1.8rem;
}

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

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

.yr-hero__plate { padding-top: .3rem; }

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

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

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

.yr-eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 .6rem;
}

.yr-head { margin-bottom: 2.2rem; }

.yr-h2 {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 .6rem;
}

.yr-head__note {
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0;
  line-height: 1.7;
  font-size: .98rem;
}

/* ─── the household book — two columns ──────────────────────── */

.yr-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 58rem;
  border: 1px solid var(--yr-rule);
  background: var(--yr-card);
}

.yr-column {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-right: 1px solid var(--yr-rule);
}
.yr-column--boards { border-right: none; }

.yr-column__head {
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1;
  margin: 0 0 .3rem;
  color: var(--yr-red);
}

.yr-column__sub {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--yr-rule);
}

.yr-column__body {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0;
}

.yr-columns__sting {
  max-width: 58rem;
  margin: 1.4rem 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  padding-left: 1rem;
  border-left: 2px solid var(--yr-red);
}
.yr-columns__sting em { font-style: italic; }

/* ─── chapters — ruled like a page of the book ──────────────── */

.yr-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--yr-rule);
  max-width: 60rem;
}

/* build-emitted rows (staticize.py, night_row) */
.yr-ledger .night { border-bottom: 1px solid var(--yr-rule); }

.yr-ledger .night__link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: clamp(.8rem, 2.5vw, 1.6rem);
  align-items: baseline;
  padding: .7rem .2rem;
  text-decoration: none;
  color: inherit;
}
.yr-ledger .night__link:hover { background: color-mix(in srgb, var(--ink-fg) 4%, transparent); }

.yr-ledger .night__no {
  font-size: .74rem;
  color: var(--yr-red);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.yr-ledger .night__text {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.yr-ledger .night__words {
  font-size: .72rem;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.yr-ledger__foot {
  max-width: 60rem;
  margin: 1.2rem 0 0;
  font-size: .9rem;
  font-style: italic;
  color: var(--ink-subtle);
}

/* ─── the cinnabar — provenance ─────────────────────────────── */

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

.yr-furnace__left { min-width: 0; }

.yr-plank { padding: 1.7rem 1.6rem; }
.yr-plank p { margin: 0 0 .9rem; }
.yr-plank p:last-child { margin-bottom: 0; }
.yr-plank__zh {
  font-family: "Noto Serif SC", serif;
  font-size: 1.3rem;
  line-height: 1.65;
}
.yr-plank__py {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-subtle);
  font-style: italic;
}
.yr-plank__say { font-size: .98rem; line-height: 1.65; }
.yr-plank__attr {
  font-size: .76rem;
  color: var(--ink-subtle) !important;
  border-top: 1px solid var(--yr-rule);
  padding-top: .8rem;
}

.yr-furnace__right p:first-child {
  font-size: 1.01rem;
  line-height: 1.75;
  margin: 0 0 1.4rem;
}

.yr-companion {
  border: 1px solid var(--yr-rule);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.yr-companion__title {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 .5rem !important;
}
.yr-companion p:last-child {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
}
.yr-companion a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-color: var(--yr-red);
}
.yr-companion a:hover { color: var(--yr-red); }

.yr-note { border-left: 2px solid var(--yr-rule); padding-left: 1.1rem; }
.yr-note p {
  font-size: .89rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 .9rem;
}
.yr-note p:last-child { margin-bottom: 0; }

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

@media (max-width: 880px) {
  .yr-hero__grid { grid-template-columns: 1fr; }
  .yr-hero__plate { order: -1; }
  .yr-plate { width: 11rem; }
  .yr-columns { grid-template-columns: 1fr; }
  .yr-column { border-right: none; }
  .yr-column--boards { border-top: 1px solid var(--yr-rule); }
  .yr-ledger .night__link { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .yr-furnace { grid-template-columns: 1fr; }
}
