@font-face {
  font-family: "Noto Serif SC Local";
  src: url("assets/fonts/noto-serif-sc.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #080d16;
  --ink: #eeece6;
  --muted: #bbc3cc;
  --blue: #e1c8a6;
  --night: #0a1019;
  --line: #b8c5cf40;
  --serif: "Noto Serif SC Local", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; isolation: isolate; min-height: 100svh; margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
:focus-visible { outline: 2px solid #eacda1; outline-offset: 5px; }
[id] { scroll-margin-top: 28px; }

.shell, .masthead-inner { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip { color: #111821; position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 14px; background: white; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--line); background: linear-gradient(#070b12a8, #070b1230); }
.masthead-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 700 23px/1 var(--serif); letter-spacing: .09em; white-space: nowrap; }
.eclipse { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.eclipse::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #e5dccb; top: 2px; right: 2px; }
.masthead .wordmark { font-weight: 630; letter-spacing: .065em; font-size: clamp(23px, 2.1vw, 30px); }
.navigation { display: flex; align-items: stretch; gap: clamp(24px, 3vw, 44px); align-self: stretch; }
.navigation a { letter-spacing: .035em; display: grid; place-items: center; position: relative; font-size: 14px; color: var(--muted); white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: var(--ink); }
.navigation a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); }

.hero { min-height: 483px; margin-top: 25px; isolation: isolate; overflow: hidden; position: relative; display: flex; align-items: center; border-radius: 10px; background: #0a1421; color: #f9faf4; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: 50% 55%; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, rgba(6, 14, 24, .51), rgba(6, 14, 24, .18) 50%, transparent 78%); }
.hero-content { padding: 55px clamp(40px, 6.4vw, 92px) 64px; }
.hero h1 { font-size: clamp(48px, 5.05vw, 73px); font-weight: 700; letter-spacing: -.045em; line-height: 1.19; }
.hero p { margin-top: 23px; font-size: 16px; line-height: 1.8; color: #dce5e9; letter-spacing: .055em; }
.hero .button { margin-top: 31px; }
.mobile-break { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 4px; padding: 10px 17px; font-size: 14px; font-weight: 600; min-height: 44px; width: fit-content; transition: background-color .15s, border-color .15s; }
.button-light { background: #eff3f1; color: #152631; }
.button-light:hover { background: #fff; }
.button-outline { border-color: #b5c1c0; color: #244450; }
.button-outline:hover { background: #e7ece8; border-color: #8d9d9d; }
.button-dark { background: #e6d4b7; color: #191c22; }
.button-dark:hover { background: #f6e5c9; }

.arrow { display: inline-block; width: 15px; height: 12px; position: relative; flex: none; }
.arrow::before { content: ""; position: absolute; width: 13px; border-top: 1px solid currentColor; top: 50%; left: 0; }
.arrow::after { content: ""; position: absolute; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; top: calc(50% - 2.5px); right: 2px; transform: rotate(45deg); }
.arrow-back { transform: rotate(180deg); }

.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .44fr); gap: clamp(40px, 6vw, 94px); padding: 57px 20px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; min-height: 42px; }
.section-header h2, .guest-invite h2 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.filters { display: inline-flex; align-items: center; gap: 2px; }
.filters button { border: 0; background: transparent; color: var(--muted); border-radius: 4px; padding: 5px 10px; min-height: 34px; white-space: nowrap; font-size: 13px; }
.filters button:hover, .filters button[aria-pressed="true"] { background: #e7ebe7; color: #263e49; }
.essay-list { border-top: 1px solid var(--line); }
.essay-row { padding: 21px 46px 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.metadata { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .045em; color: var(--blue); line-height: 1.6; }
.metadata time + span { border-left: 1px solid #aebdc1; padding-left: 12px; }
.essay-row h2 { font-size: clamp(22px, 2.15vw, 29px); line-height: 1.42; margin-top: 5px; letter-spacing: -.025em; }
.essay-row h2 a:hover, .discussion-card h2 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.excerpt { color: var(--muted); margin-top: 5px; font-size: 14px; line-height: 1.8; }
.entry-arrow { position: absolute; inset: 41% 1px auto auto; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d5dcda; border-radius: 50%; color: var(--blue); }
.entry-arrow:hover { background: #e7ebe7; }
.discussion-card { position: relative; isolation: isolate; overflow: hidden; background: #edf0ee; border: 1px solid #dce3df; border-radius: 7px; padding: 25px 24px 23px; }
.discussion-card h2 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.45; letter-spacing: -.029em; margin: 8px 0 11px; }
.discussion-card > p:not(.metadata) { color: var(--muted); font-size: 14px; }
.text-link, .back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 14px; font-weight: 600; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .24em; }
.discussion-card .text-link { margin-top: 19px; }

.guest-invite { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 54px; padding: 30px 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f0f0ea; }
.guest-invite h2 { font-size: 26px; }
.guest-invite p { margin-top: 7px; color: var(--muted); }
.guest-invite .button { flex: none; }
.site-footer { margin-top: 48px; padding: 26px 20px 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .wordmark { font-size: 17px; }
.site-footer .eclipse { width: 20px; height: 20px; }
.site-footer .eclipse::after { width: 15px; height: 15px; top: 1px; right: 1px; }
.site-footer > a:last-child { color: var(--muted); font-size: 13px; }
.site-footer > a:last-child:hover { text-decoration: underline; }

.read-page { width: min(665px, calc(100% - 52px)); min-height: 58vh; margin: 48px auto 70px; }
.read-header { border-bottom: 1px solid var(--line); margin: 27px 0 29px; padding-bottom: 21px; }
.read-header h1 { font-size: clamp(34px, 5vw, 55px); line-height: 1.27; letter-spacing: -.045em; text-wrap: balance; }
.read-header .metadata { margin-bottom: 10px; }
.standfirst { color: var(--muted); font: 18px/1.85 var(--serif); margin-top: 14px; }
.read-header .text-link { margin-top: 15px; }
.prose { font: 19px/2 var(--serif); letter-spacing: .012em; }
.prose p { margin: 0 0 1.23em; }
.prose h2 { font-size: 27px; line-height: 1.55; margin: 1.4em 0 .32em; }
.read-discussion { margin-top: 42px; padding: 19px 22px; border-left: 2px solid #95aaa9; background: #141d28d9; }
.read-discussion h2 { font-size: 23px; line-height: 1.5; margin: 4px 0 8px; }
.interaction-form { display: grid; gap: 16px; }
.interaction-form h2 { font-size: 24px; }
.interaction-form label { display: grid; gap: 6px; font-weight: 600; }
.interaction-form input, .interaction-form textarea { color: var(--ink); background: #0c141fe8; border: 1px solid #5a6879; border-radius: 4px; padding: 9px 11px; width: 100%; font-weight: 400; }
.interaction-form input { max-width: 270px; }
.interaction-form textarea { resize: vertical; }
.form-status { color: var(--blue); }
.form-status:empty { display: none; }

@media (max-width: 880px) {
  .shell, .masthead-inner { width: calc(100% - 52px); }
  .editorial { gap: 30px; padding-inline: 3px; grid-template-columns: minmax(0, 1fr) minmax(226px, .57fr); }
  .hero { min-height: 435px; }
  .section-header h2 { font-size: 26px; }
  .discussion-card { padding-inline: 18px; }
}
@media (max-width: 630px) {
  .shell, .masthead-inner { width: calc(100% - 36px); }
  .masthead-inner { min-height: unset; align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 17px; }
  .wordmark { font-size: 21px; }
  .navigation { width: 100%; gap: 0; justify-content: space-between; }
  .navigation a { min-height: 43px; }
  .hero { min-height: 421px; margin-top: 17px; align-items: flex-end; }
  .hero-content { padding: 100px 23px 34px; }
  .hero h1 { font-size: clamp(36px, 9.65vw, 47px); letter-spacing: -.035em; }
  .hero p { font-size: 14px; margin-top: 14px; }
  .hero .button { margin-top: 22px; }
  .hero-image { object-position: 66% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(6, 14, 24, .95), rgba(6, 14, 24, .68) 46%, rgba(6, 14, 24, .06) 94%); }
  .mobile-break { display: initial; }
  .editorial { grid-template-columns: minmax(0, 1fr); gap: 35px; padding-top: 34px; }
  .section-header { min-height: 34px; margin-bottom: 12px; }
  .essay-row { padding-block: 17px; padding-right: 38px; }
  .entry-arrow { width: 30px; height: 30px; }
  .discussion-card { padding: 19px; }
  .guest-invite { margin-top: 35px; padding: 22px 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer { margin-top: 19px; padding: 24px 3px; }
  .read-page { margin-block: 29px 37px; }
  .prose { font-size: 18px; line-height: 1.95; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

body:has(#home:not([hidden])) .masthead {position:absolute;inset:0 0 auto;z-index:3;border-color:transparent;background:linear-gradient(#050912a6,transparent);color:white}
body:has(#home:not([hidden])) .navigation a {color:#edeef2}
body:has(#home:not([hidden])) .navigation a[aria-current]::after {background:#f5dab3}
body:has(#home:not([hidden])) .eclipse::after {background:#ebeae3}
.filters button:hover,.filters button[aria-pressed=true] {background:#343b43;color:#f2e6d4}
.entry-arrow,.guest-invite .button {color:#dcc39f;border-color:#535a60}
.entry-arrow:hover,.guest-invite .button:hover {background:#313a43}
.footer-details {display:flex;align-items:center;gap:16px;color:var(--muted);font-size:12px}

.feature-intro { margin: 18px 0 20px; max-width: 34em; color: #dedbd3; font: 400 clamp(16px, 1.25vw, 19px)/1.95 var(--serif); }
.home-columns { background: #0b121be8; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.home-columns h2, .archive-subhead { font: 500 clamp(24px, 2.7vw, 36px)/1.4 var(--serif); margin-bottom: 18px; }
.column-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
.column-links a { position: relative; display: block; min-width: 0; padding: 16px 22px 18px 0; border-top: 1px solid var(--line); }
.column-links strong, .column-reads strong { display: block; color: var(--ink); font: 500 23px/1.5 var(--serif); }
.column-links a span, .archive-head > p { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .column-index { display: grid; grid-template-columns: minmax(180px,.6fr) minmax(0,2fr); gap: 5%; }
  .column-index h2 { margin: 12px 0; align-self: start; }
}
.column-links i, .column-reads i { position: absolute; top: 18px; right: 2px; color: #ccb79a; font-style: normal; }
.archive-head { margin-bottom: 25px; }
.archive-head h1 { margin: 8px 0; }
.archive-subhead { margin-top: 36px; }
.column-reads { border-bottom: 1px solid var(--line); }
.column-reads a { display: block; position: relative; border-top: 1px solid var(--line); padding: 15px 25px 17px 0; }
.column-reads small { color: #cbb89b; }
.paper-note, .paper-toc { font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #cdc7be; }
.paper-layout { min-width: 0; }
.paper-toc { margin: 0 0 26px; font-family: var(--sans); }
.paper-toc summary { cursor: pointer; color: #e4d5be; font-size: 14px; }
.paper-toc nav { display: grid; margin-top: 12px; }
.paper-toc a {
  border-left: 2px solid #a7a39b36;
  padding: 6px 0 6px 12px;
  color: #bfc3c7;
  line-height: 1.55;
}
.paper-toc a:hover { color: #f6e7ce; }
.paper-toc a[aria-current] { border-color: #d8c2a2; color: #f0d7b1; }
@media (min-width: 1160px) {
  .paper-layout {
    display: grid;
    grid-template-columns: 174px minmax(0,1fr);
    gap: 32px;
    margin-inline-start: -206px;
    align-items: start;
  }
  .paper-toc { position: sticky; top: 26px; padding-top: 6px; border: 0; max-height: calc(100svh - 52px); overflow: auto; }
  .paper-toc a { font-size: 13px; }
}
.manuscript .prose h3 { font: 600 21px/1.5 var(--serif); margin: 1.3em 0 .5em; }
@media (max-width: 630px) {
  .column-links { grid-template-columns: minmax(0,1fr); }
  .column-links strong, .column-reads strong { font-size: 21px; }
}
