/* Journal redesign, round 2, demo ABC: A's first section and B's painting, B's news strip,
   C's structure. Whole bands alternate lacquer, paper, lacquer, paper, then the footer; a
   colour change is always a section change. Every band has the same padding (96, 56 on phone).

   How this file is laid out (the pages builder extends it, and adds only in the block at the end):
     1. tokens: paper (light and dark, twice), lacquer (the same in every mode), type, grid
     2. base, header account links, skip link, grid
     3. surfaces: .band, .band--paper, .lac / .band--lead (lacquer), grain, the key border
     4. shared parts: section head, labels, buttons, pictures (.art), covers, mounts
     5. front page: first section, This season (list cards), Stories (lead + cards), news strip,
        colophon, footer
     6. responsive, motion, forced colours, print
   Type scale (desktop/phone): nameplate 64/40 (52 at 700-1099); lead 72/44 (64 at 1100-1279,
   56 at 700-1099); article title 64/40; Stories lead 44/32; section head 40/30; feature title
   32/26; list title 24/21; deck 20/18 italic; body 21/19 at 1.6; labels Inter 12/600; captions
   and meta Inter 13; buttons Inter 14/600. Every heading and title is Cormorant 700; the first
   section's Coming up names stay 600. */

/* ======================================================================
   1. TOKENS
   ====================================================================== */
