/* Reading Room · At Master Lee's Table: an essay or a reader's question — prototype Q&A v1 (2026-10-20)
   The same paper, type and brush lettering as Your Month Ahead (v6). The essay opens on a dark band:
   title and subtitle in ivory, then the picture within the page, set across the edge where the dark
   meets the paper (owner, v6: v2's opening, with v3's type sizes and a quick picture). One column of reading
   with one modest pull quote, the saying, a close signed to the left, and More from the Table on the
   dark again.

   Type scale (owner, v4: one proportion for the whole page). Reading text 18px; then 20 (lede),
   24 (subtitle, saying), 28 (pull quote, section title); the title stands apart. Small type 14-16.
   Phones step everything down one notch. */

:root {
  --paper: #f3eee4;
  --ink: #1c1915;
  --text: #2b261f;
  --muted: #6f6556;
  --faint: #9b907f;
  --gold: #93743a;
  --gold-deep: #7a5c28;
  --gold-soft: #c6a764;
  --umber: #6b4f27;
  --red: #a3392b;
  --rule: rgba(84, 62, 30, .2);
  --brush-ink: #574d42;
  --night: #13110d;
  /* How far the picture reaches down past the dark band onto the paper. */
  --overlap: min(280px, 21vw);
  --ivory: #f4ede0;
  /* How far the picture reaches down past the dark band onto the paper. */
  --display: "Playfair Display", Georgia, serif;
  --letter: "Newsreader", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --cjk: "Noto Serif SC", "Songti SC", serif;
  --brush: "Ma Shan Zheng", "Kaiti SC", serif;
  --measure: 640px;
  --gutter: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 420 18px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 600px) { body { font-size: 17px; line-height: 1.76; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
b { color: var(--ink); font-weight: 520; }
.zh { color: var(--gold-deep); font: 500 .94em/1 var(--cjk); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Progress and bar ---------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 30; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, rgba(198, 167, 100, .4), var(--gold-soft)); transform-origin: 0 50%; transform: scaleX(0); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 26px clamp(20px, 4vw, 52px); }
.bar a { text-decoration: none; }
.bar__logo { position: relative; display: block; width: clamp(10.9rem, 14vw, 12.7rem); aspect-ratio: 5105 / 580; overflow: hidden; }
.bar__logo img { position: absolute; top: -7.586%; left: -6.875%; width: 107.326%; max-width: none; height: auto; }
.bar__link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; color: rgba(244, 237, 224, .82); font: 400 17px/1 var(--display); transition: color .2s; }
.bar__link:hover { color: var(--ivory); }
.top { background: linear-gradient(var(--night) calc(100% - var(--overlap)), var(--paper) calc(100% - var(--overlap))); -webkit-font-smoothing: antialiased; }
.more__back svg, .bar__link svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: transform .25s; }
.bar__link:hover svg, .more__back:hover svg { transform: translateX(-3px); }
@media (max-width: 600px) { .bar { padding: 22px 20px; } .bar__link { font-size: 15.5px; gap: 8px; } .bar__link svg { width: 16px; } }

