@import url("../volume-base.css");

:root{
  --ink:#202126;
  --muted:#6c6a6a;
  --paper:#eee8dc;
  --paper2:#ddd4c5;
  --night:#171d2d;
  --night2:#273149;
  --white:#fffaf1;
  --red:#98423f;
  --red2:#d08a68;
  --gold:#b99a62;
  --accent:#53658f;
  --accent-deep:#263451;
  --line:rgba(32,33,38,.2);
  --line2:rgba(255,250,241,.2);
}

body{
  background-color:var(--paper);
  background-image:radial-gradient(rgba(23,29,45,.055) .65px,transparent .75px);
  background-size:7px 7px;
}

.site-header.scrolled{background:rgba(238,232,220,.95)}
.seal{border-radius:50%;background:var(--red);font-family:var(--serif);font-weight:700}
.volume-switch{white-space:nowrap}
.volume-switch .active{background:var(--red)}

.hero{
  min-height:100svh;
  background:var(--night);
}
.hero::before{
  position:absolute;
  inset:0;
  width:auto;
  height:auto;
  content:"";
  border:0;
  border-radius:0;
  box-shadow:none;
  opacity:.18;
  background:
    linear-gradient(90deg,transparent 0 10%,rgba(255,255,255,.08) 10.05% 10.12%,transparent 10.17% 100%),
    linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:100% 100%,100% 118px;
  pointer-events:none;
}
.hero-image-wrap{
  position:absolute;
  inset:0 0 0 52%;
  overflow:hidden;
  background:#cabd9f;
}
.hero-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 42%;
  filter:saturate(.72) sepia(.08) contrast(1.05) brightness(.7);
  transform:scale(1.04) translateY(var(--hero-shift,0));
  transition:transform .15s linear;
}
.hero-ink{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,var(--night) 0%,rgba(23,29,45,.98) 18%,rgba(23,29,45,.66) 50%,rgba(23,29,45,.12) 82%),
    linear-gradient(0deg,rgba(23,29,45,.74),transparent 58%);
}
.hero-copy{
  position:relative;
  z-index:2;
  align-self:center;
  width:min(790px,64vw);
  padding:118px 0 72px var(--side);
}
.kicker{
  margin:0 0 28px;
  color:#e2bd7a;
  font-size:10px;
  font-weight:700;
  letter-spacing:.17em;
}
.hero h1{
  max-width:760px;
  margin:0;
  font-family:var(--serif);
  font-size:clamp(64px,7.25vw,108px);
  font-weight:500;
  line-height:.96;
  letter-spacing:-.075em;
}
.hero-intro{
  max-width:650px;
  margin:31px 0 0;
  color:rgba(255,250,241,.7);
  font-size:13px;
  line-height:1.9;
}
.hero-actions{margin-top:36px}
.primary{
  color:var(--white);
  background:var(--red);
}
.primary:hover{background:#ad5149}
.hero-caption{
  right:var(--side);
  bottom:30px;
  padding-left:15px;
  border-left:1px solid rgba(255,250,241,.28);
}
.hero-caption span{color:#e2bd7a}

.section-label span,.eyebrow{color:var(--red)}
.section-head h2,.lab-copy h2{letter-spacing:-.055em}
.section-head>p{line-height:1.9}

.questions{background:var(--paper)}
.question-button:hover,.question-button.active{
  color:var(--white);
  background:var(--red);
}
.question-button>span{color:var(--red)}
.question-panel{position:relative;overflow:hidden}
.question-panel::before{
  position:absolute;
  right:1%;
  bottom:-58px;
  content:"异";
  color:rgba(83,101,143,.08);
  font-family:var(--serif);
  font-size:210px;
  line-height:1;
  pointer-events:none;
}
.question-panel>*{position:relative;z-index:1}
.question-people button{color:var(--red)}

.cross-reading{
  margin-top:64px;
  padding-top:22px;
  border-top:1px solid var(--ink);
}
.cross-reading-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  margin-bottom:10px;
}
.cross-reading-head span{color:var(--red);font-size:10px;letter-spacing:.12em}
.cross-reading-head p{margin:0;color:var(--muted);font-size:11px}
.cross-reading-list{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}
.cross-reading-list a{
  display:grid;
  gap:8px;
  padding:20px 18px 20px 0;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.cross-reading-list a+a{padding-left:18px;border-left:1px solid var(--line)}
.cross-reading-list span{color:var(--red);font-size:10px}
.cross-reading-list strong{font-family:var(--serif);font-size:20px;font-weight:500}
.cross-reading-list small{color:var(--muted);font-size:10px;line-height:1.65}
.cross-reading-list a:hover strong{color:var(--red)}

.daily{background:#60343c}
.daily-top p,.daily-top button,.daily-quote cite,.daily-explain span{color:#e5b17e}
.daily-quote>p,.quote-original{direction:auto;unicode-bidi:plaintext;font-family:var(--serif)!important}
.daily-explain button{color:#e5b17e}

.timeline{background:var(--night2)}
.timeline-intro,.lab{background:var(--night)}
.period-rail{background:#111725}
.period-nav-button:hover,.period-nav-button:focus-visible,.period-nav-button.active{
  color:var(--white);
  background:#313d5a;
}
.period-number{color:rgba(185,154,98,.18)}
.period-shift{
  margin-top:25px;
  padding-top:18px;
  border-top:1px solid rgba(185,154,98,.4);
}
.period-shift span{display:block;color:#e2bd7a;font-size:9px;font-weight:700;letter-spacing:.12em}
.period-shift p{max-width:780px;margin:8px 0 0;color:rgba(255,250,241,.7);font-family:var(--serif);font-size:16px;line-height:1.7}
.period-note{border-color:rgba(255,250,241,.18)}
.person-row:hover{background:rgba(185,154,98,.08)}

.people{background:var(--paper)}
.people-results{border-top:1px solid var(--ink)}
.index-row:hover{color:var(--red);background:rgba(83,101,143,.055)}
.index-row strong small,.dialog-title>span{direction:auto;unicode-bidi:plaintext;font-family:var(--serif)}
.index-row b{font-weight:500;color:var(--red)}

.terms{
  background:
    linear-gradient(90deg,rgba(83,101,143,.045) 1px,transparent 1px),
    var(--paper2);
  background-size:25% 100%;
}
.term-lanes{margin-top:72px;border-top:1px solid var(--ink)}
.term-lane{
  display:grid;
  grid-template-columns:42px minmax(210px,.36fr) 1fr;
  gap:28px;
  align-items:start;
  padding:28px 0 30px;
  border-bottom:1px solid var(--line);
}
.lane-index{padding-top:5px;color:var(--red);font-size:9px;letter-spacing:.12em}
.term-lane h3{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(21px,2vw,27px);
  font-weight:500;
  letter-spacing:-.03em;
}
.term-lane header p{
  max-width:360px;
  margin:9px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.75;
}
.lane-chain{display:flex;gap:0;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;row-gap:16px}
.lane-chain .term-chip{
  position:relative;
  min-width:112px;
  padding:3px 34px 3px 0;
  color:var(--ink);
  text-align:left;
  background:transparent;
  border:0;
  cursor:pointer;
  font-family:var(--sans);
}
.term-chip::after{
  position:absolute;
  top:14px;
  right:10px;
  width:15px;
  height:1px;
  content:"";
  background:rgba(32,33,38,.25);
}
.term-chip:last-child::after{display:none}
.term-chip span{
  display:block;
  font-family:var(--serif);
  font-size:16px;
  transition:color .2s ease,transform .2s ease;
}
.term-chip small{
  display:block;
  max-width:120px;
  margin-top:4px;
  overflow:hidden;
  color:var(--muted);
  font-size:8px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lane-chain .term-chip:hover{
  color:var(--ink);
  background:transparent;
  border:0;
}
.lane-chain .term-chip:hover small{color:var(--muted)}
.term-chip:hover span{color:var(--red);transform:translateX(3px)}
.lane-chain .term-chip.active,.lane-chain .term-chip.related{color:var(--ink);background:transparent;border:0}
.term-chip.active span{color:var(--red)}
.term-chip.active span::before{
  display:inline-block;
  width:5px;
  height:5px;
  margin:0 7px 3px 0;
  content:"";
  border-radius:50%;
  background:var(--red);
}
.term-chip.related span{color:var(--accent)}

.terms .search-block{margin-top:90px}
.terms .filters{gap:25px;padding:0;border-bottom:1px solid var(--line)}
.terms .filters button,.terms .filters button.active{
  padding:16px 0 12px;
  color:var(--muted);
  background:transparent;
  border:0;
  border-bottom:2px solid transparent;
}
.terms .filters button:hover{color:var(--ink)}
.terms .filters button.active{color:var(--red);border-bottom-color:var(--red)}

.term-workbench{
  grid-template-columns:minmax(0,1fr) minmax(340px,.48fr);
  margin-top:56px;
  border-top:1px solid var(--ink);
  border-bottom:0;
}
.term-map{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 30px;
  padding-right:34px;
  border-right:0;
}
.term-node,.term-node:hover,.term-node.active{
  display:grid;
  grid-template-columns:34px 1fr auto;
  min-height:104px;
  padding:20px 4px 18px 0;
  color:var(--ink);
  text-align:left;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  transition:padding .2s ease,background .2s ease;
}
.term-node:hover{padding-left:10px;background:rgba(83,101,143,.055)}
.term-node.active{padding-left:14px;background:rgba(152,66,63,.075);box-shadow:inset 3px 0 var(--red)}
.term-node .term-node-index{
  grid-row:1/3;
  margin:3px 0 0;
  color:var(--red);
  font-family:var(--sans)!important;
  font-size:8px;
  letter-spacing:.1em;
}
.term-node strong{
  grid-column:2;
  font-family:var(--serif);
  font-size:22px;
  font-weight:500;
  letter-spacing:-.025em;
}
.term-node small{
  grid-column:2;
  margin-top:5px;
  overflow:hidden;
  color:var(--muted);
  font-size:8px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.term-node em{
  grid-column:3;
  grid-row:1/3;
  align-self:end;
  color:var(--muted);
  font-size:8px;
  font-style:normal;
}
.term-node.related strong{color:var(--accent)}
.term-node.related strong::after{
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 0 4px 7px;
  content:"";
  border-radius:50%;
  background:var(--accent);
}

.term-detail{
  position:sticky;
  top:88px;
  min-height:620px;
  padding:42px 40px 44px;
  overflow:hidden;
  color:var(--white);
  background:var(--night);
  border-top:4px solid var(--gold);
}
.term-detail::after{
  position:absolute;
  right:-18px;
  bottom:-36px;
  content:"Ѣ";
  color:rgba(255,250,241,.045);
  font-family:serif;
  font-size:150px;
  pointer-events:none;
}
.term-detail>*{position:relative;z-index:1}
.term-node span,.term-original{direction:auto;unicode-bidi:plaintext;font-family:var(--serif)!important}
.term-detail-head{display:flex;justify-content:space-between;gap:20px;color:#e2bd7a;font-size:8px;letter-spacing:.12em}
.term-detail h3{
  margin:36px 0 6px;
  font-family:var(--serif);
  font-size:clamp(42px,4vw,60px);
  font-weight:500;
  line-height:1;
  letter-spacing:-.06em;
}
.term-detail .term-original{margin:0;color:rgba(255,250,241,.5);font-size:10px}
.term-detail .term-definition{margin:25px 0 0;color:rgba(255,250,241,.78);font-family:var(--serif);font-size:15px;line-height:1.8}
.term-detail h4{margin:30px 0 10px;color:#e2bd7a;font-size:8px;font-weight:600;letter-spacing:.14em}
.term-detail ul{margin:0;padding:0;list-style:none;border-top:1px solid var(--line2)}
.term-detail li{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid var(--line2);font-size:10px}
.term-detail li b{color:#e2bd7a;font-size:8px;font-weight:500}
.term-example-copy{margin:0;color:rgba(255,250,241,.7);font-size:11px;line-height:1.75}
.related-terms{display:flex;flex-wrap:wrap;gap:7px 15px}
.related-terms button{
  padding:0 0 4px;
  color:var(--white);
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,250,241,.38);
  cursor:pointer;
  font-family:var(--serif);
  font-size:11px;
}
.related-terms button:hover{color:#e2bd7a;border-bottom-color:#e2bd7a}
.term-source{display:block;margin-top:28px;color:rgba(255,250,241,.38);font-size:8px;line-height:1.6}

.lab{background:var(--accent-deep)}
.lab-options button:hover,.lab-options button.selected{color:#e8c48b}
.lab-feedback{border-color:#e8c48b}

.source-card:hover{border-color:var(--red)}
.source-card span,.source-card b{color:var(--red)}

.argument-steps{background:#303b57!important}
.dialog-rich h3{color:var(--red)}
.argument-steps h3,.argument-steps li::before{color:#e2bd7a}
.related-buttons button:hover{color:var(--white);background:var(--red);border-color:var(--red)}
.source-links a:hover{border-color:var(--red)}

@media(max-width:1080px){
  .volume-switch a:nth-child(2),.volume-switch a:nth-child(3){display:none}
}

@media(max-width:920px){
  .volume-switch a:nth-child(4){display:none}
  .hero-image-wrap{inset:0 0 0 47%}
  .hero-copy{width:min(760px,72vw)}
  .term-lane{grid-template-columns:36px minmax(180px,.36fr) 1fr;gap:20px}
  .term-workbench{grid-template-columns:1fr}
  .term-map{padding-right:0}
  .term-detail{position:static;min-height:0;margin-top:44px}
}

@media(max-width:720px){
  .volume-switch{display:none}
  .hero{min-height:890px}
  .hero::before{background-size:100% 100%,100% 92px}
  .hero-image-wrap{inset:0 0 auto 0;height:56%}
  .hero-image-wrap img{object-position:50% 30%;filter:saturate(.7) sepia(.1) contrast(1.04) brightness(.62)}
  .hero-ink{background:linear-gradient(0deg,var(--night) 0%,rgba(23,29,45,.98) 34%,rgba(23,29,45,.3) 78%,rgba(23,29,45,.16) 100%)}
  .hero-copy{align-self:end;width:100%;padding:345px var(--side) 66px}
  .hero h1{max-width:100%;font-size:clamp(48px,13.6vw,62px);line-height:.98;letter-spacing:-.08em}
  .hero-intro{margin-top:24px;font-size:11px;line-height:1.82}
  .hero-actions{align-items:flex-start;flex-direction:column;gap:18px;margin-top:28px}
  .hero-caption{display:none}
  .cross-reading-head{align-items:flex-start;flex-direction:column;gap:8px}
  .cross-reading-list{grid-template-columns:repeat(2,1fr)}
  .cross-reading-list a{padding:17px 12px 17px 0}
  .cross-reading-list a+a{padding-left:12px}
  .cross-reading-list a:nth-child(2n+1){padding-left:0;border-left:0}
  .cross-reading-list strong{font-size:17px}
  .period-shift p{font-size:15px}
  .terms{background-size:50% 100%}
  .term-lanes{margin-top:52px}
  .term-lane{grid-template-columns:28px 1fr;gap:8px 14px;padding:23px 0 25px}
  .lane-index{grid-row:1/3}
  .term-lane header,.lane-chain{grid-column:2}
  .term-lane header p{margin-top:6px}
  .lane-chain{margin-top:10px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
  .term-chip{flex:0 0 auto;min-width:104px}
  .terms .filters{gap:18px;flex-wrap:nowrap;overflow-x:auto}
  .terms .filters button{flex:0 0 auto}
  .term-workbench{margin-top:40px}
  .term-map{grid-template-columns:1fr}
  .term-node{min-height:94px}
  .term-detail{margin-right:calc(var(--side)*-1);margin-left:calc(var(--side)*-1);padding:36px var(--side) 42px}
}

@media(prefers-reduced-motion:reduce){
  .hero-image-wrap img{transform:none!important}
}
.profile-story{display:grid;grid-template-columns:130px minmax(0,1fr);gap:clamp(26px,5vw,72px);align-items:start;margin-top:42px;padding:28px 0 32px;border-top:1px solid var(--ink);border-bottom:1px solid var(--line)}
.profile-story>span{padding-top:8px;color:var(--red);font-size:9px;font-weight:700;letter-spacing:.14em}
.profile-story p{max-width:760px;margin:0;color:var(--ink);font-family:var(--serif);font-size:clamp(18px,2vw,25px);font-weight:500;line-height:1.78;letter-spacing:.015em}
.profile-story p::first-letter{float:left;margin:8px 8px 0 0;color:var(--red);font-size:3.15em;line-height:.72}
@media(max-width:760px){.profile-story{display:block;margin-top:34px;padding:21px 0 25px}.profile-story>span{display:block;margin-bottom:17px;padding:0}.profile-story p{font-size:18px;line-height:1.82}.profile-story p::first-letter{float:none;margin:0;color:inherit;font-size:inherit;line-height:inherit}}
.index-row{grid-template-rows:auto auto}
.index-row .index-story{grid-column:3/-1;grid-row:2;padding-top:2px;color:var(--muted);font-family:var(--serif);font-size:12px;line-height:1.65}
.index-row .period-name{grid-column:4;grid-row:1}
.index-row>b:last-child{grid-column:5;grid-row:1}
@media(max-width:760px){.index-row{grid-template-columns:36px minmax(0,1fr) 18px;gap:12px}.index-row strong{grid-column:2}.index-row .thesis{grid-column:2/-1}.index-row .index-story{grid-column:2/-1;grid-row:auto;font-size:11px}.index-row .period-name{grid-column:2;grid-row:auto}.index-row>b:last-child{grid-column:3;grid-row:auto}}