:root {
  color-scheme: light;

  /* paper, light (C.css:10-27) */
  --paper: #f7f1e5;
  --paper-2: #efe6d5;
  --mat: #e9e0cd;
  --ink: #221916;
  --ink-2: #574a43;
  --ink-3: #6f6158;
  --rule: #dccfb9;
  --rule-2: #c2b194;
  --accent: #9e2c2a;
  --stop: #ae432f;
  --gold-ink: #7a5d22;
  --field: #fffbf3;
  --field-line: #b9a78a;
  --focus: #9a6b12;
  --mark-blue: #2c4a6e;
  --mark-jade: #2a5f54;
  --mark-plum: #74385f;
  --mark-copper: #94502a;
  --mark-saffron: #85590a;

  /* lacquer: the same names and values as AB.css, and the same in light, dark and forced dark */
  --lq-ink: #f9f4ef; --lq-body: #cbc1bc; --lq-mute: #b3a7a3;
  --lq-gold: #caa84b; --lq-gold-hi: #e2c679; --lq-seal: #c9a650;
  --lq-rule: rgba(202, 168, 75, .36); --lq-tile: #3b302f; --lq-tile-line: #4a3e3d; --lq-stop: #e0583a;
  --lq-crimson: #b83349; --lq-crimson-h: #c73c53; --lq-crimson-p: #9e2a3e;
  --pill-ink: #ef8554; --pill-bg: rgba(68, 41, 30, .9); --pill-line: rgba(239, 133, 84, .4);
  --mount: #1a1311; --mount-line: rgba(202, 168, 75, .55);
  --night: #0c0a08; --meander: #a88c4c;
  --lq-strip: linear-gradient(100deg, #2b1e1e 0%, #402727 42%, #5c2b25 76%, #7e2429 100%);

  /* ABC's lacquer band (C.css:219-221). The hot corner's alpha rises to 1 in dark mode, where
     the paper around it is near-black and the edges carry the separation. */
  --lq-hot: .92;
  --lq-band:
    radial-gradient(95% 120% at 100% 100%, rgba(138, 35, 40, var(--lq-hot)) 0%, rgba(110, 40, 36, .55) 34%, rgba(92, 43, 37, 0) 68%),
    linear-gradient(118deg, #2b1e1e 0%, #362322 38%, #402727 62%, #4c2926 100%);
  /* the grain on every lacquer surface (A.css:119-122), never on paper */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  /* the key (A.css:174's 28 x 14 unit) */
  --key-unit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M-8 13H1V1h19v7H10v5h19' fill='none' stroke='%23a88c4c' stroke-width='1.6'/%3E%3C/svg%3E");

  /* type */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
  --cjk: 'Microsoft YaHei', 'PingFang TC', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK TC', 'Noto Sans CJK SC', 'Source Han Sans TC', sans-serif;

  /* grid and rhythm */
  --margin: 80px;
  --gap: 24px;
  --hdr: 68px;          /* the house header's height; the first band runs up under it */
  --band: 96px;         /* the top and bottom padding of every band */
  --r: 4px;             /* ABC's corner: tiles, buttons, plates */
}

/* paper, dark (C.css:83-100): explicit */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16110f; --paper-2: #211a17; --mat: #2a2320;
  --ink: #f0e7d8; --ink-2: #c3b6a8; --ink-3: #a39587;
  --rule: #352b26; --rule-2: #54463e;
  --accent: #dcb466; --stop: #e8583c; --gold-ink: #d6b466;
  --field: #1d1714; --field-line: #5a4b42; --focus: #e2c679;
  --mark-blue: #93b3dc; --mark-jade: #83c3b1; --mark-plum: #d6a0c8; --mark-copper: #e5a47d; --mark-saffron: #e6bb5c;
  --lq-hot: 1;
}
/* paper, dark: system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16110f; --paper-2: #211a17; --mat: #2a2320;
    --ink: #f0e7d8; --ink-2: #c3b6a8; --ink-3: #a39587;
    --rule: #352b26; --rule-2: #54463e;
    --accent: #dcb466; --stop: #e8583c; --gold-ink: #d6b466;
    --field: #1d1714; --field-line: #5a4b42; --focus: #e2c679;
    --mark-blue: #93b3dc; --mark-jade: #83c3b1; --mark-plum: #d6a0c8; --mark-copper: #e5a47d; --mark-saffron: #e6bb5c;
    --lq-hot: 1;
  }
}

@media (max-width: 1099px) { :root { --margin: 40px; } }
@media (max-width: 900px) { :root { --hdr: 108px; } }                     /* the house header measures 108 here */
@media (max-width: 699px) { :root { --margin: 20px; --gap: 16px; --band: 56px; } }
@media (max-width: 560px) { :root { --hdr: 152px; } }                     /* the account links take a third row */

/* ======================================================================
   2. BASE
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
main, .foot { overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
small { font-size: 13px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[lang|="zh"], [lang="ja"] { font-family: var(--cjk); font-synthesis: none; }

/* focus: 2px at 3px; gold on lacquer, the paper focus colour on paper */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.band--lead :focus-visible, .lac :focus-visible, .news__strip :focus-visible, .foot :focus-visible { outline-color: var(--lq-gold-hi); }

.skip { position: absolute; left: 16px; top: -120px; z-index: 10; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 16px; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--sans); }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* The account links sit in the house header's third column and carry the house nav's look (A.css:96-100). */
.header-action { justify-self: end; display: flex; align-items: center; gap: 24px; }
.header-action a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; color: #9c9790; font: 400 10.5px/1.3 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.header-action a:last-child { color: #cbb486; }
.header-action a:hover { color: #dcd6c9; border-bottom-color: #cbb48666; }
.header-action a:focus-visible { outline: 1px solid #cbb486; outline-offset: 5px; }
@media (max-width: 900px) { .header-action { gap: 16px; } }
@media (max-width: 699px) { .header-action { gap: 14px; } }
@media (max-width: 560px) { .header-action { grid-column: 1 / -1; grid-row: 3; justify-self: start; gap: 20px; } }

/* grid: 12 columns; at 1440, column n starts at 80 + (n - 1) x 108.67 */
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ======================================================================
   3. SURFACES
   ====================================================================== */
.band { position: relative; isolation: isolate; padding-block: var(--band); }
.band--paper { background: var(--paper); color: var(--ink); }

/* lacquer: the first band, the Stories band and any later .lac surface */
.band--lead, .lac { color: var(--lq-ink); background: var(--lq-band); }
.lac { position: relative; isolation: isolate; box-shadow: inset 0 1px 0 var(--lq-rule); }   /* a lacquer band opens with the gold line */
.band--lead::before, .lac::before, .news__strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background: var(--grain);
}

/* the key border that closes every lacquer band; `round` shows whole units at every width */
.key {
  height: 40px;
  background:
    linear-gradient(rgba(202, 168, 75, .55), rgba(202, 168, 75, .55)) 0 8px / 100% 1px no-repeat,
    linear-gradient(rgba(202, 168, 75, .55), rgba(202, 168, 75, .55)) 0 31px / 100% 1px no-repeat,
    var(--key-unit) 50% 50% / 28px 14px round no-repeat,
    var(--night);
}

/* ======================================================================
   4. SHARED PARTS
   ====================================================================== */

/* section head (C.css:244-265) */
.section-head { margin-bottom: 48px; }
.label-caps { font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.section-head .label-caps { margin-bottom: 8px; }
.section-title { font: 700 40px/1.1 var(--serif); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.lac .label-caps { color: var(--lq-gold-hi); }
.lac .section-title { color: var(--lq-gold); }

/* labels above titles: the piece's palette mark on paper, the high gold on lacquer */
.mark-blue { --mark: var(--mark-blue); }
.mark-jade { --mark: var(--mark-jade); }
.mark-plum { --mark: var(--mark-plum); }
.mark-copper { --mark: var(--mark-copper); }
.mark-saffron { --mark: var(--mark-saffron); }
.label { font: 600 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--mark, var(--accent)); }
.lac .label { color: var(--lq-gold-hi); }
.meta { font: 500 13px/1.3 var(--sans); color: var(--lq-mute); }
.band--paper .meta { color: var(--ink-3); }

/* buttons: .btn is the crimson one (the lead's only); .btn--outline is the quiet one on either surface */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 28px;
  border: 0; border-radius: var(--r); background: var(--lq-crimson); color: #fff;
  font: 600 14px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform 60ms ease-out;
}
.btn .arrow { display: inline-block; transition: transform .18s ease-out; }
.btn:hover { background: var(--lq-crimson-h); }
.btn:active { background: var(--lq-crimson-p); transition-duration: 60ms; }
.btn--outline { gap: 10px; padding: 0 24px; border: 1px solid var(--rule-2); background: transparent; color: var(--ink); }
.btn--outline:hover { background: transparent; border-color: var(--ink); }
.btn--outline:active { background: transparent; }
.lac .btn--outline { border-color: rgba(202, 168, 75, .5); color: var(--lq-ink); }
.lac .btn--outline:hover { border-color: var(--lq-gold); color: var(--lq-gold-hi); }
.btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* pictures: one slot pattern everywhere. The cover lies under every picture and shows only
   when the picture is missing, or when the piece has no picture (.is-cover). */
.art { position: relative; display: block; overflow: hidden; background: #241a17; }
.art--sq { aspect-ratio: 1; }
.art--43 { aspect-ratio: 4 / 3; }
.art--frame { aspect-ratio: 1122 / 1402; }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art > .cover { position: absolute; inset: 0; visibility: hidden; }
.art.is-cover > .cover, .art.is-missing > .cover { visibility: visible; }
.art.is-missing > img { visibility: hidden; }
/* museum photograph: never cropped, whole on a plain mat */
.art--mat { background: var(--mat); }
.lac .art--mat { background: #e9e0cd; }
.art--mat > img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.art--sq.art--mat > img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
/* flat illustration: the cover's field shows behind; the word only if the picture fails */
.art--svg > .cover { visibility: visible; }
.art--svg:not(.is-missing) > .cover > * { visibility: hidden; }
.art--svg > img { padding: 14%; object-fit: contain; }

/* type cover: the subject large, on its own field; never changes in dark mode */
.cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; color: #f4ecdd;
  background: radial-gradient(70% 60% at 50% 45%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, var(--c1), var(--c2));
}
.cover::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(202, 168, 75, .4); pointer-events: none; }
.cover--blue { --c1: #142339; --c2: #2c4a6e; }
.cover--jade { --c1: #13332d; --c2: #2f655a; }
.cover--plum { --c1: #2a1727; --c2: #5a3452; }
.cover--copper { --c1: #3d200d; --c2: #8a4e2a; }
.cover--saffron { --c1: #47300a; --c2: #8a5a0e; }
.cover__word { --cw: 64px; font: italic 600 var(--cw)/1 var(--serif); letter-spacing: -.01em; color: #f4ecdd; text-wrap: balance; }
.cover__glyph { --cg: 88px; font: 700 var(--cg)/1 var(--cjk); letter-spacing: .04em; margin-right: -.04em; color: var(--lq-gold-hi); }
.cover__gloss { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e6cf93; text-wrap: balance; }
/* sizes by context: frame, 4:3 card (and the Stories lead), thumbnail */
.art--frame .cover__word { --cw: 120px; }
.art--frame .cover__glyph { --cg: 160px; }
.slead .cover__word { --cw: 120px; }
.slead .cover__glyph { --cg: 160px; }
.art--43 .cover__glyph--3 { font-size: calc(var(--cg) * .75); }
.art--sq .cover { gap: 0; padding: 10px; }
.art--sq .cover::before { inset: 6px; }
.art--sq .cover__word { --cw: 26px; line-height: 1.02; }
.art--sq .cover__glyph { --cg: 36px; }
.art--sq .cover__glyph--2 { --cg: 30px; }
.art--sq .cover__glyph--3 { --cg: 24px; }

/* the mount: every picture or cover on lacquer sits in one; pictures on paper sit flush */
.mount, .hang__mount { display: block; padding: 10px; background: var(--mount); border: 1px solid var(--mount-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.mount--sm { padding: 6px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }

/* only paintings move, and only when motion is welcome */
.art--paint > img { transition: transform .6s ease; }

/* ======================================================================
   5. FRONT PAGE
   ====================================================================== */

/* ---------- the first section (SHARED section 4; identical to AB but for --r, the gradient and the tile frame) ---------- */
.band--lead { margin-top: calc(-1 * var(--hdr)); padding: 0; }
.band__grid { padding-top: calc(var(--hdr) + 40px); padding-bottom: 96px; grid-template-rows: auto auto auto 1fr; }

.mast { grid-column: 1 / 7; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--lq-rule); }
.nameplate { font: 700 64px/.86 var(--serif); letter-spacing: -.02em; color: var(--lq-ink); text-wrap: balance; }
.nameplate span { color: var(--lq-stop); }
.edition { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lq-gold-hi); text-align: right; }

.lead__head { grid-column: 1 / 7; grid-row: 2; position: relative; padding-top: 32px; }
.pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 36px; padding: 0 16px 0 12px; border: 1px solid var(--pill-line); border-radius: 999px; background: var(--pill-bg); color: var(--pill-ink); font: 500 13px/1.3 var(--sans); letter-spacing: .01em; }
.pill__moon { flex: none; display: block; }
.pill__text { padding-block: 8px; min-width: 0; text-wrap: balance; }
.lead__title { margin-top: 24px; font: 700 72px/1 var(--serif); letter-spacing: -.012em; color: var(--lq-ink); text-wrap: balance; }
.lead__title a { display: block; color: inherit; text-decoration: none; }
.lead__title a:focus-visible { outline: 2px solid var(--lq-gold-hi); outline-offset: 6px; }
.lead__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }      /* pill, headline and deck all open the story */
.lead__title span { display: block; }
.lead__title .l2 { color: var(--lq-gold); }
.lead__head:hover .l1 { text-decoration: underline 2px rgba(249, 244, 239, .45); text-underline-offset: 8px; }
.lead__deck { margin-top: 16px; max-width: 30em; font: italic 500 20px/1.45 var(--serif); color: var(--lq-body); text-wrap: pretty; }

.lead__foot { grid-column: 1 / 7; grid-row: 3; padding-top: 24px; }
.seals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.seal { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 88px; padding: 14px 12px; border: 1px solid var(--lq-tile-line); border-radius: var(--r); background: var(--lq-tile); text-align: center; }
.seal::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--lq-rule); border-radius: 2px; pointer-events: none; }   /* ABC: C's inset gold frame */
.seal__glyph { font: 700 30px/1.15 var(--cjk); letter-spacing: .04em; color: var(--lq-seal); }
.seal__glyph > span { display: inline-block; }      /* the lunar date breaks only between month and day */
.seal__label { font: 500 13px/1.3 var(--sans); color: var(--lq-mute); text-wrap: balance; }
.seal__label > span { display: inline-block; }      /* the two halves of a label ("Frost," / "since 23 Oct") wrap as pieces, as AB */
.lead__act { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.band--lead:has(.lead__title a:hover) .btn { background: var(--lq-crimson-h); }

.coming { grid-column: 1 / 7; grid-row: 4; align-self: end; padding-top: 40px; }
.coming__label { display: flex; align-items: center; gap: 16px; font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lq-gold-hi); }
.coming__label::after { content: ""; flex: 1; height: 1px; background: var(--lq-rule); }
.coming ol { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); }
.coming li, .coming li > a { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.coming li > a { min-height: 44px; color: inherit; text-decoration: none; }
.coming time { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lq-gold-hi); }
.coming strong { font: 600 24px/1.1 var(--serif); color: var(--lq-ink); text-wrap: balance; }
.coming small { font: 500 13px/1.35 var(--sans); color: var(--lq-mute); text-wrap: pretty; }
.coming small.go { color: var(--lq-gold-hi); text-decoration: underline 1px rgba(226, 198, 121, .45); text-underline-offset: 3px; transition: text-decoration-color .18s ease-out; }
.coming a:hover small.go { text-decoration-color: currentColor; }

/* the painting, hung whole at its real 4:5; never cropped, masked or mirrored, no text on it */
.hang { grid-column: 7 / -1; grid-row: 1 / 5; align-self: start; }
.hang__cap { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.hang__moon { font: 600 12px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lq-gold-hi); text-wrap: balance; }
.hang__what { font: 400 13px/1.45 var(--sans); color: var(--lq-body); text-wrap: pretty; }
.hang:has(.art.is-missing) .hang__what { display: none; }     /* the line describes the painting, not the cover shown in its place */

/* ---------- This season: paper, small list cards ---------- */
.season__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.season__list > li { grid-column: span 6; min-width: 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }

.list-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 24px; align-items: start; padding-block: 24px; color: inherit; text-decoration: none; }
.list-card > .art { width: 100%; }
.list-card__body { display: flex; flex-direction: column; min-width: 0; }
.list-card__title { margin-top: 6px; font: 700 24px/1.15 var(--serif); color: var(--ink); text-wrap: balance; text-decoration: underline 1px transparent; text-underline-offset: 4px; transition: text-decoration-color .18s ease-out; }
.list-card:hover .list-card__title { text-decoration-color: currentColor; }
.tt { display: inline-block; text-decoration: inherit; }      /* the halves of a title split at its colon (ABC.js title()) */
.nobr { display: inline-block; text-decoration: inherit; }    /* a hyphenated compound in a title or line stays whole ("Moon-Viewing") */
.list-card__deck { margin-top: 6px; font: italic 500 18px/1.4 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.credit { margin-top: 8px; font: 400 13px/1.45 var(--sans); color: var(--ink-3); text-wrap: pretty; }
.lac .credit { color: var(--lq-mute); }
a:has(.art.is-missing) .credit { display: none; }        /* a credit belongs to a picture that is showing */

/* ---------- Stories: lacquer (C's background), one lead and three cards, then the news strip ---------- */
.stories { padding-bottom: 0; }
.stories__in { padding-bottom: var(--band); }
.stories__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.stories__note { font: italic 500 20px/1.35 var(--serif); color: var(--lq-mute); text-wrap: balance; }

.slead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); color: inherit; text-decoration: none; }
.slead__art { grid-column: 1 / 8; min-width: 0; }
.slead__text { grid-column: 8 / -1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }   /* the text sits on the mount's bottom line */
.slead__title { margin-top: 8px; font: 700 44px/1.05 var(--serif); letter-spacing: -.005em; color: var(--lq-ink); text-wrap: balance; text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color .18s ease-out; }
.slead__deck { margin-top: 16px; font: italic 500 20px/1.45 var(--serif); color: var(--lq-body); text-wrap: pretty; }
.slead .meta { margin-top: 16px; }
.slead .btn--outline { margin-top: 32px; }
.slead:hover .slead__title { text-decoration-color: rgba(249, 244, 239, .6); }
.slead:hover .btn--outline { border-color: var(--lq-gold); color: var(--lq-gold-hi); }

