/* === GLOBAL STYLES === */
:root {
  --bg-color: #0c1234;       /* dark blue background */
  --text-color: #ddeeff;     /* pale blueish text */
  --link-color: #99b2f5;
  --header-bg: #081032;
  --font-choice: "Times New Roman", serif;  /* change font here easily */
}

/* === VISITOR COUNTER === */
.visitor-counter {
  color: var(--link-color);
  font-style: italic;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  margin-top: 25px;
}

/* when JS loads the number */
.visitor-counter.show {
  opacity: 0.9;
  transform: translateY(0);
}

/* subtle glow on hover */
.visitor-counter:hover {
  opacity: 1;
}

p img.inline {
  height: 1em;                 /* same height as text */
  width: auto;                 /* maintain aspect ratio */
  vertical-align: text-bottom; /* aligns with text */
  display: inline-block;       /* ensures proper alignment */
  margin-left: 2px;            /* optional spacing */
  margin-right: 2px;
}
.post-nav {
  margin-top: 40px;
  text-align: center;
}

.post-nav a {
  text-decoration: underline;
  margin: 0 10px;
  color: var(--link-color);
}
.posts-list a {
  color: var(--link-color);
  text-decoration: underline;
}

.posts-list a:hover {
  text-decoration: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-choice);
  line-height: 1.6;
  padding: 20px;
}

/* === HEADER === */
header {
  background: var(--header-bg);
  padding: 15px 20px;
  text-align: center;
}

header h1 {
  font-size: 2em;
  color: var(--link-color);
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--link-color);
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* === MAIN CONTENT === */
main {
  margin-top: 20px;
}

section {
  margin-bottom: 40px;
}

.posts-list {
  list-style: none;
  padding-left: 0;
}

.posts-list li + li {
  margin-top: 10px;
}

.posts-list a {
  color: var(--link-color);
  text-decoration: none;
}

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

/* === FOOTER === */
footer {
  text-align: center;
  color: var(--text-color);
  margin-top: 50px;
  font-size: 0.9em;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.6em;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }
}