:root {
  --paper:#faf8f4;
  --ink:#38332e;
  --muted:#756d64;
  --line:#e2dcd2;
  --accent:#99563d;
  --serif:"Baskervville","Songti SC","Noto Serif CJK SC",serif;
  --sans:"PingFang SC","Microsoft YaHei",sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:30px;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input {
  font:inherit;
}
button,a,input {
  -webkit-tap-highlight-color:transparent;
}
button {
  color:inherit;
  cursor:pointer;
}
a:focus-visible,button:focus-visible,input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px;
}
[hidden] {
  display:none!important;
}
.wrap {
  width:min(1120px,calc(100% - 80px));
  margin-inline:auto;
}
.header {
  height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.brand {
  font-family:var(--serif);
  font-size:37px;
  font-weight:bold;
  letter-spacing:-2px;
}
.brand-dot {
  color:var(--accent);
}
nav {
  display:flex;
  gap:36px;
  align-items:center;
  font-size:14px;
}
nav a {
  padding-block:10px;
}
.nav-current {
  border-bottom:1px solid var(--ink);
}
.search-toggle {
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  background:none;
  padding:8px 0;
}
.search-toggle>span:first-child {
  font-size:26px;
  line-height:1;
}
.hero {
  display:grid;
  grid-template-columns:1fr 330px;
  gap:70px;
  padding:78px 0 86px;
  align-items:center;
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  line-height:1.7;
  font-family:"IBM Plex Mono",monospace;
  margin:0 0 25px;
  color:var(--muted);
}
.hero h1 {
  font-family:var(--serif);
  font-size:clamp(44px,5vw,66px);
  font-weight:500;
  letter-spacing:1px;
  line-height:1.4;
  margin:0 0 25px;
}
.hero h1 span {
  position:relative;
  white-space:nowrap;
  isolation:isolate;
}
.hero h1 span:after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  height:8px;
  background:var(--highlight);
  z-index:-1;
}
.hero-description {
  font-size:14px;
  color:var(--muted);
  line-height:2.05;
  margin:0 0 27px;
}
.text-link {
  font-size:13px;
  display:inline-flex;
  gap:23px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:7px 0;
}
.text-link span {
  font-size:20px;
}
.hero-note {
  background:var(--surface);
  border:1px solid var(--line);
  padding:25px 28px 21px;
  transform:rotate(1deg);
  height:337px;
  position:relative;
  overflow:hidden;
}
.note-top,.note-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:monospace;
  font-size:9px;
  letter-spacing:1px;
}
.note-top>span:last-child {
  font-size:23px;
}
.hero-note p {
  font-family:var(--serif);
  font-size:26px;
  line-height:1.6;
  margin:122px 0 20px;
  position:relative;
}
.note-bottom {
  border-top:1px solid var(--line);
  padding-top:13px;
  color:var(--muted);
}
.note-art {
  position: absolute;
  top: 55px;
  right: 18px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  transform: rotate(18deg);
  filter: var(--leaf-filter);
}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--ink);
  padding-bottom:23px;
}
.section-title h2 {
  font-size:22px;
  font-weight:500;
  margin:0;
}
.section-title h2 span {
  font:italic 18px var(--serif);
  color:var(--muted);
  margin-left:20px;
}
.article-count {
  font-size:12px;
  color:var(--muted);
  font-family:monospace;
}
.tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:23px 0 12px;
  gap:15px;
}
.filters {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
.filter {
  padding:8px 14px;
  border:1px solid transparent;
  background:none;
  font-size:12px;
  border-radius:3px;
}
.filter.active {
  background:var(--accent);
  color:var(--paper);
}
.filter span {
  font:10px monospace;
  margin-left:8px;
  opacity:.65;
}
.filter:hover:not(.active) {
  border-color:var(--line);
}
.sample-label {
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.search-panel {
  padding:10px 0 20px;
}
.search-panel label {
  font-size:12px;
  display:block;
  margin-bottom:9px;
}
.search-panel input {
  width:100%;
  padding:13px 16px;
  border:1px solid var(--line);
  background:var(--field);
  color:var(--ink);
  border-radius:3px;
}
.article-row {
  display:grid;
  grid-template-columns:105px 1fr 94px;
  gap:27px;
  padding:32px 0;
  border-bottom:1px solid var(--line);
  align-items:start;
}
.article-date {
  font:12px/1.8 monospace;
  color:var(--muted);
  padding-top:5px;
}
.article-date span {
  display:block;
  font-size:24px;
  color:var(--muted);
  letter-spacing:-1px;
}
.article-tag {
  color:var(--accent);
  font-size:10px;
  letter-spacing:.5px;
}
.article-row h3 {
  font-size:23px;
  font-weight:500;
  line-height:1.5;
  margin:9px 0 10px;
}
.article-row h3 a:hover {
  color:var(--accent);
}
.article-row p {
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
  margin:0;
  max-width:680px;
}
.article-end {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  padding-top:37px;
  white-space:nowrap;
  font-size:10px;
  color:var(--muted);
}
.article-arrow {
  font-size:23px;
  color:var(--accent);
  transition:transform .2s;
}
.article-row:hover .article-arrow {
  transform:translate(3px,-3px);
}
.empty {
  padding:50px 0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.about {
  margin-top:74px;
  margin-bottom:72px;
  border:1px solid var(--line);
  padding:34px 36px;
  display:grid;
  grid-template-columns:80px 1fr auto;
  gap:30px;
  align-items:center;
  background:var(--surface);
}
.about-mark {
  font:bold 52px var(--serif);
  color:var(--accent);
  letter-spacing:-4px;
}
.about .eyebrow {
  font-size:9px;
  margin-bottom:10px;
}
.about h2 {
  font-family:var(--serif);
  font-size:23px;
  font-weight:500;
  margin:0 0 10px;
}
.about p:last-child {
  font-size:12px;
  line-height:2;
  color:var(--muted);
  margin:0;
  max-width:560px;
}
.about .text-link {
  white-space:nowrap;
}
.footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  padding:25px 0 35px;
  color:var(--muted);
  font-size:10px;
}
.footer a {
  color:var(--accent);
}
dialog {
  width:min(860px,calc(100% - 32px));
  max-height:90dvh;
  border:1px solid var(--line);
  padding:0;
  background:var(--paper);
  color:var(--ink);
  overscroll-behavior:contain;
}
dialog::backdrop {
  background:var(--overlay);
  backdrop-filter:blur(5px);
}
.reader-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 30px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:var(--paper);
  font-size:12px;
}
.reader-bar button {
  border:0;
  background:none;
  padding:7px;
}
.reader-content {
  padding:42px 55px 55px;
}
.reader-content h1 {
  font-family:var(--serif);
  font-size:34px;
  line-height:1.5;
  font-weight:500;
  margin:0 0 30px;
}
.reader-content .eyebrow {
  margin-bottom:17px;
}
.reader-content h2 {
  font-size:20px;
  margin:32px 0 12px;
  font-weight:500;
}
.reader-content p,.reader-content li {
  font-size:15px;
  line-height:2;
  color:var(--muted);
}
.reader-content pre {
  padding:18px 20px;
  background:var(--surface);
  overflow:auto;
  line-height:1.9;
  font-size:12px;
  border-left:2px solid var(--accent);
}
.reader-content code {
  font-family:"IBM Plex Mono",monospace;
}
.reader-content p code {
  background:var(--surface);
  padding:2px 5px;
}
.reader-note {
  border-top:1px solid var(--line);
  margin-top:35px;
  padding-top:18px;
  font-size:12px!important;
  color:var(--muted)!important;
}
@media(min-width:800px) {
  .hero-main {
    animation:appear .65s ease-out;
  }
  .hero-note {
    animation:appear .85s ease-out;
  }
}
@keyframes appear {
  from {
    opacity:0;
    translate:0 15px;
  }
  to {
    opacity:1;
    translate:0 0;
  }
}
@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .header {
    height:84px;
  }
  nav {
    gap:22px;
  }
  .brand {
    font-size:31px;
  }
  .hero {
    grid-template-columns:1fr;
    gap:35px;
    padding:48px 0 52px;
  }
  .hero h1 {
    font-size:46px;
  }
  .hero-note {
    height:235px;
    width:100%;
    transform:none;
  }
  .note-art {
    top:42px;
    left:auto;
    right:10px;
  }
  .hero-note p {
    margin:47px 0 17px;
    font-size:24px;
  }
  .note-bottom {
    margin-top:0;
  }
  .hero-description {
    font-size:13px;
  }
  .hero-description br {
    display:none;
  }
  .section-title h2 {
    font-size:20px;
  }
  .section-title h2 span {
    font-size:16px;
    margin-left:10px;
  }
  .tools {
    align-items:start;
  }
  .sample-label {
    display:none;
  }
  .filters {
    gap:2px;
  }
  .filter {
    padding:8px 10px;
  }
  .article-row {
    grid-template-columns:62px 1fr;
    gap:16px;
    padding:26px 0;
  }
  .article-date {
    font-size:10px;
  }
  .article-date span {
    font-size:19px;
  }
  .article-row h3 {
    font-size:19px;
  }
  .article-end {
    grid-column:2;
    padding:0;
    justify-content:start;
    margin-top:-6px;
  }
  .article-row p {
    font-size:12px;
  }
  .about {
    grid-template-columns:48px 1fr;
    padding:26px 20px;
    gap:16px;
    margin-block:48px;
  }
  .about-mark {
    font-size:42px;
  }
  .about .text-link {
    grid-column:2;
    justify-self:start;
  }
  .about h2 {
    font-size:21px;
  }
  .footer {
    gap:15px;
    flex-wrap:wrap;
    line-height:1.8;
  }
  .footer>span:nth-child(2) {
    display:none;
  }
  .reader-content {
    padding:28px 24px 40px;
  }
  .reader-content h1 {
    font-size:27px;
  }
  .reader-bar {
    padding:14px 20px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  * {
    animation:none!important;
    transition:none!important;
  }
}
