/*
Theme Name: Nocturne
Theme URI: https://example.com/nocturne
Author: Custom Theme
Author URI: https://example.com
Description: A dark, moody personal blog theme for writers and essayists. Features a literary aesthetic with rich typography and atmospheric design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, dark, minimal, typography, personal, writing
Text Domain: nocturne
*/

/* =============================================
   NOCTURNE THEME — CSS VARIABLES & RESET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --bg-primary:    #09080a;
  --bg-secondary:  #110f12;
  --bg-card:       #161418;
  --bg-hover:      #1e1b21;

  --text-primary:  #e6ddd4;
  --text-secondary:#a89f96;
  --text-muted:    #635d5a;

  --accent:        #c4855a;
  --accent-dim:    rgba(196, 133, 90, 0.15);
  --accent-glow:   rgba(196, 133, 90, 0.06);

  --border:        rgba(255,255,255,0.06);
  --border-accent: rgba(196, 133, 90, 0.3);

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lora', 'Georgia', serif;
  --font-caption:  'Cormorant Garamond', Georgia, serif;

  --radius:        2px;
  --max-width:     720px;
  --wide-width:    1200px;

  --transition:    0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.6em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 2px solid var(--accent);
  padding: 1.2em 1.8em;
  margin: 2.4em 0;
  background: var(--accent-glow);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--text-secondary);
}

blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 0.8em;
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--font-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.container {
  width: 100%;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.divider {
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
}

.divider--left {
  margin-left: 0;
}

/* =============================================
   SITE HEADER
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.site-title span {
  color: var(--accent);
}

.site-description {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-caption);
  margin-top: 0.15rem;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-caption);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--text-primary);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-family: var(--font-caption);
  text-transform: uppercase;
  transition: all var(--transition);
}

.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   HERO SECTION (Front Page)
   ============================================= */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center, rgba(196, 133, 90, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
  max-width: 14ch;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 48ch;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-caption);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Decorative vertical text */
.hero-aside {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-caption);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   SECTION HEADING STYLE
   ============================================= */

.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--text-secondary);
}

/* =============================================
   FEATURED POSTS SECTION
   ============================================= */

.featured-posts {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

/* Hero featured post */
.featured-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.featured-hero:hover {
  border-color: var(--border-accent);
}

.featured-hero__image {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.featured-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.7);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.featured-hero:hover .featured-hero__image img {
  transform: scale(1.04);
  filter: grayscale(10%) brightness(0.8);
}

.featured-hero__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
}

.featured-hero__content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-meta__category {
  font-family: var(--font-caption);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.2em 0.7em;
}

.post-meta__date {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.post-meta__read-time {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.featured-hero__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.featured-hero__title a {
  color: var(--text-primary);
}

.featured-hero__title a:hover {
  color: var(--accent);
}

.featured-hero__excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-caption);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
}

.read-more:hover {
  gap: 0.8rem;
  color: var(--text-primary);
}

.read-more::after {
  content: '→';
}

/* Post grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.post-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.post-card:hover {
  background: var(--bg-hover);
}

.post-card:hover::before {
  height: 100%;
}

.post-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--bg-hover);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.post-card:hover .post-card__number {
  color: var(--accent-dim);
}

.post-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.post-card__title a {
  color: var(--text-primary);
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* All posts link */
.all-posts-link {
  margin-top: 3.5rem;
  text-align: center;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */

.newsletter-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  font-weight: 900;
  color: var(--bg-card);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.newsletter-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.newsletter-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 1rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.newsletter-form:focus-within {
  border-color: var(--accent);
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--bg-secondary);
  border: none;
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  padding: 1rem 1.6rem;
  font-family: var(--font-caption);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--text-primary);
}

.newsletter-note {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =============================================
   ARCHIVE / BLOG PAGE
   ============================================= */

.archive-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.archive-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}

.archive-count {
  font-family: var(--font-caption);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.posts-list {
  max-width: 760px;
}

.post-list-item {
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  transition: all var(--transition);
}

.post-list-item:hover {
  padding-left: 0.5rem;
}

.post-list-item__date-block {
  text-align: center;
  padding-top: 0.3rem;
}

.post-list-item__day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  transition: color var(--transition);
}

.post-list-item:hover .post-list-item__day {
  color: var(--accent);
}

.post-list-item__month {
  font-family: var(--font-caption);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-list-item__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.post-list-item__title a {
  color: var(--text-primary);
}

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

.post-list-item__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

/* =============================================
   SINGLE POST
   ============================================= */

.single-post-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.single-post-header .post-meta {
  margin-bottom: 1.5rem;
}

.single-post-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.single-post-header .post-excerpt {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.7;
  max-width: 50ch;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}

/* Post thumbnail */
.post-thumbnail {
  margin-bottom: 3rem;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  filter: grayscale(20%);
}

/* Post content */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-primary);
}

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

.entry-content h2 {
  font-size: 1.8rem;
  margin-top: 2.8em;
  margin-bottom: 1em;
}

.entry-content h3 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-dim);
}

.entry-content a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-muted);
}

.entry-content ul, .entry-content ol {
  margin: 0 0 1.7em 1.5em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
  position: relative;
}

.entry-content hr::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Drop cap on first paragraph */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 900;
  float: left;
  line-height: 0.75;
  margin-right: 0.08em;
  margin-top: 0.1em;
  color: var(--accent);
}

/* Post footer */
.entry-footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  font-family: var(--font-caption);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3em 0.8em;
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 4rem;
}

.nav-links {
  background: var(--bg-card);
  padding: 2rem;
  transition: background var(--transition);
}

.nav-links:hover {
  background: var(--bg-hover);
}

.nav-label {
  font-family: var(--font-caption);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.nav-post-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  transition: color var(--transition);
}

.nav-links:hover .nav-post-title {
  color: var(--accent);
}

/* =============================================
   SIDEBAR (optional)
   ============================================= */

.sidebar {
  space-y: 2rem;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   SITE FOOTER
   ============================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  background: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand .site-title {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 30ch;
  margin-bottom: 0;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-family: var(--font-caption);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 4rem 0;
}

.pagination .page-numbers {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-caption);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 50;
  font-size: 1rem;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.25s; opacity: 0; }
.delay-3 { animation-delay: 0.4s; opacity: 0; }
.delay-4 { animation-delay: 0.55s; opacity: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .featured-hero {
    grid-template-columns: 1fr;
  }

  .featured-hero__image {
    min-height: 280px;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-aside { display: none; }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container, .container--narrow {
    padding: 0 1.2rem;
  }

  .post-list-item {
    grid-template-columns: 1fr;
  }

  .post-list-item__date-block {
    display: none;
  }
}

/* =============================================
   WORDPRESS CORE CLASSES
   ============================================= */

.alignleft   { float: left; margin-right: 2rem; margin-bottom: 1rem; }
.alignright  { float: right; margin-left: 2rem; margin-bottom: 1rem; }
.aligncenter { margin: 0 auto 1.5rem; text-align: center; }
.alignwide   { max-width: 900px; margin: 2rem auto; }
.alignfull   { max-width: 100%; width: 100vw; margin-left: calc(-50vw + 50%); }

.wp-block-image figcaption,
figcaption {
  font-family: var(--font-caption);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
}

.sticky { /* sticky posts */ }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