/* The opening: on the dark band ---------------------------------------------------------------- */
.masthead { max-width: 900px; margin: 0 auto; padding: clamp(44px, 6vw, 84px) var(--gutter) 0; text-align: center; }
.masthead__series { margin: 0 0 26px; color: var(--gold-soft); font: 600 13.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.masthead__title { margin: 0; color: var(--ivory); font: 400 clamp(48px, 6.6vw, 88px)/1.02 var(--display); letter-spacing: -.012em; text-wrap: balance; }
/* The subtitle: the essay's promise in one sentence, large enough to be read as a second headline. */
/* The subtitle in the reading face (owner, Q&A v2): a serif title over a sans subtitle reads more
   easily, above all light on dark and on phones, where Playfair's fine strokes thin out. */
.masthead__dek { max-width: 31em; margin: 26px auto 0; color: rgba(244, 237, 224, .8); font: 400 clamp(18px, 1.55vw, 20px)/1.55 var(--sans); text-wrap: balance; }
@media (max-width: 600px) { .masthead__dek { font-size: 17px; } }
.dek-serif .masthead__dek { max-width: 23em; margin-top: 28px; font: 400 clamp(20px, 2.1vw, 26px)/1.45 var(--display); }
.masthead__by { display: flex; justify-content: center; align-items: center; gap: 11px; margin-top: 34px; color: rgba(244, 237, 224, .68); font: 400 16px/1.4 var(--sans); }
.masthead__by img { width: 24px; height: 24px; }
.masthead__by span { color: rgba(244, 237, 224, .4); }

/* The picture, within the page, across the edge of the dark --------------------------------------- */
.picture { position: relative; max-width: 1120px; margin: clamp(48px, 6vw, 76px) auto 0; padding: 0 clamp(0px, 3vw, 32px); }
/* The picture's place is filled at once by a tiny preview of it; the sharp picture fades in over it. */
.picture__box { display: block; background: #221d17 center / cover no-repeat; }
.picture img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (max-width: 900px) { .picture img { aspect-ratio: 4 / 3; } }
.js .picture img { opacity: 0; transition: opacity .8s ease; }
.js .picture img.is-loaded { opacity: 1; }
@media (min-width: 1184px), (max-width: 600px) { .picture { padding: 0; } }

/* The essay ------------------------------------------------------------------------------------ */
.essay { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: clamp(56px, 7vw, 92px) auto 0; padding: 0 var(--gutter); }
.essay > p + p, .essay > .pull + p { margin-top: 1.9em; }
/* The opening paragraph is set a step larger, the way a column opens. */
.lede { color: var(--ink); font-size: 20px; line-height: 1.7; }
@media (max-width: 600px) { .lede { font-size: 18.5px; } }

/* One pull quote, where the manuscript marks it: a sentence from the essay set a size up, held apart
   by space alone (owner, v4: no rules, no band). */
.pull { margin: 64px 0; }
/* A single quiet mark says "this sentence was lifted out": a large, pale gold opening quote. */
.pull::before { content: "“"; display: block; height: .5em; margin-bottom: 12px; color: var(--gold-soft); font: 400 64px/1 var(--display); text-align: center; opacity: .75; }
.pull p { max-width: 19em; margin: 0 auto; color: var(--ink); font: 400 clamp(24px, 2.3vw, 28px)/1.4 var(--display); text-align: center; text-wrap: balance; }
@media (max-width: 600px) { .pull { margin: 52px 0; } }

/* The close reads like the end of a letter, all on the left: the saying with its Chinese as a small
   red inscription before it, then the signature. */
.saying { display: flex; justify-content: flex-start; align-items: center; gap: 18px; margin: 84px 0 52px; }
.saying__en { margin: 0; }
.saying__en p { max-width: 17em; color: var(--ink); font: 400 clamp(21px, 2vw, 24px)/1.45 var(--display); text-wrap: balance; }
.saying__zh { order: -1; flex: none; color: #9a8e7d; font: 500 15px/1.1 var(--cjk); letter-spacing: .3em; writing-mode: vertical-rl; }
@media (max-width: 600px) { .saying { gap: 14px; } .saying__zh { font-size: 14px; } }
.signoff { display: grid; justify-items: start; }
.signoff__close { color: var(--muted); font: italic 400 17px/1.5 var(--display); }
.signoff__name { margin-top: 2px; color: #3e372f; font: 500 22px/1.3 var(--display); }
.signoff img { width: 34px; height: 34px; margin-top: 14px; }

/* More from the Table, on the dark: the page ends where it began. ------------------------------- */
.more { margin-top: clamp(110px, 12vw, 160px); padding: clamp(80px, 9vw, 112px) max(var(--gutter), calc((100% - 1120px) / 2)) clamp(96px, 10vw, 140px); background: var(--night); -webkit-font-smoothing: antialiased; }
.more__title { margin: 0 0 44px; color: var(--ivory); font: 500 clamp(24px, 2.3vw, 28px)/1.25 var(--display); text-align: center; }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.card { display: block; text-decoration: none; }
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-position: var(--focus, 50% 50%); object-fit: cover; transition: opacity .3s; }
.card:hover img { opacity: .88; }
.card__title { margin: 20px 0 8px; color: var(--ivory); font: 500 20px/1.32 var(--display); transition: color .2s; }
.card:hover .card__title { color: var(--gold-soft); }
.card__line { color: rgba(244, 237, 224, .62); font-size: 15.5px; line-height: 1.6; }
.more__back { display: flex; justify-content: center; align-items: center; gap: 10px; width: max-content; margin: 68px auto 0; color: rgba(244, 237, 224, .72); font: 400 16px/1 var(--display); text-decoration: none; transition: color .2s; }
.more__back:hover { color: var(--ivory); }
/* On phones the three pieces become a short list: picture left, words right. */
/* Tablets: the three pieces one above another, large. */
@media (max-width: 900px) and (min-width: 761px) { .more__grid { grid-template-columns: 1fr; gap: 56px; max-width: 620px; margin-inline: auto; } .card__title { font-size: 24px; } }
@media (max-width: 900px) { .card img { aspect-ratio: 4 / 3; } }
@media (max-width: 760px) {
  /* Phones: the three pieces one above another, each a full picture (owner: larger, never small squares). */
  .more__grid { grid-template-columns: 1fr; gap: 48px; }
  .card img { margin-inline: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); max-width: none; }
  .card__title { margin: 18px 0 6px; font-size: 22px; }
  .card__line { font-size: 16px; line-height: 1.55; }
}

/* The opening arrives: a fade with a 14px rise, the site's own motion, quick and in order. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes appear { from { opacity: 0; } }
.masthead > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.masthead__title { animation-delay: .06s; }
.masthead__dek { animation-delay: .12s; }
.masthead__by { animation-delay: .18s; }
/* As the reader goes down the page, each paragraph and part rises into place once (article.js). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .masthead > * { animation: none; } .js .picture img, .js .reveal { opacity: 1; transform: none; transition: none; } }

/* The series line never breaks inside a phrase; on phones the two phrases sit on two lines. */
.series__part { white-space: nowrap; }
.series__dot { margin: 0 .7em; opacity: .6; }
@media (max-width: 600px) { .masthead__series { display: flex; flex-direction: column; align-items: center; gap: 6px; } .series__dot { display: none; } }

/* A reader's question --------------------------------------------------------------------------- */
/* The letter sits on its own lighter paper and is set in the serif, so the reader's voice and Master
   Lee's reply read as two people; the signature closes it on the right, like a letter. */
.letter { position: relative; margin: 0 0 64px; padding: 40px 44px 36px; background: #fbf8f2; box-shadow: 0 0 0 1px rgba(84, 62, 30, .12), 0 18px 40px -30px rgba(60, 40, 10, .35); }
.letter__label { margin: 0 0 22px; color: var(--gold-deep); font: 600 12.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
/* The letter in Newsreader, a serif made for reading on screens: still a different voice from the
   reply in Inter, and easier over a long paragraph than Playfair (a face for titles). */
.letter p:not(.letter__label) { color: #2f2a23; font: 400 20px/1.62 var(--letter); }
.letter-playfair .letter p:not(.letter__label) { font: 400 19px/1.72 var(--display); }
.letter p + p { margin-top: 1em; }
.letter__salute { color: var(--ink) !important; font-style: italic !important; font-weight: 500 !important; }
.letter__close { display: grid; justify-items: end; margin-top: 1.4em !important; text-align: right; }
.letter__name { margin-top: 2px; color: var(--ink); font: italic 500 23px/1.3 var(--letter); }
.letter-playfair .letter__name { font: italic 400 22px/1.3 var(--display); }
@media (max-width: 600px) {
  .letter { margin-left: calc(-1 * var(--gutter) + 8px); margin-right: calc(-1 * var(--gutter) + 8px); padding: 30px 24px 28px; }
  .letter p:not(.letter__label) { font-size: 18.5px; line-height: 1.62; }
}
/* Master Lee's reply opens with the reader's name, a step larger than the text. */
.reply__salute { margin: 0 0 1.1em; color: var(--ink); font: 400 24px/1.3 var(--display); }
.essay > .reply__salute + p { margin-top: 0; }

/* A public piece ends with an invitation, on the night beneath the other open pieces. */
.invite { display: grid; justify-items: center; gap: 12px; max-width: 640px; margin: 72px auto 0; padding-top: 56px; border-top: 1px solid rgba(244, 237, 224, .14); text-align: center; }
.invite img { width: 30px; height: 30px; }
.invite__title { margin-top: 6px; color: var(--ivory); font: 400 clamp(24px, 2.4vw, 30px)/1.3 var(--display); text-wrap: balance; }
.invite__text { color: rgba(244, 237, 224, .64); font-size: 16.5px; line-height: 1.6; }
.invite__button { margin-top: 16px; padding: 17px 32px; background: var(--ivory); color: var(--ink); font: 500 13px/1 "Cinzel", Georgia, serif; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: background .2s; }
.invite__button:hover { background: #e6dcc4; }
@media (min-width: 761px) { .more:has(.invite) .more__grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; } }

/* Numbered steps, where a piece ends on something to do (owner, 2026-11-01, as in the Insights articles). */
.essay > .steps + p, .essay > p + .steps { margin-top: 1.9em; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li + li { margin-top: .9em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .12em; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--gold-soft); border-radius: 50%; color: var(--gold-deep); font: 500 13px/1 var(--sans); }

/* The open pieces only: the way to the reader's own month, under the signature (as the Insights articles' box). */
.month-box { margin: 64px 0 0; padding: 36px 36px 32px; background: rgba(255, 253, 249, .65); outline: 1px solid rgba(84, 62, 30, .14); outline-offset: -1px; text-align: center; }
.month-box__label { margin: 0 0 14px; color: var(--gold-deep); font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.month-box__title { max-width: 22em; margin: 0 auto; color: var(--ink); font: 500 clamp(22px, 2.1vw, 26px)/1.3 var(--display); text-wrap: balance; }
.month-box__text { max-width: 28em; margin: 12px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.month-box__form { display: flex; max-width: 400px; margin: 22px auto 0; }
.month-box__form label { flex: 1; min-width: 0; display: flex; }
.month-box__form input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid rgba(84, 62, 30, .32); border-right: 0; border-radius: 0; background: rgba(255, 253, 248, .8); color: var(--ink); font: 400 16px/1 var(--sans); }
.month-box__form input:focus { outline: 2px solid rgba(147, 116, 58, .5); outline-offset: -1px; }
.month-box__form button { height: 50px; padding: 0 24px; border: 0; border-radius: 0; background: var(--ink); color: #f5efe3; font: 400 17px/1 var(--display); cursor: pointer; transition: background .2s; }
.month-box__form button:hover { background: #3a332a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .month-box { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 32px var(--gutter) 28px; } }

/* More from Master Lee after a members' piece (owner, 2026-11-01): Personal Reports and the Blessing that fits the
   piece (site.mjs moreFrom, OFFER in room.mjs), drawn as the tiles on the Reading Room home (room.css), a little
   narrower than the picture above. */
.more-from { max-width: 880px; margin: clamp(88px, 10vw, 128px) auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.more-from__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.more-from + .more { margin-top: clamp(72px, 9vw, 120px); }
.more-from__label { display: flex; align-items: center; gap: 1rem; margin: 0 0 22px; color: var(--gold-deep); font: 500 13px/1.4 "Cinzel", Georgia, serif; letter-spacing: .16em; text-transform: uppercase; }
.more-from__label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.more-from__tile { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(200, 169, 99, .45); background: #0c0a08; color: #f6f3eb; text-decoration: none; }
.more-from__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.more-from__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, 0) 40%, rgba(10, 8, 6, .38) 66%, rgba(10, 8, 6, .8) 100%); }
.more-from__copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: grid; gap: 6px; padding: clamp(18px, 2.4vw, 28px); }
.more-from__name { display: flex; align-items: baseline; gap: .6rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); font: 400 clamp(24px, 2.3vw, 30px)/1.15 var(--display); letter-spacing: -.01em; }
.more-from__name span { color: #d4bb7f; font-size: .8em; transition: transform .35s; }
.more-from__line { max-width: 26em; color: rgba(246, 243, 235, .86); text-shadow: 0 1px 10px rgba(0, 0, 0, .45); font: 400 15.5px/1.5 var(--sans); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .more-from__tile:hover img { transform: scale(1.04); }
  .more-from__tile:hover .more-from__name span { transform: translateX(5px); }
}
/* Side by side, each line keeps two lines' room so the two names sit level. */
@media (min-width: 701px) { .more-from__line { min-height: 3em; } }
@media (max-width: 700px) {
  .more-from__grid { grid-template-columns: 1fr; gap: 16px; }
  .more-from__tile { aspect-ratio: 16 / 10; }
}
