/*
Theme Name: Emberglow Developer
Theme URI: https://example.com/emberglow
Author: Poonam
Author URI: https://example.com
Description: A dark, moody editorial WordPress theme with copper and gold accents. Features a cinematic design with grain texture, glass-blur navigation, scroll animations, and Customizer controls for every homepage section.
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emberglow-developer
Tags: dark, portfolio, blog, one-column, custom-colors, custom-menu, editor-style, featured-images, theme-options, custom-background, custom-header, custom-logo
*/

/* ---- CSS Variables ---- */
:root {
  --bg-deep: #0d0b0e;
  --bg-warm: #1a1416;
  --bg-card: #211c1e;
  --bg-elevated: #2a2325;
  --accent-copper: #c87941;
  --accent-gold: #d4a574;
  --accent-rose: #b5838d;
  --accent-blush: #e8c4b8;
  --text-primary: #f0e6e0;
  --text-secondary: #a89a94;
  --text-muted: #6d5f59;
  --border-subtle: rgba(200, 121, 65, 0.12);
  --border-glow: rgba(200, 121, 65, 0.3);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Sora', sans-serif;
}

/* ---- Color Scheme: Midnight Blue ---- */
body.scheme-midnight {
  --bg-deep: #0a0c14;
  --bg-warm: #111827;
  --bg-card: #1a1f33;
  --bg-elevated: #222840;
  --accent-copper: #4a8fe7;
  --accent-gold: #7ab3ff;
  --accent-rose: #a78bfa;
  --accent-blush: #c4b5fd;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(74, 143, 231, 0.12);
  --border-glow: rgba(74, 143, 231, 0.3);
}

/* ---- Color Scheme: Forest Green ---- */
body.scheme-forest {
  --bg-deep: #0a0e0c;
  --bg-warm: #121a16;
  --bg-card: #1a241e;
  --bg-elevated: #222e26;
  --accent-copper: #4a9e6e;
  --accent-gold: #6fcf97;
  --accent-rose: #a8d5ba;
  --accent-blush: #c8e6d3;
  --text-primary: #e0f0e6;
  --text-secondary: #94b8a4;
  --text-muted: #5f7d6b;
  --border-subtle: rgba(74, 158, 110, 0.12);
  --border-glow: rgba(74, 158, 110, 0.3);
}

/* ---- Color Scheme: Burgundy Wine ---- */
body.scheme-burgundy {
  --bg-deep: #0e0a0c;
  --bg-warm: #1a1216;
  --bg-card: #261a1f;
  --bg-elevated: #302228;
  --accent-copper: #b44060;
  --accent-gold: #e06080;
  --accent-rose: #d4849a;
  --accent-blush: #f0b8c8;
  --text-primary: #f0e2e6;
  --text-secondary: #b89aa4;
  --text-muted: #7d5f6b;
  --border-subtle: rgba(180, 64, 96, 0.12);
  --border-glow: rgba(180, 64, 96, 0.3);
}

/* ---- Color Scheme: Ocean Teal ---- */
body.scheme-ocean {
  --bg-deep: #0a0e10;
  --bg-warm: #111a1e;
  --bg-card: #1a252a;
  --bg-elevated: #222e34;
  --accent-copper: #2aa89a;
  --accent-gold: #4ecdc4;
  --accent-rose: #88d8d0;
  --accent-blush: #b2ece6;
  --text-primary: #e0f0ee;
  --text-secondary: #94b8b4;
  --text-muted: #5f7d7a;
  --border-subtle: rgba(42, 168, 154, 0.12);
  --border-glow: rgba(42, 168, 154, 0.3);
}

/* ---- Color Scheme: Royal Purple ---- */
body.scheme-purple {
  --bg-deep: #0c0a12;
  --bg-warm: #14111e;
  --bg-card: #1e1a2a;
  --bg-elevated: #282436;
  --accent-copper: #8b5cf6;
  --accent-gold: #a78bfa;
  --accent-rose: #c4b5fd;
  --accent-blush: #ddd6fe;
  --text-primary: #ede9fe;
  --text-secondary: #a8a0c4;
  --text-muted: #6d6590;
  --border-subtle: rgba(139, 92, 246, 0.12);
  --border-glow: rgba(139, 92, 246, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-copper) var(--bg-deep);
}

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-copper); }

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

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

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,121,65,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(13, 11, 14, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.4s ease;
}

