:root {
  --bg: #f3f1e9;
  --fg: #292c26;
  --line: #d7d8cd;
  --accent: #d5f075;
  --muted: #73786b;
  --paper: #e8ebdf;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
}
body.dark {
  --bg: #20251f;
  --fg: #eeeedd;
  --line: #454d3e;
  --paper: #303b2b;
  --muted: #b3bba7;
  --accent: #6c8a2b;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 5px;
}
button {
  cursor: pointer;
  color: inherit;
}
header,
main,
footer {
  max-width: 1240px;
  margin: auto;
}
header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 40px;
}
.brand span {
  font-size: 23px;
  font-weight: 700;
}
.brand small {
  display: block;
  font: 9px monospace;
  letter-spacing: 1.5px;
  margin-top: 7px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
}
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
nav button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  transition: background 0.2s;
}
nav button:hover {
  background: var(--paper);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 76px 0 58px;
}
.eyebrow {
  font: 11px monospace;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #84974b;
  border-radius: 50%;
  margin-right: 8px;
}
h1 {
  font-size: 62px;
  letter-spacing: -3px;
  line-height: 1.3;
  margin: 32px 0 24px;
}
h1 span {
  position: relative;
  white-space: nowrap;
}
h1 span:after {
  content: "";
  position: absolute;
  height: 12px;
  background: var(--accent);
  bottom: 3px;
  left: 0;
  right: 0;
  z-index: -1;
}
.lead {
  color: var(--muted);
  line-height: 2;
  font-size: 15px;
}
.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 32px;
}
.primary {
  background: var(--fg);
  color: var(--bg);
  padding: 16px 26px;
  border-radius: 3px;
  font-size: 13px;
}
.actions button {
  border: 0;
  background: none;
  font-size: 13px;
}
.edition {
  margin-top: 45px;
  font: 10px monospace;
  letter-spacing: 2px;
}
.edition span {
  margin-left: 22px;
  color: var(--muted);
  letter-spacing: 1px;
}
.art {
  min-height: 430px;
  position: relative;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 180px 180px 4px 4px;
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.5;
}
.orbit {
  position: absolute;
  border: 1px solid #858e73;
  border-radius: 50%;
  width: 320px;
  height: 180px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-35deg);
}
.o2 {
  transform: translate(-50%, -50%) rotate(35deg);
}
.o3 {
  transform: translate(-50%, -50%) rotate(90deg);
}
.sun {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-size: 155px;
  color: #586c3d;
  line-height: 1;
}
.coordinate {
  position: absolute;
  top: 35px;
  left: 38px;
  font: 9px monospace;
  line-height: 1.7;
  color: var(--muted);
}
.art-label {
  position: absolute;
  bottom: 30px;
  left: 35px;
  font-size: 13px;
}
.dot {
  position: absolute;
  border-radius: 50%;
  background: #d3ed80;
  width: 20px;
  height: 20px;
  border: 1px solid #84974b;
}
.d1 {
  top: 24%;
  left: 70%;
}
.d2 {
  top: 66%;
  left: 22%;
  width: 12px;
  height: 12px;
}
.ticker {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font: 11px monospace;
  letter-spacing: 2px;
}
#archive {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font-size: 28px;
  letter-spacing: -1px;
}
.section-head h2 span {
  font: 12px monospace;
  color: var(--muted);
  margin-left: 18px;
}
.search {
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
.search input {
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 13px;
  width: 220px;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 17px;
  background: none;
  font-size: 12px;
  transition: all 0.15s;
}
.tag:hover {
  border-color: var(--fg);
}
.tag.active {
  background: var(--fg);
  color: var(--bg);
}
.filters > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-family: monospace;
}
.entry {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 32px 12px;
  transition: background 0.2s;
}
.entry:hover {
  background: var(--paper);
}
.entry[hidden] {
  display: none;
}
.num {
  font: 14px monospace;
  color: var(--muted);
  align-self: flex-start;
  padding-top: 3px;
}
.entry-main {
  flex: 1;
  min-width: 0;
}
.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font: 11px monospace;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  font-style: normal;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none !important;
}
.badge-link:hover {
  background: var(--accent);
}
.entry h3 {
  font-size: 23px;
  margin: 12px 0 8px;
}
.entry h3 span {
  font-weight: 400;
  color: var(--muted);
  font-size: 17px;
}
.entry p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.8;
}
.read {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
}
.note {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--paper);
  padding: 36px;
  margin-bottom: 64px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.note > span {
  font-size: 50px;
}
.note h2 {
  font-size: 24px;
  margin: 8px 0;
}
.note p {
  font-size: 12px;
  color: var(--muted);
}
.note > a {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: 11px;
  color: var(--muted);
}
footer a {
  margin-left: 22px;
}
footer a:hover {
  color: var(--fg);
}
.reading {
  max-width: 780px;
  padding: 56px 20px 100px;
  min-height: 72vh;
}
.reading-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.reading-top a {
  text-decoration: none;
  color: var(--muted);
}
.reading-top a:hover {
  color: var(--fg);
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 24px;
  font: 12px monospace;
  color: var(--muted);
}
.meta-sep {
  opacity: 0.5;
}
.toc-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 22px;
  margin: 24px 0 36px;
  font-size: 13px;
}
.toc-box summary {
  cursor: pointer;
  font: 11px monospace;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  user-select: none;
}
.toc-list {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.9;
}
.toc-list ul {
  margin: 2px 0;
  padding-left: 18px;
  list-style: circle;
}
.toc-list a {
  text-decoration: none !important;
  color: var(--fg);
}
.toc-list a:hover {
  text-decoration: underline !important;
}
.reading article {
  line-height: 2;
  color: var(--fg);
  font-size: 15.5px;
}
.reading h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
  margin: 16px 0 28px;
}
.reading h2 {
  margin-top: 44px;
  font-size: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.reading h3 {
  margin-top: 30px;
  font-size: 19px;
}
.reading p,
.reading ul,
.reading ol {
  margin: 16px 0;
}
.reading code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
}
.code-wrap {
  position: relative;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  font: 11px monospace;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.02);
}
.copy-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 10px;
  font: 11px monospace;
  cursor: pointer;
}
.copy-btn:hover {
  border-color: var(--fg);
}
.reading pre {
  margin: 0;
  padding: 18px 20px;
  background: var(--paper);
  overflow: auto;
  font-size: 13px;
  line-height: 1.65;
}
.reading pre code {
  padding: 0;
  background: none;
}
.reading blockquote {
  border-left: 3px solid #84974b;
  padding: 4px 0 4px 20px;
  margin: 22px 0;
  color: var(--muted);
}
.reading table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.reading th,
.reading td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.reading th {
  background: var(--paper);
}
.reading img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin: 18px 0;
  cursor: zoom-in;
}
.reading hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0 32px;
}
.reading article a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
.nav-card:hover {
  background: var(--paper);
  border-color: var(--fg);
}
.nav-card.next {
  text-align: right;
}
.nav-card small {
  font: 11px monospace;
  color: var(--muted);
}
.nav-card strong {
  font-size: 15px;
  line-height: 1.4;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 17, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  cursor: zoom-out;
}
.lightbox-overlay[hidden] {
  display: none;
}
.lightbox-overlay img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 1300px) {
  header,
  main,
  footer {
    margin-left: 5%;
    margin-right: 5%;
  }
  .reading {
    margin: auto;
  }
}
@media (max-width: 700px) {
  header {
    height: 86px;
  }
  .brand span {
    font-size: 18px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand {
    font-size: 28px;
    gap: 8px;
  }
  nav {
    gap: 12px;
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 30px;
  }
  h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }
  .art {
    min-height: 290px;
    border-radius: 140px 140px 4px 4px;
  }
  .orbit {
    width: 250px;
    height: 145px;
  }
  .sun {
    font-size: 110px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.7px;
  }
  .ticker {
    font-size: 9px;
    letter-spacing: 0;
  }
  .ticker span:nth-child(even) {
    display: none;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 85%;
  }
  .filters > span {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
  .entry {
    gap: 14px;
    padding: 24px 6px;
  }
  .entry h3 {
    font-size: 19px;
  }
  .read {
    display: none;
  }
  .note {
    padding: 24px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .note h2 {
    font-size: 20px;
  }
  .note > a {
    margin-left: 0;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .nav-card.next {
    text-align: left;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    line-height: 1.8;
  }
  footer a {
    margin-left: 0;
    margin-right: 18px;
  }
  .reading h1 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
