/*
 * Style sheet for the Syngraphose blog.
 *
 * The design reflects the requested palette of black, white, gold and royal blue.
 * Colors are defined as CSS variables for easy customization. The layout uses
 * modern CSS techniques such as flexbox to ensure elements are nicely spaced
 * and responsive. Headings, links and accents use the primary and accent colours
 * while the body text sits on a light background for readability.
 */

:root {
  /* Primary brand colour (royal blue) */
  --primary-color: #4169e1;
  /* Accent colour (gold) */
  --accent-color: #daa520;
  /* Background colour for main content */
  --bg-color: #ffffff;
  /* Header background (black) */
  --header-bg: #000000;
  /* Default text colour */
  --text-color: #333333;
  /* Maximum width for content containers */
  --max-width: 960px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background-color: var(--header-bg);
  color: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero section with an image and overlay text */
.hero {
  position: relative;
  text-align: center;
  color: #ffffff;
}

.hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: var(--max-width);
  padding: 20px;
}

.hero .text h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.hero .text p {
  font-size: 1.2rem;
  margin: 0;
}

/* Main content area */
.main-content {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: var(--bg-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

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

.card ul li {
  margin-bottom: 8px;
}

.card ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.card ul li .date {
  color: #777;
  font-size: 0.9rem;
  margin-left: 5px;
}

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

.card a:hover {
  text-decoration: underline;
}

/* Blog list */
.blog-list h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.blog-list article {
  background: var(--bg-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-list article h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.blog-list article h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-list article h3 a:hover {
  text-decoration: underline;
}

.blog-list article .date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-list article p {
  margin: 0 0 10px 0;
}

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

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

/* Individual post styling */
article.post {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 30px 20px;
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

article.post h1 {
  margin-top: 0;
  color: var(--primary-color);
}

article.post .date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

article.post p {
  margin-bottom: 1em;
  text-align: justify;
}

footer {
  background-color: #111111;
  color: #aaaaaa;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}