:root {
  --body-bg: #fff8e1;
  --text-color: #5d4037;
  --link-color: #8d6e63;
  --header-bg: #ffe082;
  --heading-color: #4e342e;
  --subheading-color: #6d4c41;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --button-bg: #8d6e63;
  --button-bg-hover: #7b594f;
  --button-text: #ffffff;
  --pagination-border: #8d6e63;
  --article-shadow: rgba(0, 0, 0, 0.1);
  --hero-image: none;
  --hero-image-mobile: var(--hero-image);
}

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

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

a:hover {
  text-decoration: underline;
}

header {
  background: var(--header-bg);
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: var(--heading-color);
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: var(--subheading-color);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  font-weight: bold;
}

.hero {
  width: 100%;
  aspect-ratio: 32/9;
  background: var(--hero-image) center/cover no-repeat;
}

@media (max-width: 600px) {
  .hero {
    aspect-ratio: 1/1;
    background-image: var(--hero-image-mobile);
  }
}

.sele {
  font-weight: bold;
  text-decoration: underline;
}

main#posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

@media (max-width: 900px) {
  main#posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  main#posts {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

.post-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
}

.post-card .content {
  padding: 1rem;
  flex: 1;
}

.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--heading-color);
}

.post-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.post-card a.read-more {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 4px;
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pagination-border);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
}

.pagination a:hover {
  background: var(--button-bg);
  color: var(--button-text);
}

.pagination .current {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

footer {
  background: var(--header-bg);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

footer .newsletter {
  margin: 1rem auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  text-align: center;
}

footer .newsletter h3 {
  margin: 0.5rem 0;
  color: var(--heading-color);
  font-size: 1.3rem;
}

footer .newsletter p.cta {
  margin: 0.5rem 0;
  color: var(--subheading-color);
  font-size: 1rem;
}

footer .newsletter input[type="email"] {
  font-size: 1.1rem;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid var(--pagination-border);
  border-radius: 4px;
  width: 250px;
}

footer .newsletter button {
  padding: 0.5rem 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

footer .newsletter button:hover {
  background: var(--button-bg-hover);
}

nav.breadcrumb {
  max-width: 800px;
  margin: 1rem auto;
  font-size: 0.85rem;
}

nav.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

nav.breadcrumb li {
  display: inline;
}

article {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--article-shadow);
}

article h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

article .meta {
  font-size: 0.9rem;
  color: var(--subheading-color);
}

article img.featured {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}
