/*
Theme Name: Musings Lunar
Theme URI: https://musings.ixchellunar.com
Author: Ixchel Lunar
Author URI: https://ixchellunar.com
Description: A reading-focused blog theme for Musings by Ixchel Lunar. Built on the Ixchel Lunar brand palette — deep purples, warm earth tones, parchment, and gold.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: musings-lunar
Tags: blog, custom-colors, custom-logo, featured-images, full-width-template, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --wild-magenta: #8f1e60;
  --star-gold: #D69F72;
  --terra: #B97C6D;
  --plum: #73506B;
  --stone-sage: #768C8D;
  --parchment: #EDE2D1;
  --parchment-dark: #dfd3bc;
  --text: #46372F;
  --text-light: #6b5548;
  --purple: #3a2933;
  --purple-2: #2a1f27;
  --purple-3: #1e161b;
  --radius: 25px;
  --radius-sm: 12px;
  --ff-head: "Fraunces", Georgia, serif;
  --ff-sub: "Klee One", "Lora", serif;
  --ff-body: "Lora", Georgia, serif;
  --max-width: 1200px;
  --content-width: 740px;
  --gap: 2rem;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  color: var(--text);
  background-color: var(--parchment);
  line-height: 1.75;
  min-height: 100vh;
}

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

a {
  color: var(--wild-magenta);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--plum);
}

ul, ol {
  padding-left: 1.5rem;
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--purple);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: 1.4rem;
}

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

blockquote {
  border-left: 4px solid var(--star-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(214, 159, 114, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-sub);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--plum);
  font-family: var(--ff-body);
}

code, pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
}

pre {
  background: var(--purple-2);
  color: var(--parchment);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
}

code {
  background: rgba(58, 41, 51, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

hr {
  border: none;
  border-top: 1px solid var(--parchment-dark);
  margin: 3rem 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container--narrow {
  max-width: var(--content-width);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--ff-sub);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn--primary {
  background: var(--wild-magenta);
  color: var(--parchment);
  border-color: var(--wild-magenta);
}

.btn--primary:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--parchment);
}

.btn--outline {
  background: transparent;
  color: var(--wild-magenta);
  border-color: var(--wild-magenta);
}

.btn--outline:hover {
  background: var(--wild-magenta);
  color: var(--parchment);
}

.btn--gold {
  background: var(--star-gold);
  color: var(--purple-2);
  border-color: var(--star-gold);
}

.btn--gold:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--parchment);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--purple-2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1.5rem;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.custom-logo {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.1;
  margin: 0;
}

.site-title a {
  color: var(--parchment);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--star-gold);
}

.site-tagline {
  font-family: var(--ff-sub);
  font-size: 0.7rem;
  color: var(--stone-sage);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Primary Navigation */
.nav-primary {
  display: flex;
  align-items: center;
}

.nav-primary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary ul li {
  position: relative;
}

.nav-primary ul li a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--ff-sub);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-primary ul li a:hover,
.nav-primary ul li.current-menu-item > a,
.nav-primary ul li.current-page-ancestor > a {
  background: rgba(214, 159, 114, 0.15);
  color: var(--star-gold);
}

/* Dropdown */
.nav-primary ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--purple);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  z-index: 200;
}

.nav-primary ul li:hover > ul,
.nav-primary ul li:focus-within > ul {
  display: flex;
}

.nav-primary ul ul li a {
  border-radius: 8px;
  white-space: nowrap;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--stone-sage);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--parchment);
  font-size: 1.2rem;
  line-height: 1;
  transition: border-color var(--transition);
}

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

.menu-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO BANNER (for archive / home)
   ============================================================ */
.archive-hero {
  background: var(--purple);
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(143,30,96,0.2) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(214,159,114,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.archive-hero__inner {
  position: relative;
}

.archive-hero__eyebrow {
  font-family: var(--ff-sub);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--star-gold);
  margin-bottom: 0.75rem;
}

.archive-hero__title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 1rem;
}

.archive-hero__desc {
  font-family: var(--ff-sub);
  font-size: 1.1rem;
  color: var(--stone-sage);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   BLOG LISTING / ARCHIVE
   ============================================================ */
.blog-section {
  padding: 4rem 0 5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Post Card */
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(58,41,51,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(58,41,51,0.14);
}

.post-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--parchment-dark);
  flex-shrink: 0;
}

.post-card__image a {
  display: block;
  height: 100%;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__no-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--purple) 0%, var(--plum) 50%, var(--wild-magenta) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-card__no-image span {
  font-family: var(--ff-head);
  font-size: 3rem;
  color: rgba(237,226,209,0.3);
  font-style: italic;
}