.site-nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(13, 11, 14, 0.92);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-copper);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent-gold); }
.nav-links a:hover::after { width: 100%; }

.nav-links .current-menu-item a,
.nav-links .current_page_item a {
  color: var(--accent-gold);
}

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

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200,121,65,0.08) 0%, transparent 60%);
  animation: floatOrb 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(181,131,141,0.06) 0%, transparent 60%);
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 8vw;
  max-width: 900px;
}

.hero-greeting {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

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

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  background: transparent;
  border: 1px solid var(--accent-copper);
  color: var(--accent-gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-cta:hover {
  background: var(--accent-copper);
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(200,121,65,0.2);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.hero-cta:hover svg { transform: translateX(4px); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-copper), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

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

/* ---- Section Base ---- */
section {
  padding: 8rem 8vw;
  position: relative;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent-copper);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.section-subtitle {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Heartfelt Quote Section ---- */
.quote-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,121,65,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(181,131,141,0.05) 0%, transparent 50%);
}

.quote-deco-top,
.quote-deco-bottom {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
}

.quote-deco-top { top: -60px; right: 10%; }
.quote-deco-bottom { bottom: -80px; left: 8%; width: 280px; height: 280px; }

.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  padding: 2rem;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent-copper);
  opacity: 0.25;
  margin-bottom: -2rem;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--accent-blush);
  margin-bottom: 2rem;
}

