
:root {
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --fg: #1b1a17;
  --fg-dim: #6b665c;
  --accent: #b8522c;
  --border: #e8e3d9;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171613;
    --bg-card: #201f1b;
    --fg: #f1efe9;
    --fg-dim: #a39d8f;
    --accent: #e08659;
    --border: #322f28;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header .brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--fg-dim); font-size: 14px; }
.site-header nav a:hover { color: var(--accent); }

.demo-banner { background: var(--bg-card); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--fg-dim); padding: 10px 0; }
.demo-banner .wrap { text-align: center; }

.hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.hero h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: -0.03em; }
.hero .tagline { color: var(--fg-dim); font-size: 17px; max-width: 560px; margin: 0 0 18px; }
.about-btn { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 8px 16px; }
.about-btn:hover { background: var(--accent); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #e8ddcf, #d8c8ae); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag-demo { font-size: 11px; color: var(--fg-dim); border: 1px solid var(--border); display: inline-block; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; width: fit-content; }
.card h2 { font-size: 19px; margin: 0; line-height: 1.32; }
.card p { color: var(--fg-dim); font-size: 14px; margin: 0; flex: 1; }
.read-more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.card:hover .read-more { text-decoration: underline; }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 24px 0 56px; font-size: 14px; }
.pager a { color: var(--accent); font-weight: 600; }
.pager-status { color: var(--fg-dim); }

.article { padding: 40px 0 80px; max-width: 720px; }
.article .back { color: var(--fg-dim); font-size: 14px; display: inline-block; margin-bottom: 20px; }
.article .back:hover { color: var(--accent); }
.article h1 { font-size: 34px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.02em; }
.article .lead { color: var(--fg-dim); font-size: 18px; margin-bottom: 20px; }
.article figure { margin: 0 0 24px; }
.article figure img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 460px; }
.article figcaption { font-size: 12px; color: var(--fg-dim); margin-top: 6px; }
.article .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.article .gallery figure { margin: 0; }
.article .gallery img { aspect-ratio: 4/3; height: auto; }
.article .prose p { margin: 0 0 16px; font-size: 17px; }

.site-footer { border-top: 1px solid var(--border); color: var(--fg-dim); font-size: 13px; padding: 28px 0 40px; margin-top: 20px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 600px) {
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 30px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .article h1 { font-size: 27px; }
  .article .gallery { grid-template-columns: 1fr 1fr; }
}
