:root { --bg: #fff; --bg2: #f5f5f7; --text: #1d1d1f; --muted: #6e6e73; --accent: #0071e3; --card: #fff; --border: #e3e3e8; --shadow: 0 2px 8px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.06); color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #000; --bg2: #111113; --text: #f5f5f7; --muted: #98989d; --accent: #2997ff; --card: #1c1c1e; --border: #2c2c2e; --shadow: none; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
nav.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 16px; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 980px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.3; }
.btn.small { padding: 7px 16px; font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 0; }
.crumbs a { color: var(--muted); }
header.post { padding: 12px 0 8px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 14px; }
.lead { font-size: 21px; color: var(--muted); margin: 0 0 14px; }
.meta { font-size: 14px; color: var(--muted); }
article h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 44px 0 10px; }
article h3 { font-size: 21px; margin: 30px 0 6px; letter-spacing: -.01em; }
article p, article li { margin: 0 0 14px; }
article ul, article ol { padding-left: 22px; }
.toc { background: var(--bg2); border-radius: 16px; padding: 16px 20px; margin: 24px 0; font-size: 16px; }
.toc b { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 2px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.spec { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.spec span { background: var(--bg2); border-radius: 8px; padding: 3px 9px; font-size: 14px; }
figure { margin: 18px 0 22px; }
figure svg.dg { display: block; margin: 0 auto; width: 100%; height: auto; border-radius: 16px; background: #2d7a3a; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.tip { border-left: 4px solid var(--accent); background: var(--bg2); border-radius: 0 14px 14px 0; padding: 12px 16px; margin: 18px 0; font-size: 17px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0 20px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg2); }
.tablewrap { overflow-x: auto; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.cta { text-align: center; background: var(--bg2); border-radius: 22px; padding: 32px 22px; margin: 44px 0 20px; }
.cta h2 { margin: 0 0 8px; font-size: 26px; }
.cta p { color: var(--muted); margin: 0 auto 18px; max-width: 520px; }
.related { margin: 36px 0; }
.related h2 { font-size: 22px; margin: 0 0 12px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 24px 0 56px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s; }
.post-card:hover { transform: translateY(-2px); }
.post-card svg.dg { display: block; width: 100%; max-width: none !important; height: 180px; background: #2d7a3a; }
.post-card .pc { padding: 16px 18px 20px; }
.post-card .tagl { font-size: 13px; color: var(--accent); font-weight: 600; }
.post-card h2, .post-card h3 { font-size: 20px; line-height: 1.25; margin: 6px 0 8px; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.blog-hero { padding: 48px 0 8px; }
.blog-hero h1 { margin-top: 0; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 14px; }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links .hide-m { display: none; }
  .lead { font-size: 19px; }
  article h2 { font-size: 24px; }
  footer a { margin: 0 14px 0 0; }
}
