/*
Theme Name: The Young Millennial
Theme URI: https://theyoungmillennial.com
Author: Sara S.
Author URI: https://theyoungmillennial.com/about-me/
Description: A celestial editorial theme for The Young Millennial — a lifestyle and astrology blog for millennials. Features a dark cosmic hero, cream content sections, gold accents, and elegant Cormorant Garamond typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tym
Tags: blog, lifestyle, astrology, millennial, one-column, two-columns, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream:     #faf6f0;
  --blush:     #e8d5c4;
  --mauve:     #c4a4b0;
  --plum:      #5e3b52;
  --midnight:  #1a1025;
  --stardust:  #9b8db5;
  --gold:      #c9a96e;
  --text:      #2e2233;
  --body-text: #3d3347;
  --muted:     #6e6278;
  --border:    rgba(196, 164, 176, 0.3);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: var(--plum);
  text-decoration: none;
  transition: color 0.2s;
}

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

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  color: var(--midnight);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { line-height: 1.85; color: var(--body-text); margin-bottom: 1.4rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--midnight);
  line-height: 1.1;
}

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

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--plum);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--midnight);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,246,240,0.4);
}

.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
}

.btn-gold {
  background: var(--gold);
  color: var(--midnight);
}

.btn-gold:hover { opacity: 0.85; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#tym-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--plum), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196,164,176,0.2);
  transition: padding 0.3s, background 0.3s;
}

#masthead.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(250,246,240,0.98);
}

.site-branding .site-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  font-weight: 400;
  display: block;
}

.site-branding .site-title:hover { color: var(--midnight); }

.site-logo img {
  max-height: 48px;
  width: auto;
}

/* Primary nav */
#primary-navigation { display: flex; align-items: center; gap: 2rem; }

#primary-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

#primary-menu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

#primary-menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a {
  color: var(--plum);
}

/* Dropdown */
#primary-menu .menu-item-has-children { position: relative; }

#primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 32px rgba(94,59,82,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-6px);
  z-index: 100;
}

#primary-menu .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

#primary-menu .sub-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--body-text);
  transition: color 0.2s, background 0.2s;
}

#primary-menu .sub-menu li a:hover {
  color: var(--plum);
  background: rgba(94,59,82,0.04);
}

.nav-subscribe { margin-left: 1rem; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--plum);
  transition: all 0.3s;
}

/* ============================================================
   HERO (FRONT PAGE)
   ============================================================ */
.tym-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1025 0%, #2d1d3a 40%, #3d1f35 70%, #5e3b52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c4a4b0 0%, transparent 70%);
  top: -100px; right: -100px;
  opacity: 0.3;
  animation: heroOrb1 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #9b8db5 0%, transparent 70%);
  bottom: -50px; left: -50px;
  opacity: 0.25;
  animation: heroOrb2 14s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #c9a96e 0%, transparent 70%);
  top: 50%; left: 50%;
  opacity: 0.2;
  animation: heroOrb3 8s ease-in-out infinite;
}

@keyframes heroOrb1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(15px,-20px) scale(1.08); }
}
@keyframes heroOrb2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-10px,15px); }
}
@keyframes heroOrb3 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.15); }
}

#stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 820px;
  animation: fadeUp 1.2s ease both;
}

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

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.hero-title em { font-style: italic; color: var(--mauve); }

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.6;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250,246,240,0.65);
  margin-bottom: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250,246,240,0.35);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   ZODIAC TICKER
   ============================================================ */
.tym-ticker {
  background: var(--plum);
  padding: 0.75rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}

.ticker-item {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush);
  padding: 0 2rem;
  opacity: 0.85;
}

.ticker-sep { color: var(--gold); opacity: 0.6; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FEATURED POST
   ============================================================ */
.tym-featured {
  padding: 6rem 0;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.featured-image-wrap {
  position: relative;
}

.featured-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px -20px 20px 20px;
  background: linear-gradient(135deg, var(--mauve), var(--stardust));
  border-radius: 4px;
  z-index: 0;
  opacity: 0.25;
}

.featured-image-wrap .post-thumbnail,
.featured-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-badge {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  z-index: 2;
  background: var(--gold);
  color: var(--midnight);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}

.featured-content { padding: 1rem 0; }

.post-category-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid var(--mauve);
  padding-bottom: 2px;
  display: inline-block;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--midnight);
  margin-bottom: 1.2rem;
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-title:hover { color: var(--plum); }

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.post-meta {
  font-size: 0.72rem;
  color: var(--stardust);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid var(--mauve);
  padding-bottom: 3px;
  transition: all 0.2s;
}

