:root {
  --font-main: system-ui, sans-serif;
  --font-size-base: 16px;
  --radius: 12px;

  /* Light theme colors */
  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --primary-border-color: #99c9b3;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #dcdcdc;
  --accent: #5a7bff;
}

/* Dark theme override */
:root[data-theme="dark"] {
  --bg: #0f1116;
  --bg-alt: #1a1d24;
  --primary-border-color: #5E354B;
  --text: #f1f1f1;
  --text-muted: #b6b6b6;
  --border: #2d2f36;
  --accent: #7c94ff;
}

html, body {
  margin: 0;
  border: 8px solid var(--primary-border-color);
  border-radius: 0px;
  padding: 0px;
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}


/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
}

.main-nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

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

.theme-toggle {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

/* CONTENT / POSTS */
.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: background 0.3s ease, border 0.3s ease;
}

.post-title {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.post-body {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
}

/* Ensure footer is full width and centered */
footer#pagination {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: center;    /* horizontally center children */
  align-items: center;        /* vertically center children */
  gap: 12px;                  /* spacing between items */
  padding: 16px 12px;
  margin: 20px 0;
  background: var(--bg-alt);  /* optional; matches other sections */
  border-top: 1px solid var(--border);
}

/* Make the text a bit clearer */
footer#pagination span {
  display: inline-block;
  color: var(--text-muted);
}

/* Style links */
footer#pagination a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 8px;
}

footer#pagination a:hover {
  background: rgba(0,0,0,0.04);
}

