/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --text-light: #121212;
  --text-dark: #f5f5f5;
  --primary: #007acc;
  --secondary: #005fa3;
  --accent: #f39c12;
  --font-family: 'Segoe UI', sans-serif;
}

/* Light & Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
  }

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

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

  header, footer {
    background-color: #1f1f1f;
  }

  article {
    background-color: #1a1a1a;
    border-color: #333;
  }
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-light);
  color: var(--text-light);
  padding: 0 1rem;
}

/* Header */
header {
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 a {
  font-size: 1.8rem;
  color: var(--primary);
  text-decoration: none;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
}

nav a:hover {
  color: var(--secondary);
}

/* Articles */
article {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

article h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

article p {
  margin: 1rem 0;
}

article img {
  max-width: 100%;
  border-radius: 4px;
}

/* Read More Button */
footer .button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

footer .button:hover {
  background-color: var(--secondary);
}

/* Meta Time */
header .meta time {
  font-size: 0.875rem;
  color: #888;
}

/* Responsive Typography */
@media (max-width: 768px) {
  header, nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 0.5rem 0 0 0;
  }

  article {
    padding: 1rem;
  }
}