.read-more::after { content: ' →'; transition: transform 0.2s; }
.read-more:hover { color: var(--midnight); }
.read-more:hover::after { transform: translateX(4px); }

/* ============================================================
   BLOG GRID
   ============================================================ */
.tym-blog-grid {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--cream) 0%, #f2eae4 100%);
}

.grid-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Post card */
.post-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(94,59,82,0.06);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(94,59,82,0.13);
}

.post-card .post-thumbnail img,
.post-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card .card-img-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body { padding: 1.8rem; }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--midnight);
  margin-bottom: 0.8rem;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.card-title:hover { color: var(--plum); }

.card-excerpt {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Pagination */
.posts-pagination {
  text-align: center;
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 2px;
  font-size: 0.82rem;
  color: var(--plum);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}

/* ============================================================
   CATEGORIES BAND
   ============================================================ */
.tym-categories {
  background: var(--midnight);
  padding: 5rem 0;
}

.categories-header { margin-bottom: 3rem; }
.categories-header .section-title { color: var(--cream); }
.categories-sub {
  font-size: 0.85rem;
  color: var(--stardust);
  margin-top: 0.5rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card {
  border: 1px solid rgba(196,164,176,0.18);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  display: block;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--plum), var(--stardust));
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover { border-color: var(--mauve); transform: translateY(-3px); }
.cat-card:hover::before { opacity: 0.15; }

.cat-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cat-name {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 0.4rem;
}

.cat-count {
  font-size: 0.7rem;
  color: var(--stardust);
  position: relative;
  z-index: 1;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.tym-newsletter {
  background: linear-gradient(135deg, #f2eae4 0%, #e8d5c4 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tym-newsletter::before {
  content: '✦';
  position: absolute;
  font-size: 22rem;
  color: var(--mauve);
  opacity: 0.07;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  line-height: 1;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-inner .section-title { color: var(--midnight); margin-bottom: 0.8rem; }

.newsletter-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto 1rem;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(94,59,82,0.12);
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  background: white;
  color: var(--text);
  outline: none;
}

.newsletter-form input::placeholder { color: #b5a8bc; }

.newsletter-form button {
  padding: 1rem 1.8rem;
  background: var(--plum);
  color: var(--cream);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

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

.newsletter-note {
  font-size: 0.72rem;
  color: var(--stardust);
}

/* Also style Mailchimp / other embed forms */
#mc_embed_signup input[type="email"] {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  background: white;
  color: var(--text);
  margin-bottom: 0.7rem;
  outline: none;
}

#mc_embed_signup input[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  background: var(--gold);
  color: var(--midnight);
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.tym-about-strip {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.about-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--mauve);
  opacity: 0.5;
  pointer-events: none;
}

.about-avatar-placeholder {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--stardust));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  position: relative;
}

.about-avatar-placeholder::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--mauve);
  opacity: 0.5;
}

.about-name {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.about-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: var(--midnight);
  margin-bottom: 0.8rem;
}

.about-headline em { font-style: italic; color: var(--plum); }

.about-bio {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.social-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  border: 1px solid var(--mauve);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.social-link:hover { background: var(--plum); color: var(--cream); }

/* ============================================================
   SINGLE POST — HERO
   ============================================================ */
.post-hero {
  min-height: 70vh;
  background: linear-gradient(160deg, #1a1025 0%, #2d1d3a 50%, #5e3b52 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8rem 3rem 0;
  position: relative;
  overflow: hidden;
}

.post-hero-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.post-hero-sym {
  position: absolute;
  color: var(--gold);
  opacity: 0.06;
  animation: floatSym linear infinite;
}

@keyframes floatSym {
  from { transform: translateY(0) rotate(0deg); opacity: 0.06; }
  to   { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.post-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  width: 100%;
  animation: fadeUp 1s ease both;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-breadcrumb a,
.post-breadcrumb span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,240,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb .sep { color: var(--gold); opacity: 0.5; }

.post-category-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.post-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.post-hero-title em { font-style: italic; color: var(--mauve); }

.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  color: rgba(250,246,240,0.5);
  font-size: 0.75rem;
}

.meta-dot { color: var(--gold); opacity: 0.5; }

.post-hero-image {
  width: 100%;
  max-width: 900px;
  height: 420px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 -30px 80px rgba(0,0,0,0.3);
  position: relative;
}

.post-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.post-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,16,37,0.5));
}

