/* Original painting layout with a cleaner page background. No external fonts. */
:root {
  --paper: #fafbfc;
  --surface: #fffefa;
  --ink: #282c29;
  --muted: #72766f;
  --line: #dedfd5;
  --accent: #a34c35;
  --tint: #eeeee5;
  --section-space: 56px;
  --content-gap: 24px;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #1c201e;
  --surface: #242925;
  --ink: #eeeee4;
  --muted: #a7afa6;
  --line: #3b423b;
  --accent: #e59a7b;
  --tint: #252d26;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
  min-width: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
}
h2 {
  font-size: 36px;
  letter-spacing: -1px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
::selection {
  background: #e0bfa8;
  color: #252923;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  padding: 10px;
  background: var(--surface);
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 25px var(--serif);
  letter-spacing: -1px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-dot {
  color: var(--accent);
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand-group .brand {
  flex-shrink: 0;
}
.header-tagline {
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 19px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
}
.header-tagline span {
  position: relative;
  display: inline-block;
  color: var(--accent);
  transform: rotate(-3deg);
}
.header-tagline span::after {
  content: "";
  position: absolute;
  left: 0;
  right: -3px;
  bottom: -3px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
}
.header-inner nav {
  display: flex;
  gap: 24px;
}
.header-inner nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0;
  position: relative;
}
.header-inner nav a:hover,
.header-inner nav a[aria-current] {
  color: var(--ink);
}
.header-inner nav a[aria-current]:after {
  content: "";
  height: 2px;
  background: var(--accent);
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
}
.header-github {
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.theme-toggle {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 23px;
  padding: 4px 8px;
  min-width: 40px;
  min-height: 40px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 1.6;
}
.small-line {
  display: inline-block;
  width: 27px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: 40px;
  padding-block: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.24;
  letter-spacing: -2px;
  margin: 20px 0 0;
}
.serif-accent {
  color: var(--accent);
}
.hero-description {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 13px;
}
.button.primary {
  background: var(--ink);
  color: var(--paper);
}
.button.primary:hover {
  background: var(--accent);
  color: white;
}
.text-link {
  font-size: 13px;
  font-weight: 500;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.hero-stats div {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.hero-stats div:last-child {
  border: 0;
  padding: 0;
}
.hero-stats strong {
  display: block;
  font: 32px var(--serif);
}
.hero-stats span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.hero-art {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(1deg);
}
.hero-art > img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.8);
}
.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 12px 4px 3px;
  color: var(--muted);
}
.art-label {
  position: absolute;
  bottom: 42px;
  left: -18px;
  max-width: calc(100% - 12px);
  padding: 18px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px #00000008;
  font: 20px var(--serif);
  transform: rotate(-1deg);
}
.art-label small {
  display: block;
  font: italic 12px var(--serif);
  color: var(--muted);
  margin-top: 7px;
}
.manifesto {
  border-block: 1px solid var(--line);
}
.manifesto > .wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 18px;
}
.manifesto span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.manifesto p {
  font-family: var(--serif);
  font-size: 17px;
}
.manifesto a {
  font-size: 11px;
  margin-left: auto;
}
.section {
  padding-block: var(--section-space);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: var(--content-gap);
}
.section-heading h2 {
  margin-top: 10px;
}
.section-description {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    transform 0.2s;
  min-width: 0;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.code-icon {
  font: 22px monospace;
  color: var(--accent);
  background: var(--tint);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.language {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 20px;
}
.project-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  overflow-wrap: anywhere;
}
.project-card h3 a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.project-card h3 span {
  font: 16px var(--sans);
  color: var(--muted);
}
.project-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 16px 0 24px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.meta-divider {
  padding-inline: 5px;
}
.latest-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
}
.latest-intro h2 {
  margin: 14px 0 20px;
}
.latest-intro > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.latest-intro > .text-link {
  display: inline-block;
  margin-top: 24px;
}
.sync-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.8;
}
.activity {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.activity:first-child {
  padding-top: 0;
}
.activity-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.activity > div {
  flex: 1;
  min-width: 0;
}
.activity-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.activity h3 {
  font-family: var(--serif);
  font-size: 18px;
  overflow-wrap: anywhere;
}
.activity h3 + p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.activity time {
  font: 14px var(--serif);
  color: var(--muted);
  white-space: nowrap;
}
.closing {
  background: var(--tint);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: var(--content-gap);
  align-items: center;
  padding: 28px;
  margin-bottom: var(--section-space);
}
.closing > img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.closing h2 {
  font-size: 28px;
  margin: 8px 0;
}
.closing p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.page-heading {
  padding-block: 48px 32px;
}
.page-heading h1 {
  font-size: clamp(36px, 4.2vw, 48px);
  letter-spacing: -1.5px;
  margin: 16px 0;
}
.page-heading > p:last-child {
  color: var(--muted);
}
.page-content {
  padding-bottom: var(--section-space);
}
.catalog-toolbar {
  display: flex;
  gap: 20px;
  align-items: end;
  padding-block: 0 28px;
}
.catalog-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.search-label {
  flex: 1;
}
.catalog-toolbar input,
.catalog-toolbar select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 0;
  min-height: 44px;
  font-size: 13px;
  width: 100%;
}
.catalog-toolbar [data-result-count] {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  padding-bottom: 12px;
}
.no-results,
.empty-state {
  padding: 60px 0;
  color: var(--muted);
}
.github-updates {
  max-width: 860px;
  margin-inline: auto;
}
.github-updates h2 {
  font-size: 26px;
  margin-bottom: 28px;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.about-layout figure {
  max-width: 360px;
}
.about-layout figure img {
  width: 100%;
  border: 10px solid var(--surface);
  outline: 1px solid var(--line);
}
.about-layout figcaption {
  font: italic 11px var(--serif);
  color: var(--muted);
  margin-top: 15px;
}
.about-layout h2 {
  margin: 14px 0 24px;
}
.about-layout p:not(.eyebrow) {
  color: var(--muted);
  line-height: 2;
  margin-block: 16px;
}
.about-layout hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 28px;
}
.about-layout h3 {
  font-family: var(--serif);
}
.article-page {
  max-width: 800px;
  padding-block: 48px var(--section-space);
}
.article-page h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 16px 0 32px;
}
.article-page p {
  margin-block: 20px;
}
.not-found {
  min-height: 60vh;
}
.not-found .button {
  margin-top: 30px;
}
@media (max-width: 1050px) {
  .hero {
    gap: 28px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-section,
  .about-layout {
    gap: 36px;
  }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .header-inner,
  .header-controls {
    column-gap: 12px;
  }
  .header-inner nav {
    gap: 18px;
  }
}
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 10px;
    row-gap: 6px;
  }
  .header-controls {
    justify-content: flex-end;
  }
  .header-inner nav {
    margin-right: auto;
  }
  .header-inner nav a {
    padding-block: 8px;
  }
  .header-inner nav a[aria-current]::after {
    bottom: 1px;
  }
  .manifesto > .wrap {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}
