/* 随轩 · a topic or a series as a room
   The hero is the room's own (the same one its articles wear); below it the key pieces and every post,
   with headings in the room's voice. */

.rx__body { width: min(1240px, calc(100% - 64px)); margin: 90px auto 0; }
.rx__sec + .rx__sec { margin-top: 90px; }
.rx__sec h2, .rx__more h2 { font-family: var(--f-serif); font-weight: 900; font-size: 30px; line-height: 1.3; letter-spacing: .04em; color: var(--ink); }
.rx__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-bottom: 28px; }
.rx__h p { font-size: 14px; color: var(--muted); }
.rx__ord { display: flex; gap: 4px; margin-left: auto; }
.rx__ord a { padding: 4px 12px; font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 16px; }
.rx__ord a[aria-current="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.rx__best h2 { margin-bottom: 28px; }
.rx__mw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 26px; }
.rx__mw .card--wide { grid-column: span 2; }
.rx__mw .card--wide .card__img { aspect-ratio: 16 / 7; }
.rx__order { display: grid; gap: 0; counter-reset: o; border-top: 2px solid var(--ink); }
.rx__order li a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.rx__no { font-family: var(--f-serif); font-weight: 900; font-size: 40px; line-height: 1; color: var(--acc); font-variant-numeric: tabular-nums; }
.rx__ot { display: grid; gap: 4px; }
.rx__ot b { font-family: var(--f-serif); font-size: 20px; line-height: 1.5; }
.rx__ot small { font-size: 13px; color: var(--muted); }
.rx__ot em { font-style: normal; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.rx__order a:hover b { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 5px; }
.rx__more { margin-top: 90px; padding-top: 30px; border-top: 1px solid var(--line); }
.rx__more h2 { font-size: 18px; margin-bottom: 14px; }
.rx__more > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rx .pg { margin-top: 44px; }

/* each room's voice */
.w-phil .rx__sec h2 { font-family: var(--f-brush); font-weight: 400; font-size: 44px; color: var(--ink); }
.w-hps .rx__body { color: var(--ink); }
.w-hps .rx__sec h2, .w-hps .rx__more h2 { color: #F1E7D2; }
.w-hps .rx__no { color: #E2C98F; font-family: "EB Garamond", var(--f-serif); font-style: italic; }
.w-hps .rx__order { border-top-color: #E2C98F; }
.w-cult .rx__sec h2 { display: inline-block; padding: 2px 14px; font-family: var(--f-poster); font-weight: 400; font-size: 38px; background: #FFD23F; color: #141414; box-shadow: 5px 5px 0 #141414; transform: rotate(-1deg); }
.w-cult .rx__no { color: #D7352A; font-family: var(--f-poster); font-weight: 400; }
.w-ai .rx__sec h2 { padding-left: 14px; border-left: 6px solid #1F5FE0; font-family: var(--f-ui); font-weight: 900; }
.w-ai .rx__no { color: #1F5FE0; font-family: var(--f-mono); font-weight: 600; font-size: 30px; }
.w-web3 .rx__sec h2, .w-web3 .rx__more h2 { font-family: var(--f-pixel); font-weight: 400; font-size: 26px; color: #FFA300; text-shadow: 3px 3px 0 #000000; }
.w-web3 .rx__no { font-family: var(--f-pixel); font-weight: 400; color: #29ADFF; }
.w-web3 .rx__order { border-top-color: #FFF1E8; }
.w-teach .rx__sec h2 { font-family: var(--f-hand); font-weight: 400; font-size: 44px; color: #24453A; }
.w-life .rx__sec h2 { font-family: var(--f-kuai); font-weight: 400; font-size: 34px; }
.w-life .rx__no { font-family: var(--f-hand); font-weight: 400; color: var(--acc); }
.w-site .rx__body { padding: 24px; background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .rx__sec h2, .w-site .rx__more h2 { font-family: var(--f-pixel); font-weight: 400; font-size: 22px; color: #000080; }

@container yh (max-width: 980px) {
  .rx__mw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container yh (max-width: 760px) {
  .rx__body { width: calc(100% - 32px); margin-top: 56px; }
  .rx__mw { grid-template-columns: minmax(0, 1fr); }
  .rx__mw .card--wide { grid-column: auto; }
  .rx__order li a { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .rx__no { font-size: 30px; }
  .rx__sec h2 { font-size: 24px; }
  .w-phil .rx__sec h2, .w-teach .rx__sec h2 { font-size: 34px; }
}

/* a topic read by period */
.rx__era { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.rx__era a { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 16px; }
.rx__era small { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .85; }
.rx__era a:hover { color: var(--ink); border-color: currentColor; }
.rx__era a[aria-current="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
@container yh (max-width: 760px) { .rx__era { margin-left: 0; } }
