:root {
  --bg-color: #FFFFFF;
  --text-color: #444444;
  --heading-color: #515151;
  --accent-color: #21759B;
  --accent-hover: #195873;
  --border-color: #CCCCCC;
  --font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.7;
}

/* Header & Navigation */
.site-header {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-title {
  margin: 0;
}

.site-title a {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: var(--heading-color);
}

.main-nav {
  padding: 0;
  border: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #6A6A6A;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Main Content Layout */
.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 4rem 24px;
  min-height: calc(100vh - 200px);
}

.content-wrapper.with-sidebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.main-content {
  flex: 1 1 65%;
  max-width: 65%;
}

.sidebar {
  flex: 0 0 25%;
  max-width: 25%;
}

@media (max-width: 800px) {
  .content-wrapper.with-sidebar {
    flex-direction: column;
    gap: 2rem;
  }

  .main-content,
  .sidebar {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Sidebar Specifics */
.widget {
  padding: 0;
  margin-bottom: 2.5rem;
}

.widget h3 {
  margin-top: 0;
  font-size: 11px;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 1rem;
  font-weight: 600;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li {
  margin-bottom: 0.75rem;
}

.widget-list a {
  text-decoration: none;
  color: var(--accent-color);
  font-size: 14px;
}

.widget-list a:hover {
  text-decoration: underline;
}

/* Shared Titles */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 26px;
  color: var(--heading-color);
  margin: 0;
}

.page-content p {
  font-size: 16px;
  color: var(--text-color);
}

/* Articles logic */
.article-container {
  padding: 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 22px;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.article-title a {
  color: var(--accent-color);
  text-decoration: none;
}

.article-title a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.article-meta {
  color: #757575;
  font-size: 13px;
}

.article-content {
  font-size: 16px;
  color: var(--text-color);
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: var(--heading-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.article-content img {
  max-width: 100%;
  height: auto;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  margin: 1.5rem 0;
}

.article-content pre {
  background-color: #f6f8fa;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.article-content code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 14px;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
}

hr {
  border: 0;
  border-bottom: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Lists styling */
.articles-list,
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-item,
.link-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.article-item:first-child,
.link-item:first-child {
  padding-top: 0;
}

.article-item:last-child,
.link-item:last-child {
  border-bottom: none;
}

.article-card,
.link-card {
  display: block;
  text-decoration: none;
}

.article-card h2 {
  font-size: 22px;
  color: var(--accent-color);
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.article-card:hover h2 {
  text-decoration: underline;
  color: var(--accent-hover);
}

.article-card time {
  color: #757575;
  font-size: 12px;
}

.link-card {
  display: flex;
  flex-direction: column;
}

.link-card strong {
  font-size: 18px;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.link-card:hover strong {
  text-decoration: underline;
}

.link-url {
  color: #757575;
  font-size: 14px;
}