.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }
.cards > li { display: flex; flex-direction: column; min-width: 0; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card > .label { margin-top: 20px; }
.card__title { margin-top: 8px; font: 700 32px/1.08 var(--serif); letter-spacing: -.005em; color: var(--lq-ink); text-wrap: balance; text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color .18s ease-out; }
.card:hover .card__title { text-decoration-color: rgba(249, 244, 239, .6); }
.card__deck { margin-top: 12px; font: italic 500 20px/1.45 var(--serif); color: var(--lq-body); text-wrap: pretty; }
.card .credit { margin-top: 12px; }
.stories__more { margin-top: 48px; }

/* ---------- News: B's strip (identical in AB and ABC but for the link's weight) ---------- */
.news__strip { position: relative; isolation: isolate; background: var(--lq-strip); color: var(--lq-ink); box-shadow: inset 0 1px 0 rgba(202, 168, 75, .36); }
.news__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; padding-block: 28px; }
.news__head { flex: none; max-width: 100%; font: 700 40px/1.05 var(--serif); color: var(--lq-gold); text-wrap: balance; }
.news__rows { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.news__row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 24px; text-align: right; }
.news__when { font: 600 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lq-gold-hi); }
.news__link { display: block; min-height: 44px; min-width: 0; padding-block: 8px; font: 700 24px/1.15 var(--serif); color: var(--lq-ink); text-decoration: none; text-wrap: balance; }
.news__title { text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color .18s ease-out; }
.news__link:hover .news__title { text-decoration-color: rgba(249, 244, 239, .5); }
/* the arrow is glued to the title's last word by a no-break space, so a wrapped title keeps it at its end */
.news__link::after { content: "\00a0\2192"; position: relative; left: 0; margin-left: 6px; font: 500 16px/1 var(--sans); color: var(--lq-gold); transition: left .18s ease-out; }

