:root {
  --bg: #f6f3ec;
  --bg-card: #ffffff;
  --ink: #1a1d24;
  --ink-soft: #4b5160;
  --ink-mute: #7a8190;
  --line: #e6e1d4;
  --accent: #2f6f4f;
  --accent-2: #d97a3a;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(20,25,35,.04), 0 8px 24px -16px rgba(20,25,35,.18);
  --tile-bg: linear-gradient(135deg,#fbfaf6,#f1ede1);
  --tile-bg-alt: linear-gradient(135deg,#eef4ee,#e3ece4);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { background: #fffdf7; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand-mark { color: var(--accent); font-size: 22px; transform: translateY(-1px); }
.brand-name { letter-spacing: .2px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--accent); }
.search { display: flex; flex: 1 1 320px; max-width: 540px; }
.search input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-right: none; border-radius: 10px 0 0 10px; font-size: 14px; background: #fff; }
.search button { padding: 10px 16px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 0 10px 10px 0; cursor: pointer; font-weight: 600; }

/* Main */
.site-main { padding: 28px 0 56px; }
.breadcrumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:last-child { color: var(--ink); }
.breadcrumbs .sep { margin: 0 6px; color: var(--ink-mute); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; margin-bottom: 36px; box-shadow: var(--shadow); }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.hero p { color: var(--ink-soft); font-size: 17px; margin: 0 0 18px; }
.hero .hero-actions { display: flex; gap: 10px; }
.hero img { width: 100%; max-height: 320px; object-fit: contain; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; background: #265a40; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { text-decoration: none; background: #f0ece1; }

/* Section header */
.section { margin: 36px 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; margin: 0; letter-spacing: -.2px; }
.section-head .small { color: var(--ink-mute); font-size: 14px; }
.section-head .more { margin-left: auto; font-size: 14px; }

/* Grids */
.grid { display: grid; gap: 14px; }
.grid-icons { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }

/* Tiles */
.tile { background: var(--tile-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; align-items: center; transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.tile .thumb { width: 100%; aspect-ratio: 1/1; display: grid; place-items: center; background: repeating-conic-gradient(#f4efe1 0% 25%, #ece7d8 0% 50%) 50% / 16px 16px; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.tile .thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
.tile .label { font-size: 13px; color: var(--ink); text-align: center; line-height: 1.3; }

/* Category cards */
.cat-card { background: var(--tile-bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: block; }
.cat-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.cat-card h3 { margin: 0 0 4px; color: var(--ink); font-size: 16px; }
.cat-card p { margin: 0; color: var(--ink-mute); font-size: 13px; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-soft); }
.tag-chip:hover { background: #f5f0e2; text-decoration: none; color: var(--ink); }
.tag-chip .count { color: var(--ink-mute); margin-left: 4px; font-size: 11px; }

/* Icon detail page */
.detail { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 32px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.detail .preview { background: repeating-conic-gradient(#f4efe1 0% 25%, #ece7d8 0% 50%) 50% / 22px 22px; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; place-items: center; aspect-ratio: 1/1; }
.detail .preview img { max-width: 75%; max-height: 75%; }
.detail h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.3px; }
.detail .lede { color: var(--ink-soft); margin: 0 0 18px; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 14px 0 18px; padding: 14px 16px; background: #faf7ee; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.meta dt { color: var(--ink-mute); }
.meta dd { margin: 0; color: var(--ink); font-weight: 500; }
.actions { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }

/* Sidebar layout */
.with-aside { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.aside { display: flex; flex-direction: column; gap: 20px; }
.aside .card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.aside h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; color: var(--ink-mute); }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.pager a, .pager span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 14px; }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Footer */
.site-footer { background: #1d2027; color: #c8cdd5; padding: 40px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-inner h4 { color: #fff; font-size: 14px; letter-spacing: .3px; margin: 0 0 10px; text-transform: uppercase; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin: 6px 0; }
.footer-inner a { color: #c8cdd5; }
.footer-inner a:hover { color: #fff; }
.foot-tag { color: #9aa1ac; max-width: 320px; font-size: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #6cb290; }
.foot-bottom { border-top: 1px solid #2c313b; margin-top: 28px; padding-top: 16px; color: #8a8f99; font-size: 13px; }

/* Page intro */
.page-intro { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 24px; }
.page-intro h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.4px; }
.page-intro p { color: var(--ink-soft); margin: 0; max-width: 720px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero h1 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; padding: 18px; }
  .nav { order: 3; width: 100%; }
}