.post-card__body {
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.post-card__date {
  font-family: var(--ff-sub);
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.post-card__cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cat-label {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(143,30,96,0.1);
  color: var(--wild-magenta);
  font-family: var(--ff-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.cat-label:hover {
  background: var(--wild-magenta);
  color: var(--parchment);
}

.post-card__title {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--purple);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

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

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card__footer {
  margin-top: auto;
}

.read-more {
  font-family: var(--ff-sub);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wild-magenta);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  transition: gap var(--transition), color var(--transition);
}

.read-more::after {
  content: '→';
  transition: transform var(--transition);
}

.read-more:hover {
  color: var(--plum);
  gap: 0.6rem;
}

/* Sticky / featured post */
.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-card--featured .post-card__image {
  aspect-ratio: auto;
  min-height: 320px;
}

.post-card--featured .post-card__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

/* No posts message */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-family: var(--ff-sub);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--ff-sub);
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--parchment-dark);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination .page-numbers:hover:not(.current) {
  background: var(--parchment-dark);
  border-color: var(--terra);
}

.pagination .page-numbers.current {
  background: var(--wild-magenta);
  color: var(--parchment);
  border-color: var(--wild-magenta);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
  padding-bottom: 5rem;
}

/* Post Hero */
.post-hero {
  position: relative;
  background: var(--purple-2);
  overflow: hidden;
}

.post-hero__image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.post-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,22,27,0.85) 0%, rgba(30,22,27,0.3) 50%, transparent 100%);
}

.post-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 2.5rem;
}

.post-hero__content .container {
  max-width: var(--content-width);
}

.post-hero--no-image {
  background: linear-gradient(135deg, var(--purple-3) 0%, var(--purple) 50%, rgba(143,30,96,0.4) 100%);
  padding: 4rem 0 3rem;
}

.post-hero--no-image .post-hero__content {
  position: static;
  padding: 0 1.5rem;
}

.post-hero--no-image .post-hero__content .container {
  max-width: var(--content-width);
}

/* Post meta in hero */
.post-meta-hero {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-meta-hero .cat-label {
  background: rgba(214,159,114,0.2);
  color: var(--star-gold);
}

.post-meta-hero .cat-label:hover {
  background: var(--star-gold);
  color: var(--purple-2);
}

.post-meta-hero .post-date {
  font-family: var(--ff-sub);
  font-size: 0.8rem;
  color: rgba(237,226,209,0.7);
  letter-spacing: 0.04em;
}

.post-meta-hero .read-time {
  font-family: var(--ff-sub);
  font-size: 0.8rem;
  color: rgba(237,226,209,0.6);
}

.post-meta-hero .sep {
  color: rgba(237,226,209,0.3);
}

/* Post title */
.post-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.2;
  margin: 0;
}

/* Post content area */
.post-content-wrap {
  padding: 3.5rem 0 0;
}

