:root {
  --paper: #f4f1e8;
  --paper-deep: #e8e2d4;
  --ink: #1d211c;
  --muted: #68695f;
  --line: rgba(29, 33, 28, 0.16);
  --green: #173f32;
  --green-soft: #dbe6dc;
  --red: #c94f39;
  --white: #fffdf7;
  --shadow: 0 22px 60px rgba(41, 38, 27, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 5%, rgba(209, 113, 73, 0.11), transparent 26rem),
    linear-gradient(180deg, #f8f5ed 0, var(--paper) 38rem);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20000;
  padding: 9px 14px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border-radius: 50% 50% 46% 54%;
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--green);
}

.site-header nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.45em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle b {
  font-size: 17px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] b {
  transform: rotate(45deg);
}

main:focus {
  outline: none;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 560px;
  padding: 94px 0 72px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 56px;
  right: 2%;
  width: 290px;
  height: 360px;
  border: 1px solid rgba(23, 63, 50, 0.17);
  border-radius: 52% 48% 47% 53%;
  transform: rotate(8deg);
  pointer-events: none;
}

.hero::before {
  content: "SEED / AND / DO";
  position: absolute;
  top: 225px;
  right: -12px;
  color: rgba(23, 63, 50, 0.28);
  font-size: 10px;
  letter-spacing: 0.24em;
  transform: rotate(90deg);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.2em;
}

.hero h1,
.entry-hero h1,
.document-hero h1,
.not-found h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero h1 em {
  color: var(--green);
  font-weight: 400;
}