/* ---------- colophon (C.css:647-671) ---------- */
.colophon__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.colophon__seal { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 24px; border-radius: var(--r); background: var(--lq-crimson); box-shadow: inset 0 0 0 3px var(--lq-crimson), inset 0 0 0 4px rgba(255, 240, 225, .55); font: 700 24px/1 var(--cjk); color: #fbf1e6; }
.colophon__line { margin: 0 0 16px; font: italic 500 32px/1.2 var(--serif); color: var(--ink); text-wrap: balance; }
.colophon__text { max-width: 34em; margin: 0 0 32px; font: 400 15px/1.6 var(--sans); color: var(--ink-2); text-wrap: balance; }

/* ---------- footer (C.css:674-697, with the gold line) ---------- */
.foot { background: var(--night); color: var(--lq-ink); box-shadow: inset 0 1px 0 var(--lq-rule); }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 40px; }
.foot__brand { font: 600 21px/1 var(--serif); letter-spacing: .01em; color: var(--lq-ink); }
.foot__brand .stop { color: var(--lq-stop); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 32px; }
.foot__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border-bottom: 1px solid transparent; font: 500 14px/1 var(--sans); color: var(--lq-body); text-decoration: none; transition: color .18s ease-out, border-color .18s ease-out; }
.foot__nav a:hover { color: var(--lq-gold-hi); border-bottom-color: var(--lq-rule); }

