:root{--bg:#ffffff;--text:#111827;--muted:#6b7280;--border:#e5e7eb;--card:#ffffff;--accent:#dc2626}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.75 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Noto Sans",sans-serif}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:focus{left:16px;top:16px;width:auto;height:auto;padding:8px 12px;background:#fff;border:1px solid var(--border);border-radius:10px;z-index:10}
.bar{border-bottom:1px solid var(--border);background:var(--card)}.bar-inner{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 0}
.name{font-weight:900;color:var(--text)}.menu{display:flex;gap:12px;flex-wrap:wrap}.menu a{color:var(--text);padding:6px 10px;border-radius:10px}.menu a:hover{background:rgba(220,38,38,.08);text-decoration:none}
.ticker{border-bottom:1px solid var(--border);background:#fff}.ticker .container{padding:10px 16px;color:var(--muted)}
.grid{display:grid;grid-template-columns:1fr;gap:18px;padding:16px 16px 0}
@media(min-width:980px){.grid{grid-template-columns:1fr 320px;align-items:start}}
.box{border:1px solid var(--border);border-radius:14px;background:var(--card);padding:12px}
.front{display:grid;grid-template-columns:1fr;gap:12px;border:1px solid var(--border);border-radius:16px;background:var(--card);padding:14px;margin-bottom:14px}
@media(min-width:820px){.front{grid-template-columns:1fr 260px;align-items:start}}
.front h1{margin:0 0 6px;font-size:1.9rem;line-height:1.2}.muted{margin:0;color:var(--muted)}
.page-header h1,.page-header h2{margin:0 0 10px;font-size:1.55rem;line-height:1.25}
.content{padding:6px 0 28px}.content :is(p,ul,ol){max-width:72ch}.content pre{overflow:auto;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f9fafb}
.article-header h1{margin:0 0 8px;font-size:2rem;line-height:1.2}
.notes{border:1px dashed var(--border);border-radius:14px;background:var(--card);padding:12px;color:var(--muted);margin:10px 0 14px}
.news-list{display:flex;flex-direction:column;gap:14px;padding:10px 0 24px}
.news-item{display:grid;grid-template-columns:1fr;gap:12px;border:1px solid var(--border);border-radius:14px;background:var(--card);padding:12px}
@media(min-width:720px){.news-item{grid-template-columns:260px 1fr;align-items:start}}
.thumb{display:block;overflow:hidden;border-radius:12px;background:#f3f4f6}.thumb img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
.title{margin:0;font-size:1.1rem;line-height:1.35}.title a{color:var(--text)}.date{display:inline-block;margin-top:4px;color:var(--muted);font-size:.92rem}
.excerpt{margin:8px 0 0;color:var(--muted)}
.news-item--pagination{border-style:dashed}.news-item--pagination .thumb{display:none}
.pagination{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}
.pagination a{display:inline-block;padding:8px 12px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--card)}
.pagination a:hover{text-decoration:none;background:rgba(220,38,38,.08)}.pagination .info{color:var(--muted)}
.foot{border-top:1px solid var(--border);padding:18px 0;color:var(--muted);margin-top:16px}

/* sticky footer */
.site{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1 0 auto;display:flex;flex-direction:column}
.site-footer{margin-top:auto}
