:root {
  color-scheme: light;
  --paper: #f8f5ec;
  --ink: #2b302b;
  --red: #a43d2e;
  --deep-red: #822f25;
  --gold: #b1915b;
  --muted: #67685a;
  --line: #c9c3af;
  --pale-line: #ded8c7;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", "Songti TC", "Yu Mincho", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --latin: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) url("/art/fiber.svg") repeat;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.72;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
::selection { color: #241d17; background: #ead3b6; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1, h2, h3, .wordmark { text-wrap: balance; }
.wrap {
  width: min(1240px, calc(100% - clamp(44px, 10.4vw, 172px)));
  margin-inline: auto;
}
.icon { display: inline-block; width: 20px; height: 20px; flex: none; }
.skip {
  position: absolute;
  z-index: 2;
  top: .6rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: .45rem 1rem;
  background: var(--paper);
}
.skip:focus { transform: none; }
#main:focus { outline: none; }
.mast { border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.mast-inner { min-height: 86px; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.wordmark img { width: 43px; height: 43px; }
.wordmark span { display: flex; flex-direction: column; gap: 3px; }
.wordmark b { font: 700 24px/1.13 var(--serif); letter-spacing: .095em; }
.wordmark small { font: 600 8px/1.2 var(--sans); letter-spacing: .23em; }
.mast nav { display: flex; align-items: center; gap: clamp(21px, 3.05vw, 48px); }
.mast nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .045em;
}
.mast nav a[aria-current] { color: var(--red); font-weight: 700; }
.mast nav a[aria-current] span::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  position: absolute;
  bottom: 0;
  background: var(--red);
}
.mast nav .lot-link { gap: 8px; color: var(--deep-red); }
.mast nav .lot-link::before { content: ""; height: 18px; border-left: 1px solid var(--line); margin-right: clamp(5px, 1.05vw, 16px); }
.lot-link .icon { width: 19px; height: 19px; }
.home-lead {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(24px, 3.3vw, 55px);
  padding-block: clamp(39px, 4.6vw, 75px) clamp(39px, 4.05vw, 64px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.lead-text h1 {
  font-size: clamp(54px, 5.15vw, 82px);
  line-height: 1.2;
  letter-spacing: .065em;
  margin: 17px 0 18px -.045em;
}
.title-last { white-space: nowrap; }
.title-seal {
  vertical-align: .27em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: inline-block;
  border: 1px solid var(--red);
  outline: 1px solid var(--red);
  outline-offset: -3px;
  padding: 4px 3px 5px;
  margin-left: 9px;
  transform: rotate(-5deg);
  color: var(--red);
  font: 700 12px/1.1 var(--serif);
  letter-spacing: .15em;
}
.standfirst {
  max-width: 29em;
  font-size: clamp(14px, 1.13vw, 17px);
  line-height: 1.95;
  letter-spacing: .025em;
  color: #53564a;
}
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: clamp(20px, 2.05vw, 30px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff7e5;
  padding: 11px 21px;
  min-height: 46px;
  font: 600 15px/1.5 var(--sans);
  letter-spacing: .08em;
  cursor: pointer;
}
.text-link { font-size: 14px; padding-block: 9px; text-decoration: underline; text-decoration-color: #a9a18c; text-underline-offset: 6px; }
.hero-print { margin: 0; min-width: 0; }
.print-mount { border: 1px solid #a79d86; padding: 4px; background: #f8f1dd; }
.print-mount img { width: 100%; }
.hero-print figcaption, .fortune-art figcaption, .article-plate figcaption, .sketch-plate figcaption {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .055em;
  line-height: 1.65;
  margin-top: 9px;
}
.hero-print figcaption, .hero-print figcaption > span { display: flex; align-items: center; }
.hero-print figcaption { justify-content: space-between; padding-inline: 1px; }
.hero-print figcaption > span:first-child { gap: 8px; }
.hero-print figcaption .icon { width: 15px; height: 15px; }
.hero-print figcaption > span:first-child i { width: 14px; height: 1px; background: #a79b80; }
.ink-chips { gap: 3px; }
.ink-chips i { width: 9px; height: 9px; background: #b14a35; }
.ink-chips i:nth-child(2) { background: #c5a574; }
.ink-chips i:nth-child(3) { background: #98a48e; }
.ink-chips i:nth-child(4) { background: #3e5347; }
.selected { padding-bottom: clamp(48px, 5.6vw, 88px); }
.section-head {
  display: flex;
  align-items: center;
  gap: 21px;
  border-top: 1px solid var(--line);
  padding-top: clamp(23px, 2.2vw, 34px);
  margin-bottom: 23px;
}
.section-head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(25px, 2.13vw, 34px); line-height: 1.4; letter-spacing: .07em; }
.section-head h2 .icon { width: 25px; height: 25px; color: var(--red); stroke-width: 1.2; }
.leader { flex: 1; }
.quiet-link, .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--deep-red);
  font-weight: 550;
  font-size: 13px;
  letter-spacing: .04em;
}
.quiet-link .icon, .back-link .icon { width: 17px; }
.covers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2.1vw, 32px); }
.cover a { display: block; height: 100%; }
.cover-art { display: block; overflow: hidden; border: 1px solid #b8b29f; background: #e6dcc5; }
.cover-art img { width: 100%; aspect-ratio: 480 / 224; }
.cover .cover-info { padding-top: 14px; }
.metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12px; line-height: 1.5; letter-spacing: .05em; }
.note-type { color: var(--red); font-weight: 650; }
.note-ref { color: var(--muted); }
.type-rule { width: 13px; height: 1px; background: #b4a78b; }
.cover h3 { margin-block: 7px 5px; font-size: clamp(20px, 1.65vw, 27px); line-height: 1.5; letter-spacing: .012em; }
.cover-desc { color: #5a5d50; font-size: 14px; line-height: 1.85; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { gap: 24px; padding-block: 27px 32px; }
.footer .wordmark { gap: 9px; }
.footer .wordmark img { width: 33px; height: 33px; }
.footer .wordmark b { font-size: 17px; }
.footer .wordmark small { font-size: 6px; }
.footer p { font: 12px/1.85 var(--sans); text-align: right; color: var(--muted); }
.page-head { padding-block: clamp(40px, 4.7vw, 72px) 30px; }
.page-head h1, .article-head h1 { margin-block: 10px 14px; font-size: clamp(38px, 4vw, 64px); line-height: 1.35; letter-spacing: .035em; }
.page-deck { color: #55594d; font-size: clamp(15px, 1.22vw, 18px); line-height: 1.85; }
.catalog { border-top: 1px solid var(--line); padding-bottom: 58px; }
.catalog-note { border-bottom: 1px solid var(--pale-line); }
.catalog-note a { display: grid; grid-template-columns: clamp(130px, 16vw, 225px) 1fr auto; align-items: center; gap: clamp(15px, 2.8vw, 43px); padding-block: 20px; }
.catalog-note h2 { margin-block: 5px; font-size: clamp(22px, 2vw, 30px); line-height: 1.5; }
.catalog-arrow { display: grid; place-items: center; border: 1px solid var(--line); width: 37px; height: 37px; border-radius: 50%; color: var(--red); }
.reading { max-width: 1050px; margin: 0 auto; padding-block: clamp(30px, 3.4vw, 52px) clamp(48px, 5.6vw, 82px); }
.article-head { margin: 22px 0 30px; }
.article-head .metadata { margin-bottom: 12px; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 735px) minmax(160px, 1fr); gap: clamp(34px, 5vw, 76px); align-items: start; }
.prose { min-width: 0; font: 17px/1.95 var(--serif); overflow-wrap: anywhere; }
.prose section { margin-block: 2.1em 1em; scroll-margin-top: 1em; }
.prose h2, .draw-area h2 { font-size: clamp(23px, 2vw, 32px); line-height: 1.5; margin-bottom: .65em; letter-spacing: .035em; }
.prose section > p + p { margin-top: .85em; }
.article-plate > img { display: block; width: 100%; border: 1px solid var(--line); }
.article-plate figcaption, .fortune-art figcaption, .sketch-plate figcaption { font-family: var(--sans); }
.rail { position: sticky; top: 30px; margin-top: 2px; }
.rail nav { border-top: 2px solid var(--gold); padding-top: 15px; }
.rail p { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.rail p .icon { width: 16px; color: var(--red); }
.rail ol { list-style: none; padding: 0; margin-top: 9px; }
.rail a { display: block; padding-block: 6px; font-size: 13px; color: var(--muted); }
.tracks { margin: 1em 0; }
.tracks > div { border-top: 1px solid var(--pale-line); padding: 14px 0; }
.tracks > div:last-child { border-bottom: 1px solid var(--pale-line); }
.tracks dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.tracks dt span { font: 600 12px var(--sans); letter-spacing: .03em; color: var(--red); }
.tracks cite { font-weight: 700; font-style: normal; font-size: 1.1em; line-height: 1.55; }
.tracks dd { margin-top: 5px; }
.sketch-plate { margin-top: 18px; }
.sketch { width: min(100%, 450px); height: auto; border: 1px solid var(--line); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 16px 0; }
.swatch { padding: 2.2em 5px .3em; font: 600 14px/1.5 var(--serif); text-align: center; border: 1px solid var(--line); }
.swatch-0 { background: var(--red); color: #fff7e6; }
.swatch-1 { background: var(--paper); }
.swatch-2 { background: var(--ink); color: #fff7e6; }
.swatch-3 { background: var(--gold); color: #26251d; }
.swatches dd { text-align: center; font: 11px/2.1 var(--sans); color: var(--muted); }
.source-note { border-left: 2px solid var(--gold); margin: 30px 0; padding: 4px 0 4px 15px; color: var(--muted); font: 13px/1.85 var(--sans); }
.source-note b { margin-right: 10px; color: var(--ink); white-space: nowrap; }
.next-note { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 15px; }
.next-note span { font: 12px/1.8 var(--sans); color: var(--muted); }
.next-note a { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1.7 var(--serif); color: var(--deep-red); }
.next-note .icon { width: 17px; }
.about .page-head { padding-top: 7px; border-bottom: 1px solid var(--line); }
.about .reading-grid { grid-template-columns: minmax(0, 1.8fr) minmax(200px, .91fr); }
.about-aside { padding-top: 40px; }
.fortune-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: clamp(32px, 5.2vw, 82px); border-top: 1px solid var(--line); padding-block: 32px clamp(60px, 7.2vw, 106px); }
.draw-area { padding: 5px 0; }
.draw-area > p { font-size: 15px; color: #595d50; }
.draw-area h2 { margin-bottom: 8px; }
.lot-details { margin-top: 20px; }
.lot-details summary { list-style: none; }
.lot-details summary::-webkit-details-marker { display: none; }
.open-label, .lot-details[open] .closed-label { display: none; }
.lot-details[open] .open-label { display: inline; }
.lot-paper { position: relative; margin: 22px 0; padding: 20px 24px; max-width: 430px; border: 1px solid #b88868; outline: 1px solid #cfb498; outline-offset: -5px; background: #f6efdc url("/art/fiber.svg") repeat; }
.lot-id, .lot-act { color: var(--deep-red); font-size: 13px; letter-spacing: .07em; }
.lot-paper h3 { margin: 5px 0; font-size: 32px; letter-spacing: .16em; }
.lot-verse { font: 18px/1.8 var(--serif); }
.lot-act { margin-top: 10px; }
.draw-area > .lot-credit { color: var(--muted); font-size: 12px; margin-top: 16px; }
@media (hover: hover) {
  .button:hover { background: var(--deep-red); }
  .mast nav a:hover, .quiet-link:hover, .text-link:hover, .rail a:hover, .back-link:hover, .cover a:hover h3, .catalog-note a:hover h2 { color: var(--red); }
  .cover a:hover .cover-art, .catalog-note a:hover .cover-art, .catalog-note a:hover .catalog-arrow { border-color: var(--red); }
  .text-link:hover, .quiet-link:hover, .next-note a:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .cover-art, .catalog-arrow { transition: border-color .15s, background-color .15s; }
  .button .icon, .quiet-link .icon, .catalog-arrow .icon { transition: transform .18s; }
  @media (hover: hover) {
    .button:hover .icon, .quiet-link:hover .icon, .catalog-note a:hover .catalog-arrow .icon { transform: translateX(2px); }
  }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 8vw); }
  .home-lead { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 24px; }
  .lead-text h1 { font-size: 52px; }
  .standfirst { font-size: 14px; }
  .cover-desc { font-size: 13px; }
  .reading-grid { gap: 32px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 40px); }
  .mast-inner { min-height: 72px; gap: 14px; }
  .mast nav { gap: 18px; }
  .wordmark b { font-size: 21px; }
  .wordmark img { width: 37px; height: 37px; }
  .wordmark { gap: 9px; }
  .mast nav .lot-link::before { margin-right: 0; }
  .home-lead { grid-template-columns: 1fr; gap: 25px; padding-block: 32px 30px; }
  .lead-text h1 { font-size: clamp(46px, 7.8vw, 56px); margin: 12px 0; }
  .lead-text h1 br { display: none; }
  .standfirst { max-width: none; }
  .actions { margin-top: 18px; }
  .hero-print { width: 100%; }
  .section-head { margin-bottom: 16px; }
  .covers { gap: 15px; }
  .cover .cover-info { padding-top: 9px; }
  .cover h3 { font-size: 19px; }
  .cover .type-rule, .cover .note-ref { display: none; }
  .reading-grid { grid-template-columns: 1fr; }
  .rail { display: none; }
  .about .reading-grid { grid-template-columns: 1fr; gap: 0; }
  .about-aside { padding-top: 25px; max-width: 390px; }
  .fortune-layout { gap: 24px; }
}
@media (max-width: 570px) {
  .mast-inner { flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 0 0; }
  .mast nav { width: 100%; justify-content: space-between; gap: 7px; }
  .mast nav a { min-height: 38px; font-size: 13px; }
  .mast nav a[aria-current] span::after { bottom: -1px; }
  .mast nav .lot-link::before { margin-right: 4px; }
  .mast .wordmark img { width: 32px; height: 32px; }
  .mast .wordmark b { font-size: 19px; }
  .mast .wordmark small { font-size: 6px; }
  .home-lead { padding-top: 27px; gap: 23px; }
  .lead-text h1 { font-size: clamp(43px, 10.8vw, 59px); line-height: 1.17; }
  .lead-text h1 br { display: inline; }
  .title-seal { font-size: 10px; vertical-align: .19em; }
  .button { min-height: 43px; font-size: 14px; padding: 9px 16px; }
  .selected { padding-bottom: 38px; }
  .section-head { gap: 8px; padding-top: 18px; margin-bottom: 16px; }
  .section-head h2 { font-size: 25px; gap: 8px; }
  .section-head h2 .icon { width: 21px; height: 21px; }
  .quiet-link { gap: 5px; }
  .covers { grid-template-columns: 1fr; gap: 23px; }
  .cover .type-rule { display: inline; }
  .cover .note-ref { display: inline; }
  .cover h3 { font-size: 22px; margin-block: 4px; }
  .cover-desc { font-size: 14px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; padding-block: 20px 26px; }
  .footer p { text-align: left; }
  .catalog-note a { grid-template-columns: minmax(78px, 24%) 1fr; gap: 13px; padding-block: 15px; }
  .catalog-note h2 { font-size: 19px; }
  .catalog-arrow { display: none; }
  .catalog-note .cover-desc { font-size: 13px; }
  .catalog-note .note-ref { font-size: 11px; }
  .catalog-note .cover-art img { aspect-ratio: 1.25; object-fit: cover; }
  .page-head { padding-block: 30px 23px; }
  .page-head h1, .article-head h1 { font-size: 35px; }
  .prose { font-size: 16px; }
  .article-head { margin: 14px 0 21px; }
  .reading { padding-block: 22px 42px; }
  .swatches { gap: 4px; }
  .fortune-layout { grid-template-columns: 1fr; gap: 16px; padding-block: 20px 42px; }
  .draw-area { padding: 0; }
}
@media print {
  body { color: #222; background: white; }
  .mast nav, .skip, .actions, .back-link, .rail, .next-note, .lot-details summary { display: none; }
  .wrap { width: 100%; }
  .reading-grid, .about .reading-grid { display: block; }
  .reading, .home-lead { padding-block: 18px; }
  figure, .tracks > div, .cover { break-inside: avoid; }
}