/* figures: lining in display type, tabular in counts. Placed after every rule that sets the font
   shorthand, which would reset them. (Cormorant has no onum; nothing here asks for it.) */
.nameplate, .lead__title, .coming strong, .section-title, .slead__title, .card__title, .list-card__title,
.news__head, .news__link, .colophon__line, .foot__brand, .cover__word { font-variant-numeric: lining-nums; }
.meta, .count { font-variant-numeric: tabular-nums; }

/* ======================================================================
   6. RESPONSIVE
   ====================================================================== */
@media (max-width: 1439px) { .seal__glyph { font-size: 26px; } }
@media (max-width: 1279px) { .lead__title { font-size: 64px; } }

@media (max-width: 1099px) {
  /* first section: text in columns 1-7, the painting in 8-12, Coming up across the foot in four */
  .band__grid { grid-template-rows: auto auto 1fr auto; }
  .mast, .lead__head, .lead__foot { grid-column: 1 / 8; }
  .nameplate { font-size: 52px; }
  .hang { grid-column: 8 / -1; grid-row: 1 / 4; }
  .coming { grid-column: 1 / -1; grid-row: 4; padding-top: 48px; }
  .coming ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lead__title { font-size: 56px; }
  .seals { gap: 16px; }
  .seal__glyph { font-size: 24px; }
  .art--frame .cover__word { --cw: 64px; }
  .art--frame .cover__glyph { --cg: 88px; }

  /* Stories: the lead's text goes under its picture; the cards stay three across */
  .slead__art, .slead__text { grid-column: 1 / -1; }
  .slead__text { margin-top: 24px; }
  .art--43 .cover__word { --cw: 44px; }
  .art--43 .cover__glyph { --cg: 64px; }
  .slead .cover__word { --cw: 120px; }
  .slead .cover__glyph { --cg: 160px; }
  .card__title { font-size: 26px; }
  .card__deck { font-size: 18px; }
}

