:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #20263b;
  background: #f6f7fb;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #4844ab; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #7b73e4; outline-offset: 3px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px max(5vw, calc((100% - 1120px)/2)); background: white; border-bottom: 1px solid #e6e8ee; }
header a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #19213b; font-size: 20px; font-weight: 750; }
header img { width: 34px; height: 34px; border-radius: 8px; }
header .journal-home { color: #514bb6; font-size: 15px; }
.journal { width: min(90%, 1120px); margin: 32px auto 80px; }
.masthead {
  position: relative; isolation: isolate; overflow: hidden; padding: 40px clamp(20px, 4vw, 56px);
  border-radius: 20px; color: #fff; background: linear-gradient(110deg,#272554,#363777 60%,#454c99);
}
.masthead::after {
  content: ""; pointer-events: none; position: absolute; inset: -90% -12% -80% 53%; z-index: -1;
  background: repeating-radial-gradient(ellipse at center,transparent 0 17px,#c8c9ff56 18px,transparent 19px 30px);
  transform: rotate(-32deg) scaleX(.8); mask-image: linear-gradient(110deg,transparent,#000 44%);
}
h1,h2,p { margin: 0; }
.masthead h1 { font-size: clamp(32px,4.5vw,54px); letter-spacing: -.035em; }
.masthead p { color: #e0e0fa; margin: 9px 0 22px; }
form { display: flex; width: min(100%, 435px); background: white; padding: 5px; border-radius: 9px; }
form input { flex: 1; min-width: 0; border: none; background: transparent; padding: 9px 12px; color: #252847; font: inherit; }
form button { border: 0; padding: 0 18px; background: #5149ae; color: white; border-radius: 6px; font: inherit; cursor: pointer; }
.library,.reader { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 28px; margin-top: 28px; align-items: start; }
aside,.results,.reader article { background: white; border: 1px solid #e3e5ee; border-radius: 14px; }
aside { padding: 20px 14px; position: sticky; top: 16px; }
aside h2 { font-size: 15px; padding: 0 10px; margin-bottom: 12px; }
aside nav a { display: block; padding: 10px; font-size: 15px; line-height: 1.5; color: #475066; border-radius: 6px; text-decoration: none; }
aside nav a:hover,aside nav a[aria-current=true] { background: #f0effd; color: #4e46ac; }
.results { padding: 22px clamp(14px,3vw,32px); }
.list-heading,.meta { display: flex; align-items:center; gap: 12px; }
.list-heading { justify-content: space-between; border-bottom: 1px solid #e7e9f0; padding-bottom: 14px; }
.list-heading h2 { font-size: 22px; }
.list-heading span,.meta { color: #60697b; font-size: 13px; }
.journal-list { list-style: none; padding: 0; margin: 0; }
.journal-list li + li { border-top: 1px solid #e7e9f0; }
.journal-list a { display: block; text-decoration:none; color:inherit; padding: 22px 0; }
.meta span { background: #efeffc; color: #4d469d; border-radius: 5px; padding: 3px 8px; }
.journal-list h2 { font-size: clamp(19px,2vw,24px); margin: 9px 0 6px; line-height: 1.5; }
.journal-list p { line-height: 1.75; color: #586277; }
.journal-list a:hover h2 { color: #5149ae; }
.paging a { display: inline-block; padding: 10px; }
.crumb { display:inline-block; font-size:14px; text-decoration:none; margin-bottom: 16px; }
.reader { grid-template-columns: minmax(0,1fr) 245px; margin-top: 0; }
.reader article { padding: clamp(20px,4vw,52px); min-width: 0; }
.reader h1 { font-size: clamp(28px,3.2vw,42px); line-height: 1.35; margin: 12px 0 22px; }
.reader article p { margin: 14px 0; font-size: 17px; line-height: 1.95; }
.reader article .lead { color: #555577; background: #f5f4fd; border-left: 3px solid #7970d4; padding: 14px 18px; }
.reader article h2 { margin-top: 34px; font-size: 22px; scroll-margin-top: 20px; }
.reader article nav { border-top: 1px solid #e3e5ee; margin-top: 30px; padding-top: 12px; }
.reader article nav a { display:block; margin:8px 0; }
@media(max-width:760px) {
  .journal { width:calc(100% - 28px); margin-top:18px; }
  .library,.reader { grid-template-columns:1fr; gap:14px; }
  aside { position:static; }
  .library aside { padding:10px; }
  .library aside h2 { display:none; }
  .library aside nav { display:flex; flex-wrap:wrap; }
  aside nav a { padding:7px 9px; font-size:14px; }
  .reader aside { grid-row:1; }
  .reader aside nav a { padding-block:3px; }
  .masthead { padding:26px 20px; }
}
