:root {
  --bg: #02030a;
  --bg-dot: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --muted: #bfbfbf;
  --gold: #f3a32a;
  --gold-dark: #a55c00;
  --red: #b52828;
  --panel: #050505;
  --panel-border: #333;
  --nav-bg: linear-gradient(to bottom, #e8e8e8, #c9c9c9);
  --sidebar-text: #1d1d1d;
  --link: #4f89ff;
  --link-hover: #84b1ff;
  --green: #3dd03d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Verdana, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10px 10px, var(--bg-dot) 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.top-notice {
  width: 100%;
  background: #9f9f9f;
  color: #fff;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.site-shell {
  width: min(980px, calc(100% - 20px)) !important;
  margin: 16px auto 40px !important;
  display: grid !important;
  grid-template-columns: 140px 1fr !important;
  gap: 18px !important;
  align-items: start !important;
}

.sidebar {
  width: 140px !important;
  display: block !important;
}

.content-column {
  min-width: 0 !important;
  display: block !important;
}

.sidebar-top-image,
.sidebar-bottom-image {
  width: 100%;
}

.sidebar-top-image img,
.sidebar-bottom-image img {
  width: 100%;
  object-fit: cover;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  gap: 10px;
}

.sidebar-nav a {
  color: var(--sidebar-text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  position: relative;
  padding-right: 14px;
}

.sidebar-nav a::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ff8e8e, #b11c1c 70%);
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px rgba(80, 0, 0, 0.45);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--red);
}

.content-column {
  min-width: 0;
}

.hero {
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 6px;
  font-family: Verdana, Arial, sans-serif;
  font-style: italic;
  font-size: 1.7rem;
  color: #fff;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hit-counter {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: flex-end !important;
  gap: 0 !important;
  width: max-content !important;
  margin: 18px auto 24px auto !important;
}

.hit-counter img {
  display: inline-block !important;
  width: 90px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  image-rendering: pixelated !important;
}

.intro-panel,
.spec-panel,
.blog-entry,
.post-page,
.post-card {
  background: transparent;
}

.section-title {
  margin: 0 0 16px;
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
}

.post-feed {
  margin-top: 10px;
}

.post-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  margin-bottom: 34px;
  align-items: start;
}

.post-icon img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.post-body h3,
.blog-entry h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.35rem;
}

.post-body p,
.blog-entry p,
.intro-panel p,
.spec-panel li,
.post-page p {
  line-height: 1.45;
  font-size: 0.98rem;
}

.post-meta {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: bold;
}

.blog-index {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.blog-entry {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 18px;
}

.spec-panel {
  margin-top: 26px;
}

.spec-panel h2 {
  color: #fff;
  margin-bottom: 12px;
}

.spec-panel ul {
  margin: 0;
  padding-left: 18px;
}

.post-page h1 {
  margin-top: 0;
  font-size: 2rem;
  color: #fff;
}

.site-footer {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    max-width: 320px;
    margin: 0 auto;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-icon {
    max-width: 48px;
  }
}
