/* ==========================================================================
   SOLSTICE THEME — MAIN STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Light Mode (default) */
  --bg-outer:        #e8e6f0;
  --bg-page:         #f4f2f8;
  --bg-card:         #ffffff;
  --bg-card-alt:     #f0eef8;
  --bg-nav:          rgba(255, 255, 255, 0.72);
  --bg-hero-overlay: rgba(255, 255, 255, 0.12);

  --text-primary:    #1a1625;
  --text-secondary:  #5a5370;
  --text-muted:      #8c84a0;
  --text-accent:     #7c5cbf;
  --text-link:       #9b6ddb;

  --border-color:    rgba(120, 100, 160, 0.18);
  --border-subtle:   rgba(120, 100, 160, 0.08);

  --accent-1:        #9b6ddb;
  --accent-2:        #c96fa8;
  --accent-glow:     rgba(155, 109, 219, 0.20);

  --nav-blur:        blur(16px) saturate(1.6);
  --card-shadow:     0 2px 20px rgba(100, 80, 140, 0.10), 0 1px 4px rgba(100,80,140,0.07);
  --card-shadow-hover: 0 6px 32px rgba(100, 80, 140, 0.18), 0 2px 8px rgba(100,80,140,0.10);

  --radius-pill:     999px;
  --radius-card:     14px;
  --radius-sm:       8px;

  --font-display:    'Playfair Display', 'Georgia', serif;
  --font-body:       'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', 'Courier New', monospace;

  --max-width:       1160px;
  --content-width:   760px;
  --sidebar-width:   300px;
  --gap:             28px;

  --transition:      all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-outer:        #0e0c14;
  --bg-page:         #12101a;
  --bg-card:         #1c1928;
  --bg-card-alt:     #211e2e;
  --bg-nav:          rgba(18, 16, 26, 0.78);
  --bg-hero-overlay: rgba(0, 0, 0, 0.22);

  --text-primary:    #e8e3f4;
  --text-secondary:  #a09ab8;
  --text-muted:      #655e7a;
  --text-accent:     #b48ae8;
  --text-link:       #c4a0f0;

  --border-color:    rgba(160, 140, 200, 0.14);
  --border-subtle:   rgba(160, 140, 200, 0.07);

  --accent-1:        #b48ae8;
  --accent-2:        #e07dbe;
  --accent-glow:     rgba(180, 138, 232, 0.18);

  --card-shadow:     0 2px 24px rgba(0,0,0,0.38), 0 1px 6px rgba(0,0,0,0.22);
  --card-shadow-hover: 0 8px 40px rgba(0,0,0,0.5), 0 2px 10px rgba(0,0,0,0.28);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-outer);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.3em; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

pre {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25em 0;
}

code {
  background: var(--bg-card-alt);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2em 0;
}

blockquote {
  border-left: 3px solid var(--accent-1);
  padding: 0.5em 1.25em;
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.5em 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT WRAPPER
   -------------------------------------------------------------------------- */

.solstice-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
  position: relative;
}

.solstice-inner {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  margin-top: 32px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   4. PILL NAVIGATION
   -------------------------------------------------------------------------- */

#solstice-nav-wrapper {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.solstice-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-nav);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.08);
  pointer-events: all;
  transition: var(--transition);
}

.solstice-pill-nav a,
.solstice-pill-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.solstice-pill-nav a:hover,
.solstice-pill-nav button:hover {
  background: var(--accent-glow);
  color: var(--text-primary);
  text-decoration: none;
}

.solstice-pill-nav a.current-menu-item,
.solstice-pill-nav a[aria-current="page"] {
  background: var(--accent-1);
  color: #fff;
}

.solstice-pill-nav i {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Mode toggle button */
#mode-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

#mode-toggle:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: var(--accent-glow);
}

/* Nav divider */
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  margin: 0 2px;
}

/* --------------------------------------------------------------------------
   5. HERO / HEADER IMAGE
   -------------------------------------------------------------------------- */

.solstice-hero {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 5.5;
  background: var(--bg-card-alt);
}

