
:root {
  --blue-1: #2ea3f2;
  --blue-2: #2e6df4;
  --bg: #f7f7f7;
  --card: #ffffff;
  --border: #d8d8d8;
  --footer: #222222;
  --text: #666666;
  --heading: #333333;
  --link: #2ea3f2;
  --white: #ffffff;
  --max: 1080px;
  --content: 720px;
  --sans: "Open Sans", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--heading); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-desktop {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem;
  max-width: 640px; justify-content: flex-end;
}
.nav-desktop a {
  color: var(--heading); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; padding: 0.25rem 0;
}
.nav-desktop a:hover { color: var(--link); }
.hamburger {
  display: none;
  background: transparent; border: 1px solid var(--border);
  border-radius: 4px; padding: 0.45rem 0.65rem; cursor: pointer;
  color: var(--heading); font-size: 0.85rem; font-weight: 600;
  font-family: inherit;
}
.hamburger:hover { border-color: var(--link); color: var(--link); }
.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  max-height: 70vh; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.65rem 1.25rem;
  color: var(--heading); border-bottom: 1px solid #eee;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.mobile-nav a:hover { background: var(--bg); color: var(--link); }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: inline-flex; align-items: center; gap: 0.35rem; }
}

.hero {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: var(--white);
  padding: 2.75rem 1.25rem;
  text-align: center;
}
.hero h1 {
  margin: 0 0 0.35rem; color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p { margin: 0; opacity: 0.95; font-size: 1.05rem; color: var(--white); }

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}
.posts { display: flex; flex-direction: column; gap: 1.15rem; }
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.35rem 1.5rem 1.25rem;
}
.post-card h2 {
  font-size: 1.35rem; margin: 0 0 0.45rem; line-height: 1.3;
}
.post-card h2 a { color: var(--heading); text-decoration: none; }
.post-card h2 a:hover { color: var(--link); }
.meta {
  font-size: 0.82rem; color: #888;
  margin-bottom: 0.65rem;
}
.meta .sep { margin: 0 0.35rem; color: #bbb; }
.meta .cats a {
  color: var(--link); font-weight: 600; text-decoration: none;
  margin-right: 0.35rem;
}
.meta .cats a:hover { text-decoration: underline; }
.excerpt { margin: 0 0 0.85rem; color: var(--text); }
.read-more {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--link); text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

.sidebar .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.15rem;
}
.sidebar h3 {
  margin: 0 0 0.85rem; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 2px solid var(--blue-1); padding-bottom: 0.4rem;
}
.search-panel form { display: flex; gap: 0.35rem; }
.search-panel input[type="search"] {
  flex: 1; border: 1px solid var(--border); padding: 0.45rem 0.65rem;
  font: inherit; border-radius: 2px; color: var(--heading); background: #fff;
}
.search-panel button {
  background: var(--blue-1); color: #fff; border: 0;
  padding: 0.45rem 0.75rem; font: inherit; font-weight: 600;
  cursor: pointer; border-radius: 2px;
}
.search-panel button:hover { background: var(--blue-2); }
.recent-list, .cat-list, .archive-list {
  list-style: none; margin: 0; padding: 0;
}
.recent-list li, .cat-list li, .archive-list li {
  border-bottom: 1px solid #eee; padding: 0.45rem 0;
}
.recent-list li:last-child, .cat-list li:last-child, .archive-list li:last-child {
  border-bottom: 0;
}
.recent-list a, .cat-list a, .archive-list a {
  color: var(--heading); text-decoration: none; font-size: 0.9rem;
  display: flex; justify-content: space-between; gap: 0.5rem;
}
.recent-list a:hover, .cat-list a:hover, .archive-list a:hover { color: var(--link); }
.cat-list .count, .archive-list .count { color: #999; font-size: 0.8rem; }

.pagination {
  display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.5rem; padding-top: 0.5rem;
}
.pagination a, .pagination span {
  display: inline-block; min-width: 2.1rem; text-align: center;
  padding: 0.4rem 0.55rem; border: 1px solid var(--border);
  background: var(--card); color: var(--heading); text-decoration: none;
  font-size: 0.88rem; border-radius: 2px;
}
.pagination a:hover { border-color: var(--link); color: var(--link); }
.pagination .current {
  background: var(--blue-1); color: #fff; border-color: var(--blue-1);
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

.article-wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.article-wrap .post-card-frame {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 3px; padding: 1.75rem 1.75rem 2rem;
}
.article-header h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 0 0 0.65rem; line-height: 1.25;
}
.article-body { font-size: 1.02rem; color: var(--text); }
.article-body p { margin: 0 0 1.1rem; }
.article-body h2, .article-body h3 { margin: 1.6rem 0 0.7rem; }
.article-body a { word-break: break-word; }
.article-body img, .article-body figure {
  display: block; margin: 1.4rem auto; border-radius: 2px;
}
.article-body blockquote {
  margin: 1.2rem 0; padding: 0.4rem 0 0.4rem 1rem;
  border-left: 3px solid var(--blue-1); color: #777; font-style: italic;
}
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body pre {
  background: #1e2430; color: #e8ecf1; padding: 1rem;
  border-radius: 3px; overflow-x: auto; font-size: 0.88em;
}
.back-link {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.88rem; color: var(--text);
}
.page-banner {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #fff; padding: 1.75rem 1.25rem; text-align: center;
}
.page-banner h1 { margin: 0; color: #fff; font-size: 1.7rem; }
.page-banner p { margin: 0.35rem 0 0; color: rgba(255,255,255,.9); }

.site-footer {
  background: var(--footer);
  color: #aaa;
  padding: 2.25rem 1.25rem 1.5rem;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.site-footer h3 {
  color: #fff; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin: 0 0 0.85rem;
  border-bottom: 1px solid #444; padding-bottom: 0.4rem;
}
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: var(--blue-1); }
.site-footer .cat-list li, .site-footer .archive-list li {
  border-bottom-color: #333;
}
.footer-bottom {
  max-width: var(--max); margin: 1.75rem auto 0;
  padding-top: 1rem; border-top: 1px solid #333;
  text-align: center; color: #777; font-size: 0.82rem;
}
.empty { padding: 2rem; text-align: center; color: var(--text); }
#search-results .post-card { margin-bottom: 1rem; }
.hidden { display: none !important; }
