:root {
  --paper: #f8f9f6;
  --ink: #203c30;
  --muted: #59695e;
  --line: #dce2d9;
  --accent: #285c45;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #549f78;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
svg {
  display: block;
  flex-shrink: 0;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.brand-dot {
  color: #78a178;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}
.nav-gallery {
  color: var(--muted);
}
.publish-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bdcbbf;
  border-radius: 6px;
  padding: 8px 14px;
}
.intro {
  padding: 66px 0 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #6b967b;
  border-radius: 100%;
}
h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.title-dot {
  color: #8fa78e;
}
.lede {
  color: var(--muted);
  margin-top: 19px;
  font-size: 16px;
}
.collection-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  gap: 3px;
  font-size: 13px;
  color: #758574;
}
.collection-number {
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1.15;
  color: #47634b;
  font-variant-numeric: tabular-nums;
}
.collection-mark svg {
  margin-top: 14px;
  color: #819979;
}
.collection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.collection-tools h2 {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.count {
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 8px;
  background: #e8ede4;
  border-radius: 5px;
  font-weight: 400;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 340px;
  padding: 6px 7px 6px 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  color: var(--muted);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  padding: 3px 0;
}
.search:focus-within {
  border-color: var(--accent);
}
.search button {
  border: 0;
  background: #edf1e9;
  border-radius: 4px;
  font-size: 13px;
  padding: 5px 10px;
  white-space: nowrap;
  color: var(--ink);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
.filters a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 15px;
  border-radius: 5px;
}
.filters a[aria-current] {
  color: #fff;
  background: var(--accent);
}
.filter-summary {
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}
.filter-summary a {
  margin-left: 12px;
  text-decoration: underline;
}
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 26px;
}
.work-card {
  min-width: 0;
}
.cover {
  display: block;
  position: relative;
  aspect-ratio: 1.6;
  overflow: hidden;
  border: 1px solid #13261b0d;
  border-radius: 9px;
  background: var(--cover-bg);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-sage {
  --cover-bg: #e0eadf;
  --cover-ink: #6c9274;
}
.theme-sand {
  --cover-bg: #eee4d3;
  --cover-ink: #b98a50;
}
.theme-ink {
  --cover-bg: #253c3e;
  --cover-ink: #adc6bd;
}
.theme-rose {
  --cover-bg: #f0dedb;
  --cover-ink: #b37a73;
}
.generated-cover {
  width: 100%;
  height: 100%;
}
.cover-fill {
  fill: var(--cover-ink);
}
.cover-cut {
  fill: var(--cover-bg);
}
.cover-line {
  stroke: var(--cover-ink);
}
.cover-caption {
  position: absolute;
  left: 18px;
  bottom: 13px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cover-ink);
}
.cover-launch {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 5px;
  background: #fff;
  color: #284333;
  font-size: 12px;
  box-shadow: 0 2px 12px #0001;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.cover:focus-visible .cover-launch {
  opacity: 1;
  transform: none;
}
.work-info {
  padding: 15px 1px 0;
}
.work-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.work-title h3 {
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.work-title > span {
  font-size: 18px;
  color: #879780;
}
.work-info > p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 47px;
  overflow-wrap: anywhere;
}
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #657660;
  font-size: 12px;
}
.work-meta > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.work-meta a {
  background: #ebefe7;
  padding: 2px 7px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.work-meta time {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: #667561;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin-top: 74px;
  font-size: 13px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 45px;
  font-size: 14px;
}
.pagination a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.empty {
  padding: 70px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.empty h3 {
  font-size: 22px;
}
.empty p {
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #c5d0c3;
}
.viewer {
  padding-top: 24px;
}
.viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.viewer-header h1 {
  font-size: 27px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.viewer-header p {
  font-size: 14px;
  color: var(--muted);
  max-width: 650px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.back-link {
  font-size: 13px;
  color: var(--muted);
}
.viewer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.stage {
  height: calc(100dvh - 285px);
  min-height: 480px;
  border: 1px solid #cbd5c9;
  border-radius: 9px;
  overflow: hidden;
  background: white;
}
.stage iframe {
  height: 100%;
  width: 100%;
  border: 0;
  display: block;
}
.stage:fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.viewer-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 25px;
}
.guide {
  max-width: 850px;
  padding: 38px 0;
}
.guide > .eyebrow {
  margin-top: 35px;
}
.guide section {
  margin-top: 42px;
}
.guide section h2 {
  font-size: 23px;
  margin-bottom: 14px;
}
.guide section p {
  color: var(--muted);
  font-size: 15px;
  margin: 12px 0;
}
.code-block {
  position: relative;
  background: #e9eee5;
  border: 1px solid #d9e2d3;
  border-radius: 8px;
  padding: 22px;
  margin: 16px 0;
  min-width: 0;
}
.code-block pre {
  margin: 0;
  overflow: auto;
  font:
    13px/1.9 ui-monospace,
    SFMono-Regular,
    monospace;
  tab-size: 2;
}
.code-block button {
  display: block;
  margin-top: 16px;
  border: 1px solid #adbda7;
  border-radius: 5px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
p code {
  font-family: ui-monospace, monospace;
  background: #e9eee5;
  padding: 2px 4px;
  font-size: 0.88em;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #203c30;
  color: white;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: 0 5px 20px #0002;
  max-width: calc(100% - 30px);
}
.toast:empty {
  display: none;
}
.skip {
  position: absolute;
  top: 5px;
  left: 10px;
  transform: translateY(-150%);
  background: white;
  padding: 8px;
  z-index: 99;
}
.skip:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.mobile-only {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: #3d8057;
  }
  .button:hover {
    color: white;
    background: #346e53;
  }
  .secondary:hover {
    background: #edf1e9;
    color: var(--ink);
  }
  .cover:hover .cover-launch {
    opacity: 1;
    transform: none;
  }
  .work-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .filters a:hover:not([aria-current]) {
    background: #e9eee4;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .works {
    gap: 32px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro {
    padding: 45px 0;
  }
  .viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .stage {
    height: 65dvh;
  }
  .collection-mark {
    padding-right: 15px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav {
    height: 74px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .brand svg {
    width: 26px;
    height: 26px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-gallery {
    display: none;
  }
  .publish-link {
    font-size: 12px;
    padding: 7px 9px;
    gap: 5px;
  }
  .intro {
    padding: 34px 0 32px;
    gap: 8px;
    align-items: flex-end;
  }
  .eyebrow {
    font-size: 11px;
    gap: 5px;
    margin-bottom: 13px;
  }
  h1 {
    font-size: 34px;
  }
  .lede {
    font-size: 14px;
    margin-top: 14px;
  }
  .collection-mark {
    padding: 0 2px 4px 0;
    font-size: 10px;
    flex-shrink: 0;
  }
  .collection-number {
    font-size: 50px;
  }
  .collection-mark svg {
    display: none;
  }
  .collection-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .collection-tools h2 {
    font-size: 19px;
  }
  .search {
    width: 100%;
  }
  .filters {
    gap: 4px;
    margin: 17px 0 22px;
    padding-bottom: 15px;
  }
  .filters a {
    padding: 5px 10px;
    font-size: 13px;
  }
  .works {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .work-info {
    padding-top: 13px;
  }
  .work-info > p {
    min-height: 0;
  }
  .work-meta {
    margin-top: 11px;
  }
  .work-title h3 {
    font-size: 18px;
  }
  .footer {
    margin-top: 42px;
    padding: 22px 0;
    font-size: 11px;
    gap: 10px;
  }
  .mobile-only {
    display: block;
  }
  .viewer-actions {
    gap: 6px;
    flex-wrap: wrap;
  }
  .viewer-actions .button {
    font-size: 12px;
    padding: 8px 11px;
  }
  .viewer-header h1 {
    font-size: 25px;
  }
  .stage {
    min-height: 440px;
    height: 65dvh;
  }
  .guide {
    padding-top: 24px;
  }
  .guide h1 {
    font-size: 38px;
  }
  .guide section h2 {
    font-size: 20px;
  }
  .code-block {
    padding: 16px;
  }
  .code-block pre {
    font-size: 11px;
  }
  .viewer-note {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