.quote-author {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote-divider {
  width: 40px;
  height: 1px;
  background: var(--accent-copper);
  margin: 1.5rem auto;
}

/* ---- Work / Portfolio Section ---- */
.work-section {
  background: var(--bg-deep);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(200,121,65,0.05);
}

.work-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-art-1 { background: linear-gradient(135deg, #2a1f1a 0%, #1a1416 50%, #261e20 100%); }
.card-art-1::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(200,121,65,0.2); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulseRing 4s ease-in-out infinite; }
.card-art-2 { background: linear-gradient(45deg, #1a1218 0%, #201a1c 50%, #1e1520 100%); }
.card-art-2::after { content: ''; position: absolute; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(181,131,141,0.04) 20px, rgba(181,131,141,0.04) 21px); }
.card-art-3 { background: linear-gradient(180deg, #1a1614 0%, #0d0b0e 100%); }
.card-art-3::after { content: ''; position: absolute; inset: 30px; border: 1px solid rgba(212,165,116,0.1); border-radius: 50%; }

@keyframes pulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.work-card-body { padding: 1.8rem; }

.work-card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-bottom: 0.8rem;
}

.work-card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.work-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  transition: gap 0.3s;
}

.work-card-link:hover { gap: 0.9rem; }

/* ---- Personal Life Section ---- */
.personal-section { background: var(--bg-warm); }

.personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.personal-image-frame {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.personal-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(200,121,65,0.08) 0%, transparent 40%),
    linear-gradient(315deg, rgba(181,131,141,0.08) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.personal-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.personal-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.personal-text h3 em { color: var(--accent-gold); font-style: italic; }

.personal-text p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.personal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.personal-tag {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.personal-tag:hover {
  border-color: var(--accent-copper);
  color: var(--accent-gold);
  background: rgba(200,121,65,0.06);
}

/* ---- Thoughts / Blog Section ---- */
.thoughts-section { background: var(--bg-deep); }

.thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thought-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.thought-item:first-child { border-top: 1px solid var(--border-subtle); }
.thought-item:hover { padding-left: 1rem; }

.thought-date {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.thought-content h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}

.thought-item:hover .thought-content h4 { color: var(--accent-gold); }

.thought-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.thought-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.thought-item:hover .thought-arrow {
  border-color: var(--accent-copper);
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* ---- Gallery Section ---- */
.gallery-section { background: var(--bg-warm); overflow: hidden; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 1rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s;
}

.gallery-item:hover {
  border-color: var(--border-glow);
  transform: scale(1.02);
  z-index: 2;
}

.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-1 { background: linear-gradient(135deg, #261e1a, #1a1416); }
.gp-2 { background: linear-gradient(180deg, #201820, #141018); }
.gp-3 { background: linear-gradient(45deg, #1a1a14, #141816); }
.gp-4 { background: linear-gradient(225deg, #201618, #181014); }
.gp-5 { background: linear-gradient(90deg, #1a1418, #18141a); }
.gp-6 { background: linear-gradient(135deg, #181a14, #14160e); }

.gallery-label {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-icon { color: var(--text-muted); opacity: 0.3; }

/* ---- Footer ---- */
.footer-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.footer-left h2 em { font-style: italic; color: var(--accent-gold); }

.footer-left p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.8rem;
  font-weight: 500;
}

.social-link:hover {
  border-color: var(--accent-copper);
  color: var(--accent-gold);
  background: rgba(200,121,65,0.06);
  transform: translateY(-2px);
}

.footer-right { text-align: right; }

.footer-nav {
  list-style: none;
  margin-bottom: 3rem;
}

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

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

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

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

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  background: none;
}

.back-to-top:hover {
  border-color: var(--accent-copper);
  color: var(--accent-gold);
  transform: translateY(-3px);
}

/* ---- Section Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-copper), transparent);
  opacity: 0.2;
  margin: 0 8vw;
}

/* ---- Single Post / Page ---- */
.page-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: var(--bg-warm);
  text-align: center;
}

.page-header .section-title {
  margin-bottom: 1rem;
}

.page-content {
  padding: 4rem 8vw;
  background: var(--bg-deep);
}

.page-content .content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-content h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

.page-content blockquote {
  border-left: 2px solid var(--accent-copper);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-blush);
  font-size: 1.1rem;
}

.page-content img { border-radius: 12px; margin: 1.5rem 0; }

.page-content ul,
.page-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-content li { margin-bottom: 0.5rem; }

.page-content a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212,165,116,0.3);
  text-underline-offset: 3px;
}

.page-content a:hover { text-decoration-color: var(--accent-gold); }

.page-content pre,
.page-content code {
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--accent-blush);
}

.page-content pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-content code { padding: 0.2rem 0.4rem; font-size: 0.9em; }

/* Post meta */
.post-meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-meta a { color: var(--accent-gold); text-decoration: none; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

.post-navigation a {
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-decoration: none;
}

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

/* Archive / Blog page */
.archive-header {
  padding-top: 10rem;
  padding-bottom: 3rem;
  background: var(--bg-warm);
}

.archive-content {
  padding: 4rem 8vw;
  background: var(--bg-deep);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
  border-color: var(--accent-copper);
  color: var(--accent-gold);
  background: rgba(200,121,65,0.06);
}

/* 404 */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 8vw 8rem;
  background: var(--bg-deep);
}

/* Search form */
.search-form {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--accent-copper);
}

.search-form input[type="submit"] {
  padding: 0.8rem 1.5rem;
  background: var(--accent-copper);
  color: var(--bg-deep);
  border: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form input[type="submit"]:hover {
  background: var(--accent-gold);
}

/* Comments */
.comments-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 8vw;
  background: var(--bg-deep);
}

.comments-area h3 {
  font-family: var(--serif);
  font-weight: 300;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
}

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

.comment-author {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.comment-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--sans);
  margin-bottom: 1rem;
  border-radius: 4px;
}

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

.comment-form input[type="submit"] {
  width: auto;
  padding: 0.8rem 2rem;
  background: var(--accent-copper);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- WordPress Defaults ---- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.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; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* ---- Mobile Responsive ---- */
@media (max-width: 900px) {
  .site-nav { padding: 1.2rem 1.5rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,11,14,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(20px);
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; letter-spacing: 0.2em; }
  .nav-toggle { display: flex; }

  section { padding: 5rem 6vw; }
  .hero-content { padding: 0 6vw; }

  .personal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .personal-image-frame { aspect-ratio: 16/10; }
  .work-grid { grid-template-columns: 1fr; }
  .thought-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .thought-arrow { display: none; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-right { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }

  .page-header { padding-top: 8rem; }
  .archive-header { padding-top: 8rem; }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 180px);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) { grid-column: span 1; }
}