/* ============================================================
   SINGLE POST — LAYOUT
   ============================================================ */
.post-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}

/* ── Article ── */
.post-article { min-width: 0; }

.post-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--plum);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.entry-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--midnight);
  margin: 3rem 0 1rem;
  line-height: 1.2;
}

.entry-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--plum);
  margin: 2rem 0 0.8rem;
}

.entry-content p { font-size: 1rem; line-height: 1.9; color: var(--body-text); }

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1.4rem 1.4rem;
  list-style: disc;
}

.entry-content ol { list-style: decimal; }

.entry-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 0.5rem;
}

.entry-content strong { color: var(--midnight); font-weight: 500; }

.entry-content a { color: var(--plum); border-bottom: 1px solid var(--mauve); }
.entry-content a:hover { color: var(--midnight); }

.entry-content img {
  border-radius: 4px;
  margin: 1.5rem 0;
  width: 100%;
  height: auto;
}

.entry-content blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(94,59,82,0.04), rgba(155,141,181,0.04));
  border-radius: 0 4px 4px 0;
  position: relative;
}

.entry-content blockquote::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: var(--mauve);
  opacity: 0.25;
  position: absolute;
  top: -1rem; left: 1rem;
  line-height: 1;
}

.entry-content blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-style: italic;
  color: var(--plum);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  border: 1px solid var(--mauve);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}

.post-tag:hover { background: var(--plum); color: var(--cream); }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.share-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stardust);
}

.share-btn {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  border: 1px solid var(--mauve);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  font-family: 'DM Sans', sans-serif;
}

.share-btn:hover { background: var(--plum); color: var(--cream); border-color: var(--plum); }

/* Author card */
.author-card {
  background: linear-gradient(135deg, rgba(94,59,82,0.05), rgba(155,141,181,0.05));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0 3rem;
}

.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--plum), var(--stardust));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.author-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--mauve);
  opacity: 0.5;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.author-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--midnight);
  margin-bottom: 0.4rem;
  font-weight: 300;
}

.author-bio {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

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

.nav-previous, .nav-next {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}

.nav-next { text-align: right; }
.nav-previous:hover, .nav-next:hover { border-color: var(--mauve); box-shadow: 0 4px 16px rgba(94,59,82,0.08); }

.nav-direction {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--midnight);
  line-height: 1.3;
}

/* Comments */
.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--midnight);
  margin-bottom: 2rem;
}

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-author { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }

.comment-author .avatar {
  border-radius: 50%;
  border: 1px solid var(--mauve);
}

.comment-author .fn { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--midnight); }

.comment-meta { font-size: 0.72rem; color: var(--stardust); margin-bottom: 0.5rem; }

.comment-content p { font-size: 0.9rem; color: var(--body-text); }

.comment-reply-link {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid var(--mauve);
}

/* Comment form */
.comment-form label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stardust);
  display: block;
  margin-bottom: 0.4rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  margin-bottom: 1.2rem;
  outline: none;
  transition: border-color 0.2s;
}

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

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

.comment-form .submit { background: var(--plum); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.post-sidebar { position: sticky; top: 7rem; }

.sidebar-widget { margin-bottom: 2.5rem; }

.widget-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--mauve), transparent);
  opacity: 0.4;
}

/* TOC */
.toc-list { list-style: none; }

.toc-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(196,164,176,0.15);
}

.toc-item:last-child { border: none; }

.toc-link {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
  line-height: 1.4;
}

.toc-link::before {
  content: '✦';
  font-size: 0.45rem;
  color: var(--mauve);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
}

.toc-link:hover, .toc-link.active { color: var(--plum); }
.toc-link:hover::before, .toc-link.active::before { opacity: 1; color: var(--gold); }

