:root {
  --color-purple: #5e3a6b;
  --color-purple-dark: #4a2e55;
  --color-link: #1e73be;
  --color-link-hover: #155a96;
  --color-text: #333333;
  --color-text-muted: #777777;
  --color-footer: #999999;
  --color-gold: #c9a227;
  --color-bg: #ffffff;
  --color-bg-soft: #faf8fb;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --container: 1100px;
  --spacing: 1.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--spacing);
}

p {
  margin: 0 0 var(--spacing);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-purple);
}

.logo:hover {
  text-decoration: none;
  color: var(--color-purple-dark);
}

.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--color-gold);
  line-height: 1.2;
  margin-top: 0.2rem;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-purple);
}

.site-nav.is-open {
  display: block;
}

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

.site-nav a,
.site-nav button {
  display: block;
  padding: 0.875rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
  background: var(--color-purple-dark);
  color: #fff;
  text-decoration: none;
}

.submenu {
  display: none;
  background: var(--color-purple-dark);
}

.submenu.is-open {
  display: block;
}

/* Hero featured article */
.hero-featured {
  padding: 1.5rem 0;
}

.hero-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hero-card:hover {
  color: #fff;
  text-decoration: none;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.38);
}

.hero-overlay h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-overlay p {
  max-width: 600px;
  font-size: 1.15rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Section dividers */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
  color: var(--color-gold);
}

.section-divider span {
  flex: 1;
  height: 2px;
  background: var(--color-purple);
  opacity: 0.55;
}

/* Recent posts list */
.recent-posts {
  padding: 1rem 0 2rem;
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-purple);
}

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

.post-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}

.post-list a {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-link);
}

.post-list a:hover {
  color: var(--color-link-hover);
}

.post-list time {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Category showcase */
.category-showcase {
  padding: 1rem 0;
}

.category-showcase h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-purple);
}

/* Cards / Articles */
.featured-articles {
  padding: 3rem 0;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.article-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.article-grid.three-up {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-image {
  display: block;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.card-body {
  padding: 1rem 0.25rem;
}

.card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card h3 a {
  color: var(--color-link);
}

.card h3 a:hover {
  color: var(--color-link-hover);
}

.read-more {
  font-weight: 700;
  color: var(--color-link);
}

/* Most popular */
.most-popular {
  padding: 1rem 0 2rem;
}

.most-popular h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-purple);
}

.popular-card {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.popular-image {
  display: block;
}

.popular-image img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.popular-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.popular-body h3 a {
  color: var(--color-text);
}

.popular-body h3 a:hover {
  color: var(--color-link);
}

.popular-body p {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .popular-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Article page */
.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--color-purple);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.article-meta a {
  color: var(--color-purple);
  font-weight: 700;
  margin-right: 0.75rem;
  text-transform: capitalize;
}

.article-hero {
  margin: 0 0 2rem;
}

.article-hero img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-purple);
}

.article-body h2 {
  font-size: 1.6rem;
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--color-text);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Newsletter */
.newsletter {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.newsletter h2 {
  margin-bottom: 0.75rem;
}

.brevo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.brevo-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brevo-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 260px;
}

.brevo-form button,
.button {
  padding: 0.75rem 1.5rem;
  background: var(--color-purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.brevo-form button:hover,
.button:hover {
  background: var(--color-purple-dark);
  color: #fff;
  text-decoration: none;
}

.brevo-form input[name="website"] {
  position: absolute;
  left: -5000px;
}

.newsletter-privacy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.newsletter-page {
  padding: 4rem 1rem;
  text-align: center;
}

.newsletter-page h1 {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-soft);
  padding: 3rem 0;
  text-align: center;
  color: var(--color-footer);
  font-size: 0.9375rem;
}

.footer-about {
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--color-text-muted);
}

.footer-copy {
  font-size: 0.875rem;
}

/* Generic page header */
.page-header {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--color-purple);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0;
}

.page-content {
  padding-bottom: 3rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