@media (max-width: 899px) {
  /* This season stacks */
  .season__list { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--rule-2); }
  .season__list > li { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 699px) {
  .band__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-top: calc(var(--hdr) + 24px); padding-bottom: 56px; }
  .band__grid > * { grid-column: 1 / -1; grid-row: auto; }
  .mast { padding-bottom: 16px; }
  .nameplate { font-size: 40px; }
  .lead__head { padding-top: 24px; }
  .lead__title { margin-top: 20px; font-size: 44px; }
  .lead__deck { margin-top: 12px; font-size: 18px; }
  .hang { margin-top: 24px; }
  .hang__mount { padding: 6px; }
  .seals { gap: 8px; }
  .seal { min-height: 80px; padding: 12px 8px; gap: 6px; }
  .seal__glyph { font-size: 22px; letter-spacing: .02em; }
  .seal__label { font-size: 12px; }
  .lead__act .btn { flex: 1 1 auto; justify-content: center; }
  .coming { padding-top: 40px; }
  .coming ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .coming strong { font-size: 21px; }
  .key { height: 32px; background-size: 100% 1px, 100% 1px, 24px 12px; background-position: 0 5px, 0 26px, 50% 50%; }
  .art--frame .cover__word { --cw: 56px; }
  .art--frame .cover__glyph { --cg: 80px; }

  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 30px; }

  .list-card { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; padding-block: 20px; }
  .list-card__title { font-size: 21px; }
  .list-card__deck { font-size: 17px; }
  .art--sq .cover__word { --cw: 18px; }
  .art--sq .cover__glyph { --cg: 28px; }
  .art--sq .cover__glyph--2 { --cg: 24px; }
  .art--sq .cover__glyph--3 { --cg: 20px; }

  .slead { grid-template-columns: minmax(0, 1fr); }
  .slead .mount { padding: 6px; }
  .slead__title { font-size: 32px; }
  .slead__deck { font-size: 18px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .art--43 .cover__word, .slead .cover__word { --cw: 48px; }
  .art--43 .cover__glyph, .slead .cover__glyph { --cg: 72px; }
  .card__title { font-size: 26px; }
  .card__deck { font-size: 18px; }

  .news__in { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 24px; }
  .news__head { font-size: 30px; }
  .news__rows { flex: none; width: 100%; }
  .news__row { justify-content: flex-start; text-align: left; }
  .news__link { font-size: 21px; }

  .colophon__line { font-size: 26px; }

  .foot__row { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 24px 32px; }
  .foot__nav { gap: 0 24px; }
}