.solstice-hero img,
.solstice-hero .custom-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.solstice-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0e2e 0%, #2d1654 35%, #0e1a2e 70%, #1a0e2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solstice-hero-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Site branding overlay on hero */
.solstice-hero-branding {
  position: absolute;
  bottom: 22px;
  left: 26px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 18px;
  pointer-events: none;
}

.solstice-hero-branding .site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

.solstice-hero-branding .site-tagline {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   6. MAIN CONTENT AREA
   -------------------------------------------------------------------------- */

.solstice-content {
  min-width: 0;
}

/* Section heading style */
.solstice-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-1);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   7. CARDS & POSTS
   -------------------------------------------------------------------------- */

.solstice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 20px;
  overflow: hidden; /* clip children to border-radius */
}

/* When a card has a thumbnail, remove top padding and let image bleed */
.solstice-card.has-post-thumbnail {
  padding-top: 0;
}

.solstice-card.has-post-thumbnail .card-body {
  padding: 18px 0 4px;
}

.solstice-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.solstice-card:last-child {
  margin-bottom: 0;
}

/* Welcome / static card */
.solstice-welcome {
  margin-bottom: var(--gap);
}

/* Post meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-meta i { font-size: 0.85em; }

/* Post thumbnail — must be display:block to support aspect-ratio */
.post-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  margin-bottom: 0;
  /* No border-radius here — card clips it via overflow:hidden */
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.solstice-card:hover .post-thumbnail img {
  transform: scale(1.03);
}

/* Post title */
.entry-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.entry-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.entry-title a:hover {
  color: var(--accent-1);
  text-decoration: none;
}

/* Post excerpt */
.entry-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Read more */
.read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 0.8rem;
  color: var(--accent-1);
  font-weight: 600;
  margin-top: 14px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(155, 109, 219, 0.35);
  background: rgba(155, 109, 219, 0.08);
  letter-spacing: 0.02em;
  transition: var(--transition);
  text-decoration: none;
}
.read-more:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  gap: 9px;
  text-decoration: none;
}
.read-more i {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}
.read-more:hover i {
  transform: translateX(2px);
}

/* Post category badge */
a.category-badge,
.post-meta a.category-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: #9b6ddb !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: background 0.2s ease !important;
}
a.category-badge:hover,
.post-meta a.category-badge:hover {
  background: #c96fa8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
a.category-badge i { font-size: 0.75em !important; }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-pill {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.tag-pill:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   8. PAGINATION
   -------------------------------------------------------------------------- */

.solstice-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.solstice-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
}

.solstice-pagination .page-numbers:hover,
.solstice-pagination .page-numbers.current {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. SIDEBAR & WIDGETS
   -------------------------------------------------------------------------- */

.solstice-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Widget base */
.solstice-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 22px 22px;
  box-shadow: var(--card-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ---- Widget title ---- */
.widget-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon injected via widget_title filter — Font Awesome */
.widget-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent-1);
  font-size: 0.8rem;
  flex-shrink: 0;
  border: 1px solid rgba(155, 109, 219, 0.2);
}

/* Hide the now-redundant span placeholder */
.widget-title-icon { display: none; }

/* ---- Search widget ---- */
/* WordPress wraps search in a <form> — override default WP search form inside widgets */
.solstice-widget .wp-block-search__inside-wrapper,
.solstice-widget .search-form {
  display: flex;
  gap: 8px;
}

.solstice-widget .search-field,
.solstice-widget input[type="search"],
.solstice-widget input[type="text"] {
  flex: 1;
  min-width: 0;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.solstice-widget .search-field:focus,
.solstice-widget input[type="search"]:focus,
.solstice-widget input[type="text"]:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.solstice-widget .search-submit,
.solstice-widget input[type="submit"],
.solstice-widget button[type="submit"] {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.solstice-widget .search-submit:hover,
.solstice-widget input[type="submit"]:hover,
.solstice-widget button[type="submit"]:hover {
  background: var(--accent-2);
}

/* ---- List-based widgets (Recent Posts, Archives, etc.) ---- */
.solstice-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solstice-widget > ul > li,
.solstice-widget .widget-inner > ul > li {
  padding: 0;
  margin: 0;
}

/* Generic widget links */
.solstice-widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  margin: 2px 0;
}
.solstice-widget ul li a:hover {
  background: var(--accent-glow);
  color: var(--accent-1);
  padding-left: 14px;
  text-decoration: none;
}

/* Post counts / archive counts */
.solstice-widget ul li a .post-count,
.solstice-widget ul li .post-count {
  font-size: 0.72rem;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* WordPress default injects counts inside parens — restyle */
.solstice-widget ul li {
  position: relative;
}

/* Dividers between list items */
.solstice-widget ul li + li {
  border-top: 1px solid var(--border-subtle);
}

/* Recent Comments */
.solstice-widget .recentcomments {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: 8px;
  transition: var(--transition);
}
.solstice-widget .recentcomments a {
  color: var(--accent-1);
  font-weight: 500;
}
.solstice-widget .recentcomments:hover {
  background: var(--accent-glow);
}

/* What's Up widget */
.whatsup-widget .whatsup-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.whatsup-widget .author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.whatsup-widget .author-icon {
  font-size: 0.8rem;
  color: var(--accent-2);
}

.whatsup-widget .whatsup-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.whatsup-widget .whatsup-body {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.whatsup-widget .whatsup-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  transition: var(--transition);
}
.whatsup-widget .whatsup-link:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  text-decoration: none;
}

/* Recent Posts widget — custom class */
.recent-posts-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-widget li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin: 0;
}

.recent-posts-widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-posts-widget a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: block;
  line-height: 1.45;
  transition: var(--transition);
}
.recent-posts-widget a:hover {
  color: var(--accent-1);
  text-decoration: none;
  padding-left: 4px;
}

