:root {
  color-scheme: light;
  --paper: #f9f7f1;
  --ink: #192f29;
  --muted: #52635b;
  --rule: #d9dbcd;
  --accent: #f8cb66;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #bb721c; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1232px, 91%); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: -5em; left: 1em; background: white; padding: .5em 1em; }
.skip:focus { top: 8px; }
.masthead { min-height: 82px; display: flex; align-items: center; gap: clamp(30px, 6vw, 90px); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand strong { font: 800 24px/1 var(--serif); letter-spacing: .05em; }
.brand-mark { width: 35px; height: 38px; background: #234c41; color: #f8d285; display: inline-grid; grid-template-columns: repeat(3, 4px); gap: 3px; align-content: center; justify-content: center; transform: rotate(-4deg); border-radius: 6px; }
.brand-mark i { height: 18px; border: 1.3px solid currentColor; border-block-width: 3px; border-radius: 1px; }
.brand-mark i:last-child { transform: rotate(-14deg) translateY(-1px); transform-origin: bottom left; }
.masthead nav { display: flex; align-self: stretch; gap: 29px; align-items: center; }
.masthead nav a { color: var(--muted); font-size: 14px; }
.masthead nav a[aria-current] { color: var(--ink); font-weight: 700; }
.masthead a:hover, .site-footer a:hover { color: #965d25; }
.find { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid #d5d7c8; border-radius: 30px; color: var(--muted); font-size: 13px; background: transparent; }
.find kbd { border: 1px solid var(--rule); padding: 0 5px; border-radius: 4px; line-height: 1.35; font-size: 12px; color: #717d72; }
.magnify { display: inline-block; width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.magnify::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 6px; height: 1.6px; background: currentColor; transform: rotate(47deg); }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; min-height: 410px; color: #fff7e4; background: #132f29; display: grid; align-items: center; }
.hero picture, .hero img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero img { object-fit: cover; object-position: 50% 56%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(9,33,29,.96), rgba(9,33,29,.90) 20%, rgba(9,33,29,.58) 35%, rgba(9,33,29,.07) 60%, transparent 78%); }
.intro { padding: 48px clamp(30px, 5vw, 77px); max-width: 60%; }
.eyebrow { display: flex; gap: 11px; align-items: center; margin: 0 0 19px; color: #f5d18a; font-size: 13px; font-weight: 600; letter-spacing: .17em; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font: 800 clamp(46px,4.85vw,73px)/1.17 var(--serif); letter-spacing: .045em; text-shadow: 0 2px 12px #102b252b; }
.hero h1 span { color: #f5ce7a; }
.intro-copy { font-size: 15px; margin: 18px 0 25px; line-height: 1.85; color: #e6eade; }
.explore { display: inline-flex; gap: 22px; align-items: center; color: #27392c; background: #f6cf81; border-radius: 7px; font-size: 14px; font-weight: 700; padding: 10px 17px; }
.explore:hover { background: #ffe2a3; }
.arrow { font-family: Arial, sans-serif; font-size: 1.15em; }
.library { padding-top: clamp(38px,4.4vw,66px); scroll-margin-top: 20px; }
.library-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.section-title { margin: 0; display: flex; align-items: center; gap: 12px; font: 800 clamp(29px,2.8vw,40px)/1.4 var(--serif); letter-spacing: .035em; }
.section-title::before { content: ""; border-radius: 2px; display: inline-block; width: 6px; height: .8em; background: #b86a41; }
.count { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 20px; align-items: center; }
.toolbar button, .reset { padding: 5px 15px; border: 1px solid #d3d8cd; border-radius: 24px; background: transparent; color: var(--muted); font-size: 13px; }
.toolbar button:hover { border-color: #7a927e; }
.toolbar button[aria-pressed="true"] { color: #fffaf0; border-color: #21463a; background: #21463a; }
.search-row { display: flex; align-items: center; gap: 11px; margin: 12px 0; width: min(100%, 540px); border: 1px solid #8d9d8e; border-radius: 8px; padding: 4px 10px 4px 15px; background: #fffdf7; }
.search-row input { min-width: 0; width: 100%; padding: 5px; background: none; border: none; font-size: 16px; }
.search-row button { border: none; font-size: 13px; background: transparent; white-space: nowrap; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 18px 0 0; padding: 0; list-style: none; }
.cards li { min-width: 0; }
.card { display: grid; grid-template-columns: 78px 1fr; gap: 21px; height: 100%; align-items: start; background: #fffdf8; border: 1px solid #deded0; padding: 21px; border-radius: 10px; transition: border-color .18s, box-shadow .18s; }
.card:hover { border-color: #9ba994; box-shadow: 0 4px 17px #263d290c; }
.thumb { width: 78px; height: 104px; position: relative; display: grid; align-content: end; justify-items: start; isolation: isolate; overflow: hidden; border-radius: 3px 6px 6px 3px; padding: 8px 10px; background: var(--cover); color: var(--foil); box-shadow: inset 4px 0 0 #0002, inset 5px 0 0 #fff3; }
.thumb::before, .thumb::after { content: ""; display: block; position: absolute; z-index: -1; }
.thumb b { font: bold clamp(17px,1.5vw,22px)/1 Georgia, serif; letter-spacing: -.055em; }
.rings { --cover: #254f47; --foil: #f7d585; }
.rings::before { width: 85px; height: 60px; top: -6px; left: 13px; border-radius: 50%; background: repeating-radial-gradient(ellipse, transparent 0 4px, #b7c79b 5px 6px, transparent 7px 10px); transform: rotate(-32deg); }
.stairs { --cover: #a74931; --foil: #ffe4ac; }
.stairs::before { width: 80px; height: 65px; top: 0; left: 8px; background: repeating-linear-gradient(-45deg, transparent 0 7px, #f5be7c 8px 10px, transparent 11px 15px); clip-path: polygon(0 0,100% 0,100% 42%,76% 42%,76% 59%,50% 59%,50% 77%,26% 77%,26% 94%,0 94%); }
.grid { --cover: #d5ae68; --foil: #353f37; }
.grid::before { width: 69px; height: 58px; top: 4px; right: -3px; background-image: linear-gradient(35deg, transparent 46%,#435047 47% 50%,transparent 51%), linear-gradient(-35deg, transparent 46%,#435047 47% 50%,transparent 51%); background-size: 22px 19px; transform: skewY(-8deg); }
.waves { --cover: #405771; --foil: #fae7bd; }
.waves::before { top: -25px; right: -29px; width: 88px; height: 88px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 5px, #b6c7c6 6px 7px,transparent 8px 12px); }
.details { min-width: 0; }
.topic { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: #566a5d; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.external { color: #76887a; font-size: 15px; line-height: 1; }
.details h3 { font: 700 clamp(17px,1.45vw,21px)/1.5 var(--serif); margin: 4px 0 6px; overflow-wrap: anywhere; }
.card:hover h3 { color: #945023; }
.details p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.author { font-size: 11px; color: #617066; display: block; margin-top: 10px; overflow-wrap: anywhere; }
.empty { padding: 32px 0; text-align: center; }
.site-footer { margin-top: 54px; padding: 22px 0 26px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 12px; gap: 14px; }
.site-footer .filing { justify-self: center; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .back-top { justify-self: end; }
@media (max-width: 840px) {
  .intro { max-width: 70%; }
  .cards { gap: 12px; }
  .card { padding: 15px; gap: 13px; grid-template-columns: 63px 1fr; }
  .thumb { width: 63px; height: 91px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .masthead { min-height: 66px; gap: 24px; }
  .masthead nav { display: none; }
  .brand strong { font-size: 21px; }
  .brand-mark { width: 30px; height: 33px; }
  .find { padding: 6px 11px; }
  .find kbd { display: none; }
  .hero { min-height: 435px; align-items: end; border-radius: 13px; }
  .hero img { object-position: 78% 32%; height: 77%; }
  .hero::after { background: linear-gradient(0deg, #0d3028 3%, rgba(12,44,36,.96) 24%, rgba(12,44,36,.68) 43%, transparent 70%); }
  .intro { padding: 22px 23px 25px; max-width: 100%; }
  .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .hero h1 { font-size: clamp(35px,8.8vw,49px); }
  .intro-copy { font-size: 13px; margin: 11px 0 15px; }
  .explore { padding: 7px 13px; font-size: 13px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .toolbar { gap: 5px; margin: 14px 0; }
  .toolbar button { padding: 5px 8px; }
  .library { padding-top: 32px; }
  .site-footer { margin-top: 32px; grid-template-columns: 1fr auto; row-gap: 10px; }
  .site-footer .filing { grid-area: 2 / 1 / 3 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