.hero-copy {
  width: min(650px, 76%);
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-stats {
  display: flex;
  gap: 1px;
  width: min(650px, 76%);
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-stats div {
  flex: 1;
  padding: 18px 20px;
  display: grid;
  background: rgba(255, 253, 247, 0.7);
}

.hero-stats strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
}

.content-freshness {
  width: min(650px, 76%);
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.content-freshness time {
  color: var(--green);
  font-weight: 750;
}

.archive-section {
  padding: 76px 0 90px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2,
.boundary-note h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
  margin-bottom: 30px;
}

.search-box,
.select-box {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.search-box span,
.select-box span {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box input,
.select-box select {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  min-height: 380px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.archive-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-card h2 {
  margin: 29px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.archive-card h2 a {
  text-decoration: none;
}

.hardware-card {
  min-height: 250px;
}

.hardware-card h3 {
  margin: 24px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.24;
}

.hardware-card h3 a {
  text-decoration: none;
}

.hardware-card > p {
  color: var(--muted);
  font-size: 13px;
}

.collection-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.collection-jump a {
  min-height: 104px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 247, 0.78);
  text-decoration: none;
}

.collection-jump a:hover {
  background: var(--white);
}

.collection-jump strong {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.collection-jump span,
.collection-jump small {
  display: block;
}

.collection-jump span {
  color: var(--green);
  font-weight: 750;
}

.collection-jump small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.hardware-section {
  scroll-margin-top: 16px;
}

.recent-section {
  padding-top: 40px;
}

.recent-updates {
  border-top: 1px solid var(--line);
}

.recent-update {
  min-height: 92px;
  padding: 16px 8px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.recent-update:hover {
  padding-left: 15px;
  color: var(--green);
  background: rgba(255, 253, 247, 0.55);
}

.recent-update time,
.recent-update small,
.recent-update strong {
  display: block;
}

.recent-update time,
.recent-update small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recent-update strong {
  margin-top: 2px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.recent-update b {
  color: var(--red);
  font-size: 20px;
}

.explore-hero {
  min-height: 500px;
}

.explore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.explore-card {
  min-height: 330px;
}

.explore-card .card-topline {
  gap: 10px;
}

.explore-card .card-topline > span:last-child {
  text-align: right;
}

.explore-meta {
  min-height: 28px;
  color: var(--muted);
  font-size: 12px;
}

.explore-meta span {
  display: inline-block;
  padding: 3px 9px;
  background: var(--green-soft);
  border-radius: 999px;
}

.archive-card > p {
  color: var(--muted);
  font-size: 14px;
}

.archive-card .card-owner {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.artifact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 26px;
}

.artifact-chip,
.meta-pill {
  padding: 5px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 10px;
}

.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.card-actions > a:not(.primary-link) {
  color: var(--muted);
}

.primary-link {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.primary-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.primary-link:hover span {
  transform: translateX(4px);
}

.empty-state {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

.boundary-note {
  margin-bottom: 90px;
  padding: 60px;
  color: #f7f3e9;
  background: var(--green);
  border-radius: 30px;
}

.boundary-note .eyebrow {
  color: #e8a38f;
}

.boundary-note h2 {
  max-width: 650px;
}

.boundary-note p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(247, 243, 233, 0.72);
}

.boundary-note a {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.detail-main {
  padding-bottom: 90px;
}

.breadcrumbs {
  padding: 24px 0;
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow-x: auto;
}

.breadcrumbs a {
  color: var(--green);
}

.entry-hero,
.document-hero {
  padding: 66px 0 64px;
  border-bottom: 1px solid var(--line);
}

.entry-hero h1,
.document-hero h1 {
  max-width: 1000px;
  font-size: clamp(42px, 6vw, 76px);
}

.entry-hero > p:not(.eyebrow),
.document-hero > p:not(.eyebrow) {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.entry-actions a,
.entry-actions button {
  padding: 9px 13px;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(23, 63, 50, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 38px;
}

.document-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  padding-right: 6px;
  overflow-y: auto;
}

.sidebar-title {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-link {
  margin-bottom: 6px;
  padding: 11px 12px;
  display: grid;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
}

.document-link:hover,
.document-link.is-active {
  background: rgba(255, 253, 247, 0.85);
  border-color: var(--line);
}

.document-link span {
  font-size: 13px;
  font-weight: 700;
}

.document-link small {
  color: var(--muted);
  font-size: 9px;
}

.mini-toc {
  margin-top: 24px;
  padding-top: 18px;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
}

.mini-toc strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.mini-toc a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.mini-toc a:hover {
  color: var(--green);
}

.prose-card {
  min-width: 0;
  padding: clamp(24px, 5vw, 66px);
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.document-kicker {
  margin-bottom: 34px;
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-kicker a {
  color: var(--green);
}

.asr-warning {
  margin-bottom: 30px;
  padding: 14px 17px;
  display: grid;
  color: #70412f;
  background: #f4dfd4;
  border-left: 3px solid var(--red);
  border-radius: 4px 10px 10px 4px;
  font-size: 12px;
}

.prose {
  max-width: 820px;
  font-size: 15px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 24px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-weight: 560;
  line-height: 1.3;
}

.prose h1 {
  margin: 0 0 1.1em;
  font-size: clamp(31px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.prose h2 {
  margin: 2em 0 0.75em;
  padding-top: 0.35em;
  font-size: 27px;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 20px;
}

.prose p,
.prose li {
  color: #383b35;
}

.prose a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  color: var(--muted);
  border-left: 3px solid var(--red);
}

.prose blockquote p {
  color: inherit;
}

.prose code {
  padding: 0.15em 0.35em;
  background: var(--paper-deep);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.prose pre,
.source-code {
  max-width: 100%;
  padding: 20px;
  color: #e8eee8;
  background: #1e2823;
  border-radius: 13px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prose pre code,
.source-code code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  min-width: 120px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
}

.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.not-found {
  min-height: 65vh;
  padding: 110px 0;
}

.not-found h1 {
  font-size: clamp(44px, 8vw, 82px);
}

.not-found p:not(.eyebrow) {
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
  }

  .site-header nav {
    width: 100%;
    gap: 14px;
    font-size: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .has-js .site-header nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    width: min(330px, calc(100vw - 24px));
    padding: 12px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .has-js .site-header nav.is-open {
    display: grid;
  }

  .has-js .site-header nav a {
    padding: 9px 10px;
    border-radius: 9px;
  }

  .has-js .site-header nav a:hover,
  .has-js .site-header nav a[aria-current="page"] {
    background: var(--green-soft);
  }

  .hero {
    min-height: auto;
    padding: 68px 0 58px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 67px);
  }

  .hero-copy,
  .hero-stats,
  .content-freshness {
    width: 100%;
  }

  .archive-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .collection-jump {
    grid-template-columns: 1fr;
  }

  .document-sidebar {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }

  .sidebar-title,
  .mini-toc {
    grid-column: 1 / -1;
  }

  .document-link {
    margin: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand > span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats div {
    padding: 13px 10px;
  }

  .hero-stats strong {
    font-size: 23px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .archive-card {
    min-height: 340px;
    padding: 23px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p {
    padding-top: 7px;
  }

  .boundary-note {
    padding: 34px 25px;
    border-radius: 20px;
  }

  .entry-hero,
  .document-hero {
    padding: 45px 0;
  }

  .entry-hero h1,
  .document-hero h1 {
    font-size: 38px;
  }

  .detail-layout {
    gap: 16px;
    padding-top: 22px;
  }

  .document-sidebar {
    grid-template-columns: 1fr;
  }

  .prose-card {
    padding: 24px 17px;
  }

  .prose {
    font-size: 14px;
  }

  .prose h2 {
    font-size: 24px;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-update {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