.post-content-wrap .container {
  max-width: var(--content-width);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content > * + * {
  margin-top: 1.5rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  color: var(--purple);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.post-content h3 {
  margin-top: 2rem;
  color: var(--plum);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.post-content a {
  color: var(--wild-magenta);
  text-decoration: underline;
  text-decoration-color: rgba(143,30,96,0.35);
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-color: var(--wild-magenta);
}

.post-content img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.post-content .wp-block-image figcaption,
.post-content figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: var(--ff-sub);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Gutenberg block styles */
.post-content .wp-block-separator {
  border-color: var(--parchment-dark);
  margin: 3rem 0;
}

.post-content .wp-block-quote {
  border-left: 4px solid var(--star-gold);
  padding: 1rem 1.5rem;
  background: rgba(214,159,114,0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-sub);
  font-style: italic;
}

.post-content .wp-block-pullquote {
  border-top: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  padding: 2rem;
  text-align: center;
  font-family: var(--ff-head);
  font-size: 1.4rem;
  color: var(--plum);
}

.post-content .wp-block-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--parchment-dark);
}

.post-tags {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.post-tags__label {
  font-family: var(--ff-sub);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  background: var(--parchment-dark);
  color: var(--text-light);
  font-family: var(--ff-sub);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.tag-pill:hover {
  background: var(--plum);
  color: var(--parchment);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.post-nav-link {
  display: block;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--parchment-dark);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-nav-link:hover {
  border-color: var(--terra);
  box-shadow: 0 4px 15px rgba(58,41,51,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.post-nav-link--prev {
  text-align: left;
}

.post-nav-link--next {
  text-align: right;
  grid-column: 2;
}

.post-nav-link__dir {
  font-family: var(--ff-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-sage);
  display: block;
  margin-bottom: 0.3rem;
}

.post-nav-link__title {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  color: var(--purple);
  line-height: 1.3;
  display: block;
}

.post-nav-link:hover .post-nav-link__title {
  color: var(--wild-magenta);
}

/* Author box */
.author-box {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--purple);
  border-radius: var(--radius);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-box__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--star-gold);
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}

.author-box__role {
  font-family: var(--ff-sub);
  font-size: 0.78rem;
  color: var(--star-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.author-box__bio {
  font-size: 0.9rem;
  color: var(--stone-sage);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   STATIC PAGE
   ============================================================ */
.page-hero {
  background: var(--purple);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(143,30,96,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero__title {
  color: var(--parchment);
  position: relative;
}

.page-content-wrap {
  padding: 3.5rem 0 5rem;
}

.page-content-wrap .container {
  max-width: var(--content-width);
}

/* ============================================================
   SIDEBAR (if used)
   ============================================================ */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--star-gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--purple-3);
  color: var(--stone-sage);
  padding: 3.5rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand__logo {
  margin-bottom: 1rem;
}

.footer-brand__logo .site-title {
  color: var(--parchment);
  font-size: 1.4rem;
}

.footer-brand__tagline {
  font-family: var(--ff-sub);
  font-size: 0.85rem;
  color: var(--stone-sage);
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  font-family: var(--ff-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star-gold);
  margin-bottom: 1rem;
}

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

.footer-nav ul li {
  margin-bottom: 0.5rem;
}

.footer-nav ul li a {
  font-family: var(--ff-sub);
  font-size: 0.875rem;
  color: var(--stone-sage);
  transition: color var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--parchment);
}

.footer-bottom {
  border-top: 1px solid rgba(118,140,141,0.2);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-family: var(--ff-sub);
  font-size: 0.8rem;
  color: rgba(118,140,141,0.7);
}

.footer-copyright a {
  color: var(--stone-sage);
}

.footer-copyright a:hover {
  color: var(--parchment);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-sub);
  font-size: 0.78rem;
  color: var(--stone-sage);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}

.footer-back-to-top:hover {
  color: var(--star-gold);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--parchment-dark);
}

.comments-title {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.comment {
  margin-bottom: 1.5rem;
}

.comment-body {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--parchment-dark);
}

.comment-author {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  color: var(--purple);
  font-weight: 600;
}

.comment-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: var(--ff-sub);
  margin-bottom: 0.75rem;
}

.comment-content p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.comment-form label {
  display: block;
  font-family: var(--ff-sub);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--parchment-dark);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  appearance: none;
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--wild-magenta);
  color: var(--parchment);
  border: none;
  border-radius: var(--radius);
  font-family: var(--ff-sub);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.comment-form input[type="submit"]:hover {
  background: var(--plum);
  transform: translateY(-2px);
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--parchment-dark);
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}

.search-form input[type="search"]:focus {
  outline: none;
}

.search-form button {
  padding: 0.7rem 1.2rem;
  background: var(--wild-magenta);
  color: var(--parchment);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}

.search-form button:hover {
  background: var(--plum);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-404__number {
  font-family: var(--ff-head);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--parchment-dark);
  line-height: 1;
  margin-bottom: 0;
}

.error-404__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--purple);
  margin-bottom: 1rem;
}

.error-404__text {
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-family: var(--ff-sub);
}

/* ============================================================
   GUTENBERG EDITOR SUPPORT
   ============================================================ */
.wp-block-button__link {
  border-radius: var(--radius) !important;
  font-family: var(--ff-sub);
  font-weight: 600;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.75rem 1rem;
  border-color: var(--parchment-dark);
}

.wp-block-table thead {
  background: var(--purple);
  color: var(--parchment);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--wild-magenta);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--ff-sub);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .post-card--featured {
    grid-template-columns: 1fr;
  }

  .post-card--featured .post-card__image {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .with-sidebar {
    grid-template-columns: 1fr;
  }
}

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

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-2);
    border-top: 1px solid rgba(118,140,141,0.2);
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }

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

  .nav-primary ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav-primary ul li a {
    padding: 0.7rem 0.75rem;
  }

  .nav-primary ul ul {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    margin-top: 0.25rem;
    margin-left: 1rem;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .post-nav-link--next {
    grid-column: 1;
    text-align: left;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .post-hero__content {
    padding: 2rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .blog-section {
    padding: 2.5rem 0 3.5rem;
  }

  .archive-hero {
    padding: 2.5rem 0 2rem;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .post-navigation,
  .comments-section,
  .author-box { display: none; }

  body { color: #000; background: #fff; }
  a { color: #000; }
}