@media (max-width: 760px) {
  :root {
    --section-space: 40px;
    --content-gap: 20px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 36px;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(40px, 7vw, 52px);
    margin-top: 16px;
  }
  .hero-description {
    margin-top: 16px;
  }
  .hero-stats {
    margin-top: 24px;
  }
  .hero-art {
    transform: none;
    margin-left: 8px;
  }
  .art-label {
    left: -8px;
    bottom: 36px;
    font-size: 18px;
    padding: 12px 18px;
    transform: none;
  }
  .hero-art figcaption {
    font-size: 9px;
  }
  .manifesto p {
    font-size: 15px;
  }
  .manifesto a {
    font-size: 12px;
  }
  h2 {
    font-size: 30px;
  }
  .section-heading {
    gap: 16px;
    margin-bottom: 24px;
  }
  .section-heading > .text-link {
    white-space: nowrap;
  }
  .latest-section,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .latest-intro .sync-note {
    margin-top: 16px;
  }
  .closing {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 24px;
  }
  .closing > img {
    width: 56px;
    height: 56px;
  }
  .closing h2 {
    font-size: 24px;
  }
  .closing > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .page-heading {
    padding-block: 36px 28px;
  }
  .page-heading > p:last-child {
    font-size: 14px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 16px;
  }
  .search-label {
    min-width: 100%;
  }
  .catalog-toolbar label:not(.search-label) {
    flex: 1;
  }
}
@media (max-width: 600px) {
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .brand-group {
    gap: 10px;
  }
  .header-tagline {
    font-size: clamp(10px, 2.9vw, 16px);
  }
  .header-controls {
    gap: 10px;
  }
  .header-inner nav {
    gap: 18px;
  }
  .header-inner nav a {
    font-size: 12px;
  }
  .header-github {
    font-size: 11px;
    padding-left: 10px;
  }
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card {
    padding: 24px;
  }
  .footer-bottom {
    gap: 8px 16px;
  }
}
@media (max-width: 380px) {
  .header-inner nav {
    gap: 12px;
  }
  .header-controls {
    gap: 6px;
  }
  .header-github {
    padding-left: 8px;
  }
  .brand-group {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