.recent-posts-widget .rp-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* Categories widget — custom class */
.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.categories-widget li { margin: 0; }

.categories-widget a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
}
.categories-widget a:hover {
  background: var(--accent-glow);
  color: var(--accent-1);
}

.categories-widget .cat-count {
  font-size: 0.72rem;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  border: 1px solid var(--border-color);
}

/* Updates widget */
.updates-widget .update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.updates-widget .update-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin: 0;
  font-size: 0.82rem;
}

.updates-widget .update-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.updates-widget .update-date {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-glow);
  color: var(--accent-1);
  border: 1px solid rgba(155,109,219,0.22);
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
  white-space: nowrap;
}

.updates-widget .update-text {
  color: var(--text-secondary);
  line-height: 1.45;
}

.updates-widget .update-text a {
  color: var(--accent-1);
  font-weight: 600;
}

/* Search widget */
.solstice-search-form {
  display: flex;
  gap: 8px;
}

.solstice-search-form input {
  flex: 1;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.solstice-search-form input::placeholder {
  color: var(--text-muted);
}

.solstice-search-form input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.solstice-search-form button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--accent-1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.solstice-search-form button:hover {
  background: var(--accent-2);
  transform: scale(1.05);
}

/* Text widget */
.text-widget p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tag Cloud */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.tagcloud a {
  font-size: 0.74rem !important;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
}

.tagcloud a:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

/* Calendar widget */
.wp-calendar-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
  color: var(--text-secondary);
}

.wp-calendar-table th {
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wp-calendar-table td {
  padding: 4px 2px;
  text-align: center;
}

.wp-calendar-table a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-1);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.wp-calendar-table a:hover {
  background: var(--accent-1);
  color: #fff;
}

.wp-calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   10. SINGLE POST / PAGE
   -------------------------------------------------------------------------- */

.entry-content {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  margin: 2em 0 0.75em;
  color: var(--text-primary);
}

.entry-content h2 { font-size: 1.4rem; }
.entry-content h3 { font-size: 1.2rem; }

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

.entry-content ul, .entry-content ol {
  margin: 0.75em 0 1em;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.nav-link-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  transition: var(--transition);
  text-decoration: none;
}

.nav-link-box:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
  text-decoration: none;
}