/* 320-374: the tiles give their labels the width ("Mid-Autumn" keeps its hyphen on one line), as AB */
@media (max-width: 374px) {
  .seal { padding-inline: 4px; }
  .pill__d, .pill__o { display: block; }      /* the occasion under the date: the capsule hugs two lines (as AB) */
  .pill__sep { display: none; }
}
/* up to 374px the tiles have 4px side padding and their text runs to within 6px of the edge (measured: 5.8px for
   "八月十五" at 360), so the inset gold frame at 5px would touch it; the tile keeps its single border there */
@media (max-width: 374px) {
  .seal::after { display: none; }
}

/* ---------- motion: hover and press transforms only when motion is welcome; colour fades stay ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover .arrow, .slead:hover .arrow, .band--lead:has(.lead__title a:hover) .btn .arrow { transform: translateX(3px); }
  .btn:active { transform: translateY(1px); }
  .news__link:hover::after { left: 3px; }
  a:hover > .art--paint > img, a:hover .mount > .art--paint > img { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .art--paint > img, .btn .arrow { transition: none; }
}

/* ---------- forced colours: lacquer surfaces and covers keep their own colours ---------- */
@media (forced-colors: active) {
  .band--lead, .lac, .news__strip, .cover, .yearline, .key, .foot { forced-color-adjust: none; }
  .btn, .chip { border: 1px solid ButtonText; }
}

