:root {
  color-scheme: light;
  --ink: #201d30;
  --muted: #5d5869;
  --line: #e3dfe6;
  --accent: #5542be;
  --paper: #faf9f6;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.3rem); letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.top, nav, .hero-actions, .card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.1rem; }
.top { justify-content: space-between; padding-block: .6rem; border-bottom: 1px solid var(--line); font-weight: 650; }
.top a, .links a, .explore { display: inline-flex; align-items: center; min-height: 44px; }
.top a { text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); align-items: center; gap: clamp(16px, 4vw, 50px); padding: clamp(24px, 5vw, 62px) 0; }
.hero h1 { margin-block: .12em .17em; font-size: clamp(3.3rem, 9vw, 6rem); letter-spacing: -.065em; }
.hero-copy > p, .description, .archive-note, footer { color: var(--muted); }
.hero-copy .eyebrow { color: var(--accent); font-weight: 700; }

.hero-actions { margin-top: 1.15rem; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem 1.15rem; border-radius: .55rem; background: var(--accent); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #45339e; }
.hero img { display: block; width: 100%; height: auto; max-height: 295px; object-fit: contain; border-radius: 1rem; }
.featured { padding: clamp(16px, 3vw, 28px); border: 1px solid #ddd5ed; border-radius: .9rem; background: #f1edf8; }
.featured article { display: grid; gap: .45rem; }

.archive { margin-block: clamp(28px, 5vw, 56px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.card { padding: clamp(14px, 2.5vw, 23px); border: 1px solid var(--line); border-radius: .8rem; background: #fffdfb; }
.card article { display: flex; flex-direction: column; gap: .4rem; height: 100%; }
.card h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.card-meta { justify-content: space-between; font-size: .76rem; }
.years { color: var(--muted); }
.status { padding: .15rem .5rem; border-radius: 999px; background: #efedf0; color: #565161; font-weight: 650; }
.status-maintained { background: #e5dff3; color: #493875; }
.achievement { font-size: .88rem; }
.achievement strong { display: block; color: var(--muted); font-size: .74rem; }
.art { margin-top: .25rem; border-radius: .4rem; overflow: hidden; background: #f4f1ed; }
.art img { display: block; width: 100%; height: clamp(65px, 9vw, 105px); object-fit: contain; }
.links { margin-top: auto; font-size: .85rem; }
.links a:first-child { font-weight: 650; }
.archive-note { margin-top: .75rem; font-size: .78rem; }
footer { padding-block: 1rem; border-top: 1px solid var(--line); font-size: .88rem; }
.tags { display: flex; flex-wrap: wrap; gap: .38rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; padding: .19rem .56rem; border: 1px solid #e6e1e9; border-radius: .4rem; background: #f5f2f6; color: #464052; font-size: .77rem; font-weight: 600; line-height: 1.45; }
.tags .metric { background: #fffdfb; font-variant-numeric: tabular-nums; white-space: nowrap; }
.formats { margin-top: .65rem; }
.hero { border-bottom: 1px solid var(--line); }
.featured { margin-top: 1.15rem; border-left: 3px solid #8370bd; background: #f4f0f8; }
.featured .card-meta { justify-content: flex-start; }
.archive > h2 { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.card.sunnycapturer { grid-column: 1 / -1; background: #f5f3fa; border-color: #ded7ea; }
.sunnycapturer article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); column-gap: 1.5rem; }
.sunnycapturer article > :not(.art) { grid-column: 1; }
.sunnycapturer .card-meta { justify-content: flex-start; }
.sunnycapturer .art { grid-column: 2; grid-row: 1 / span 6; align-self: start; display: grid; place-items: center; margin: 0; background: #eae5f0; }
.sunnycapturer .art img { height: clamp(125px, 17vw, 195px); }
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sunnycapturer article { display: flex; }
  .sunnycapturer .art { margin-top: .25rem; }
  .wrap { width: calc(100% - 32px); }
  .hero, .grid { grid-template-columns: minmax(0, 1fr); }
  .hero img { max-width: 210px; justify-self: center; }
}

.tags svg { width: .9rem; height: .9rem; flex: none; }
.tags li { gap: .35rem; }
.tags a { text-decoration: none; }
.tags a:hover { text-decoration: underline; }
.grid { align-items: start; }
.card .links { gap: .25rem .9rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-contacts { display: flex; flex-wrap: wrap; gap: .1rem 1rem; align-items: center; font-size: .875rem; }
.site-contacts a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; text-decoration: none; }
.site-contacts a:hover { text-decoration: underline; }
.site-contacts .contact-icon { width: 1rem; height: 1rem; flex: none; }
footer:has(.site-contacts) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.brand-group { margin-top: .45rem; }
.brand-group strong { color: var(--muted); font-size: .78rem; }
.brand-row { display: flex; flex-wrap: wrap; gap: .32rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 2.05rem; height: 2.05rem; background: #fff; border: 1px solid var(--line); border-radius: .45rem; cursor: default; font-size: .66rem; font-weight: 750; color: #484153; }
.brand-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand-tip { position: absolute; bottom: calc(100% + .4rem); left: 0; z-index: 2; padding: .22rem .45rem; border-radius: .3rem; background: #29213b; color: #fff; white-space: nowrap; font-size: .72rem; opacity: 0; visibility: hidden; pointer-events: none; }
.brand-mark:hover .brand-tip, .brand-mark:focus .brand-tip { opacity: 1; visibility: visible; }
.platform-details { color: var(--muted); font-size: .76rem; }

/* The product, maintained edition, and archive use successively quieter surfaces. */
.hero { margin-top: 1.15rem; border: 1px solid #e8e0dc; border-radius: 1.25rem; padding-inline: clamp(20px, 6vw, 64px); background: #f1eae4; }
.hero img { filter: drop-shadow(0 12px 20px #48364a20); }
.featured { border: 1px solid #e8e2ec; background: #f6f3f8; }
.featured article { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1.5rem; }
.featured article > :not(.links) { grid-column: 1; }
.featured .links { grid-column: 2; grid-row: 2; }
.archive { margin-block: clamp(36px, 6vw, 70px); }
.archive-intro { color: var(--muted); margin-top: .4rem; font-size: .94rem; }
.archive .grid { margin-top: 1.25rem; }
.archive .card { background: #fffdfa; }
.archive .sunnycapturer { background: #f7f5fa; }
.card .description { font-size: .92rem; }
.sunnycapturer .art { padding: .6rem; }
.platform-disclosure { border-top: 1px solid var(--line); margin-top: .15rem; font-size: .86rem; }
.platform-disclosure summary { cursor: pointer; min-height: 42px; align-content: center; font-weight: 650; color: var(--accent); }
.platform-disclosure .platform-details { margin-block: .55rem .25rem; }
@media (max-width: 640px) {
  .featured article { grid-template-columns: minmax(0, 1fr); }
  .featured .links { grid-column: 1; grid-row: auto; }
  .sunnycapturer .art { align-self: stretch; }
}
.hero h1, .featured h2, .card h3 { display: flex; align-items: center; gap: .32em; }
.product-logo { width: 1em; height: 1em; object-fit: contain; flex: none; }
.hero h1 .product-logo { width: .72em; height: .72em; }
.hero-copy { min-width: 0; }
.hero h1 span { min-width: 0; }
.featured .links { margin-top: 0; }
.homepage-preview { margin: .35rem 0 0; }
.homepage-preview img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: .55rem; }
.homepage-preview figcaption { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; color: var(--muted); font-size: .77rem; }
.homepage-preview svg { width: 1rem; height: 1rem; flex: none; color: var(--accent); }

.card-logos { margin-top: .6rem; }
.card-logos li { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: .45rem; }
.card-logos img { width: 1.1rem; height: 1.1rem; }

.card-fold { margin-top: .15rem; }
.card-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer; list-style: none; }
.card-fold > summary::-webkit-details-marker { display: none; }
.card-fold > summary::marker { content: ""; }
.card-fold > summary h3 { margin: 0; }
.card-fold > summary:hover .fold-hint { border-color: var(--accent); color: var(--accent); }
.fold-hint { flex: none; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: .9rem; line-height: 1; }
.fold-hint::before { content: "＋"; }
.card-fold[open] .fold-hint::before { content: "－"; }
.card-body { display: flex; flex-direction: column; gap: .4rem; margin-top: .55rem; }

.card.opensource-card { grid-column: 1 / -1; }
.card.opensource-card article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem 1.5rem; }
.opensource-card .card-meta { grid-column: 1 / -1; }
.opensource-card h3 { margin: 0; }
.opensource-card .description { margin: 0; }
.opensource-card .links { margin: 0; grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.opensource-card .links a { font-weight: 650; }
@media (max-width: 760px) {
  .opensource-card article { grid-template-columns: 1fr; }
  .opensource-card .links { grid-column: 1; grid-row: auto; }
}

.card-platforms { margin-top: .45rem; }
.card-platforms .brand-group:first-child { margin-top: .15rem; }

.sunnycapturer .card-platforms { grid-column: 1 / -1; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