/* Sidebar newsletter */
.newsletter-widget {
  background: linear-gradient(160deg, #2d1d3a, #5e3b52);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-widget::before {
  content: '☽';
  position: absolute;
  font-size: 8rem;
  color: var(--mauve);
  opacity: 0.05;
  bottom: -2rem; right: -1rem;
  pointer-events: none;
}

.newsletter-widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.newsletter-widget-title em { font-style: italic; color: var(--mauve); }

.newsletter-widget-sub {
  font-size: 0.78rem;
  color: rgba(250,246,240,0.55);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(196,164,176,0.25);
  border-radius: 2px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
  outline: none;
  position: relative;
  z-index: 1;
}

.newsletter-widget input::placeholder { color: rgba(250,246,240,0.35); }

.newsletter-widget button {
  width: 100%;
  padding: 0.8rem;
  background: var(--gold);
  color: var(--midnight);
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}

.newsletter-widget button:hover { opacity: 0.85; }

/* Related mini cards */
.related-mini { display: flex; flex-direction: column; gap: 1rem; }

.related-mini-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.related-mini-card:hover { transform: translateX(3px); }

.related-mini-thumb {
  width: 54px; height: 54px;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
}

.related-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.related-mini-cat {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stardust);
  display: block;
  margin-bottom: 0.2rem;
}

.related-mini-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--midnight);
  transition: color 0.2s;
}

.related-mini-card:hover .related-mini-title { color: var(--plum); }

/* ============================================================
   RELATED POSTS (BOTTOM OF SINGLE)
   ============================================================ */
.tym-related {
  background: linear-gradient(180deg, var(--cream) 0%, #f2eae4 100%);
  padding: 5rem 0;
}

.related-header { text-align: center; margin-bottom: 3rem; }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-hero {
  background: linear-gradient(160deg, #1a1025, #2d1d3a, #5e3b52);
  padding: 10rem 3rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: attr(data-symbol);
  position: absolute;
  font-size: 20rem;
  color: var(--mauve);
  opacity: 0.06;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.archive-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
}

.archive-title em { font-style: italic; color: var(--mauve); }

.archive-desc {
  font-size: 1rem;
  color: rgba(250,246,240,0.6);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--midnight);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(196,164,176,0.12);
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--mauve);
  margin-bottom: 0.8rem;
}

.footer-desc {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(250,246,240,0.4);
  margin: 0;
}

.footer-col-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.footer-menu { list-style: none; }

.footer-menu li { margin-bottom: 0.55rem; }

.footer-menu a {
  font-size: 0.8rem;
  color: rgba(250,246,240,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-menu a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(250,246,240,0.28);
}

.footer-stars {
  color: var(--gold);
  letter-spacing: 0.3em;
  opacity: 0.4;
  font-size: 0.85rem;
}

/* ============================================================
   WP BLOCK / WIDGET STYLES
   ============================================================ */
.widget { margin-bottom: 2.5rem; }

.widget-title-text {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

/* Search form */
.search-form { display: flex; gap: 0; }

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 2px 0 0 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
  background: white;
  color: var(--text);
}

.search-submit {
  padding: 0.75rem 1.2rem;
  background: var(--plum);
  color: white;
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.search-submit:hover { background: var(--midnight); }

/* WP alignment classes */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide  { margin-left: -3rem; margin-right: -3rem; }

/* WP caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--stardust); font-style: italic; text-align: center; margin-top: 0.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sidebar-widget { margin-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  #masthead { padding: 1rem 1.5rem; }
  #masthead.scrolled { padding: 0.7rem 1.5rem; }
  #primary-menu { display: none; }
  #primary-menu.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,16,37,0.98); z-index: 999; justify-content: center; align-items: center; gap: 2rem; padding: 2rem; }
  #primary-menu.open a { color: var(--cream); font-size: 1.1rem; }
  .menu-toggle { display: flex; z-index: 1001; }
  .nav-subscribe { display: none; }
  .featured-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .about-avatar-placeholder { margin: 0 auto; }
  .social-links { justify-content: center; }
  .post-sidebar { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .tym-related .related-grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; text-align: center; }
  .post-hero { padding: 7rem 1.5rem 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border-radius: 3px; }
  .newsletter-form input { border-radius: 3px; }
  .newsletter-form button { border-radius: 3px; }
}

/* ============================================================
   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;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #masthead, .post-sidebar, #colophon, .tym-newsletter, .share-bar, #tym-progress-bar { display: none; }
  .post-layout { grid-template-columns: 1fr; padding: 1rem; }
  body { background: white; }
}
