:root {
    --accent: #38b7ea;
    --title: #444444;
    --muted: #999999;
    --danger: #b94a48;
    --card: #ffffff;
    --shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #eceff1 url("../img/banner.jpg") center top / cover fixed; color: #999; font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

.cube-menu { align-items: center; backdrop-filter: blur(5px); background: rgba(255, 255, 255, .72); display: flex; gap: 16px; justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 3; }
.cube-brand { color: var(--title); font-weight: 700; }
.cube-menu ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 8px 0; }
.cube-menu a { color: #666; display: inline-block; padding: 8px 12px; }
.cube-menu a:hover { color: var(--accent); }

.cube-header { margin: 18px auto 0; max-width: 1080px; position: relative; }
.cube-header img { border-radius: 5px; display: block; height: 280px; object-fit: cover; width: 100%; }
.cube-type { color: #fff; left: 28px; position: absolute; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); top: 36px; }
.cover-kicker { letter-spacing: .18em; margin: 0; }
.cube-type h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 6px 0; }

.cube-content { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 280px; margin: 22px auto 40px; max-width: 1080px; padding: 0 16px; }
.cube-excerpt, .content-card, .cube-right { background: var(--card); border-radius: 5px; box-shadow: var(--shadow); }
.cube-excerpt { margin-bottom: 22px; padding: 10px 10px 20px; }
.cube-excerpt h2 { font-size: 1.6rem; font-weight: 600; margin: 16px 0 8px; text-align: center; }
.cube-excerpt h2 a, .content-card h2 a, .article-header h1 { color: var(--title); }
.cube-excerpt-header-msg { color: var(--title); display: flex; gap: 16px; justify-content: center; margin: 0; }
.cube-excerpt-entry { margin: 12px 20px; }
.cube-excerpt-footer { margin: 18px 0 8px; text-align: center; }
.cube-excerpt-footer a { background: #efefef; border-radius: 20px; color: #999; padding: 6px 20px; }
.cube-excerpt-footer a:hover { background: var(--accent); color: #fff; }

.cube-right { align-self: start; padding: 8px 18px 16px; }
.cube-right h2 { border-bottom: 1px dashed #ddd; color: var(--danger); font-size: 1rem; margin: 14px 0 8px; }
.cube-right ul { list-style: none; margin: 0; padding: 0; }
.cube-right li { display: flex; gap: 8px; justify-content: space-between; padding: 5px 0; }
.cube-right a { color: #999; }
.cube-right a:hover { color: var(--accent); }
.cube-right span { color: #bbb; }

.section-title, .archive-year-heading h2 { color: var(--danger); }
.card-index { display: none; }
.card-row { display: block; }
.content-card { margin-bottom: 16px; padding: 18px 20px; }
.card-meta, .empty-state, .pagination span { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; margin: 8px 0 20px; }
.page-link { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 6px 14px; }
.term-grid { display: grid; gap: 12px; }
.term-card { align-items: center; color: var(--title); display: flex; justify-content: space-between; }
.archive-year ul { list-style: none; margin: 8px 0 0; padding: 0; }
.archive-year li { display: flex; gap: 12px; padding: 6px 0; }
.archive-year time { color: var(--muted); flex: 0 0 105px; }
.article-header h1 { font-size: 1.8rem; text-align: center; }
.article-content, .article-toc, .article-footer, .article-nav { color: #666; }
.article-content img { height: auto; max-width: 100%; }
.article-content pre, .article-content code { background: #eee; }
.article-content pre { overflow-x: auto; padding: 14px; }
.article-content blockquote { background: #dff0d8; border-left: 5px solid #d6e9c6; color: #468847; margin-left: 0; padding: 10px 10px 10px 18px; }
.taxonomy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.article-nav { display: flex; gap: 12px; justify-content: space-between; }
.article-nav a { color: #999; display: flex; flex: 1; flex-direction: column; font-weight: 600; }
.article-nav a:hover { color: var(--accent); }
.article-nav-next { align-items: flex-end; text-align: right; }
.site-footer { color: #fff; padding: 8px 16px 28px; text-align: center; }
.footer-inner { display: flex; gap: 12px; justify-content: center; }
.footer-years { display: flex; gap: 10px; }
.site-footer a { color: #fff; }

@media (max-width: 800px) {
    .cube-content, .cube-menu, .article-nav, .footer-inner { display: block; }
    .cube-header img { height: 180px; }
    .cube-right { margin-top: 16px; }
}
