:root {
  color-scheme: light dark;
  --bg: #f7f8fa; --surface: #ffffff; --text: #14181f; --muted: #5b6573; --line: #dfe3e8;
  --accent: #d97757; --accent-text: #ffffff; --shadow: 0 1px 2px #0000000d, 0 4px 16px #0000000a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111418; --surface: #1a1e24; --text: #e8eaed; --muted: #9aa3ae; --line: #2a3038; --shadow: none; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 64px; }
a { color: inherit; }
.top { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; min-height: 64px; padding: 12px 20px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.top a { text-decoration: none; } .top a:hover { text-decoration: underline; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 40px 0 12px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 680px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
.card img { width: 100%; height: 170px; object-fit: none; object-position: left top; border-radius: 8px; background: var(--bg); margin-bottom: 14px; }
.card .name { font-weight: 650; font-size: 18px; margin-bottom: 4px; }
.card .desc { color: var(--muted); font-size: 15px; flex: 1; }
.card .tags { margin-top: 12px; font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.versions { margin: 0 0 32px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn:hover { filter: brightness(1.05); }
.shot { margin: 16px 0 24px; }
.shot img { max-width: 100%; height: auto; image-rendering: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.shots { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: flex-start; }
ul { padding-left: 22px; } li { margin: 4px 0; }
code { font: 14px ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.note { font-size: 15px; color: var(--muted); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 560px) { h1 { font-size: 27px; } .lead { font-size: 16px; } }
.shot a { display: inline-block; cursor: zoom-in; }
.shot.wide { width: min(1310px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.shot.wide img { max-width: 100%; }