.nav-link-box .nav-direction {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link-box .nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. COMMENTS
   -------------------------------------------------------------------------- */

.comments-area {
  margin-top: 28px;
}

/* Comments heading */
.comments-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 14px;
  border-left: 3px solid var(--accent-1);
  margin-bottom: 20px;
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual comment card */
.comment-list .comment {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.comment-list .comment:hover {
  border-color: var(--border-color);
}

/* Comment author row */
.comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-list .comment-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.comment-list .comment-author .fn {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-1);
  font-style: normal;
  text-decoration: none;
}

.comment-list .comment-author .fn a {
  color: var(--accent-1);
  text-decoration: none;
}

.comment-list .comment-author .fn a:hover {
  color: var(--accent-2);
}

/* Comment meta (date/time) */
.comment-list .comment-metadata {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 46px; /* align with author name (avatar + gap) */
}

.comment-list .comment-metadata a {
  color: var(--text-muted);
  text-decoration: none;
}
.comment-list .comment-metadata a:hover {
  color: var(--accent-1);
}

.comment-list .comment-metadata::before {
  content: '\f017'; /* clock icon via FA */
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 0.8em;
}

/* Comment body */
.comment-list .comment-content {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 46px;
}

.comment-list .comment-content p {
  margin-bottom: 0.6em;
}

.comment-list .comment-content p:last-child {
  margin-bottom: 0;
}

/* Reply link */
.comment-list .reply {
  margin-top: 10px;
  padding-left: 46px;
}

.comment-list .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  text-decoration: none;
  transition: var(--transition);
}
.comment-list .comment-reply-link:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: var(--accent-glow);
  text-decoration: none;
}
.comment-list .comment-reply-link::before {
  content: '\f3e5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8em;
}

/* Pingbacks / trackbacks */
.comment-list .pingback {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 12px 16px;
}

/* Nested comments */
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Comment form ---- */
.comment-respond {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--card-shadow);
  margin-top: 8px;
}

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 3px solid var(--accent-1);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-reply-title small a {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.comment-reply-title small a:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
}

/* Logged-in notice */
.comment-form .logged-in-as {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.comment-form .logged-in-as a {
  color: var(--accent-1);
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  display: block;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

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

/* Two-column layout for name + email */
.comment-form .comment-form-author,
.comment-form .comment-form-email {
  display: inline-block;
  width: calc(50% - 7px);
}
.comment-form .comment-form-author { margin-right: 14px; }

/* Submit button */
.comment-form .form-submit {
  margin-bottom: 0;
}

.comment-form input[type="submit"],
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent-1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  width: auto;
  margin-bottom: 0;
}
.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.comment-form input[type="submit"]:active,
.comment-form .submit:active {
  transform: translateY(0);
}
/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */

.solstice-footer {
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-credit {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--accent-1);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-1);
}

/* --------------------------------------------------------------------------
   12. UTILITY CLASSES
   -------------------------------------------------------------------------- */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 1.5em auto; display: block; text-align: center; }

/* --------------------------------------------------------------------------
   13. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .solstice-inner {
    grid-template-columns: 1fr;
  }

  .solstice-sidebar {
    position: static;
  }

  :root {
    --sidebar-width: 100%;
  }
}

@media (max-width: 640px) {
  .solstice-hero {
    aspect-ratio: 16 / 8;
  }

  .solstice-pill-nav a span,
  .solstice-pill-nav a .nav-label {
    display: none;
  }

  .solstice-pill-nav a,
  .solstice-pill-nav button {
    padding: 7px 10px;
  }

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

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

/* --------------------------------------------------------------------------
   14. ANIMATIONS
   -------------------------------------------------------------------------- */

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

.solstice-card {
  animation: fadeUp 0.4s ease both;
}

.solstice-card:nth-child(1) { animation-delay: 0.05s; }
.solstice-card:nth-child(2) { animation-delay: 0.10s; }
.solstice-card:nth-child(3) { animation-delay: 0.15s; }
.solstice-card:nth-child(4) { animation-delay: 0.20s; }

.solstice-widget {
  animation: fadeUp 0.4s ease both;
}

.solstice-widget:nth-child(1) { animation-delay: 0.07s; }
.solstice-widget:nth-child(2) { animation-delay: 0.13s; }
.solstice-widget:nth-child(3) { animation-delay: 0.19s; }
.solstice-widget:nth-child(4) { animation-delay: 0.25s; }