/* ---------- print: the painting is an <img>, so it prints; lacquer becomes paper ---------- */
@media print {
  /* paper prints white and light in every theme (a dark-mode reader's print is not a dark page), as AB */
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    color-scheme: light;
    --paper: #fff; --paper-2: #f3efe7; --mat: #efe9de;
    --ink: #1d1512; --ink-2: #4a3d37; --ink-3: #5e4f49; --rule: #ddd2c0; --rule-2: #c2b194;
    --accent: #9e2c2a; --gold-ink: #7a5d22; --field: #fff; --field-line: #b9a78a;
    --mark-blue: #2c4a6e; --mark-jade: #2a5f54; --mark-plum: #74385f; --mark-copper: #94502a; --mark-saffron: #85590a;
  }
  :root {
    --lq-ink: #1d1512; --lq-body: #3d302a; --lq-mute: #574a43;
    --lq-gold: #7a5d22; --lq-gold-hi: #7a5d22; --lq-seal: #7a5d22; --lq-rule: rgba(122, 93, 34, .45);
    --lq-tile: #fff; --lq-tile-line: #c2b194; --pill-ink: #7a5d22; --pill-bg: #fff; --pill-line: #c2b194;
  }
  .br-room-header, .skip, .key, .stories__more, .foot__nav { display: none !important; }
  .band--lead, .lac, .news__strip, .foot { background: #fff; color: #1d1512; box-shadow: none; }
  .band--lead::before, .lac::before, .news__strip::before { display: none; }
  .band--lead { margin-top: 0; }
  .band__grid { padding-top: 24px; }
  .mount, .hang__mount { box-shadow: none; }
  .btn { background: #fff; color: #1d1512; border: 1px solid #1d1512; }
  /* a type cover is a picture: it keeps its field and its gold, whether or not backgrounds are printed */
  .cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cover__glyph { color: #e2c679; }
}
