/*
Theme Name: Ex9 custom theme
Theme URI: https://example.com/my-custom-theme
Author: claire lorts
Author URI: https://example.com
Description: custom theme for ex9
Version: 1.0
Text Domain: ex-9-custom-theme
*/

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
 line-height: 1.5;
  color: #000000;
  background-color: #f5f5f5;
}

a {
  color: #3366cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ── */
.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background-color: #500202;
  color: #fff;
  padding: 30px 0;
  margin-bottom: 40px;
}

.site-header .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-description {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* ── Navigation ── */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #ccc;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: #fff;
  text-decoration: none;
}

/* ── Main Content ── */
main {
  min-height: 60vh;
  padding-bottom: 40px;
}

/* ── Articles ── */
article {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

article h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1a1a2e;
}

article h2 a {
  color: inherit;
}

article h2 a:hover {
  color: #3366cc;
  text-decoration: none;
}

.post-meta {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 15px;
}

.post-meta a {
  color: #666;
}

.entry-content p {
  margin-bottom: 1em;
}

/* ── Page Titles ── */
.page-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000000;
  margin-bottom: 5px;
}

/* ── Sidebar ── */
.sidebar {
  margin-top: 40px;
}

.sidebar .widget {
  background: #e06b6b;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 6px;
  
}

.sidebar .widget h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

/* ── Footer ── */
.site-footer {
  background-color: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  font-size: 0.85rem;
  margin-top: 40px;
  
}

.site-footer a {
  color: #ccc;
}

/* ── Pagination ── */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  background: #fff;
  border-radius: 4px;
}

.pagination .current {
  background: #1a1a2e;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header .site-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
  }

  article {
    padding: 20px;
  }
}
