/*
Theme Name: GenerallyInfo
Theme URI: https://generallyinfo.com
Author: GenerallyInfo Editorial Team
Author URI: https://generallyinfo.com
Description: A luxury editorial WordPress magazine theme for interiors, gardens, kitchens, DIY, and slow living. Handcrafted with bespoke typography, frosted glassmorphism, OKLCH palette, automated setup engine, and zero runtime dependencies.
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: generally-info
Tags: blog, news, entertainment, grid-layout, two-columns, three-columns, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ------------------------------------------------------------------------- *
 * 1. Design System & CSS Custom Properties Tokens
 * ------------------------------------------------------------------------- */
:root {
  --radius-sm: 0.625rem;
  --radius-md: 0.75rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-2xl: 1.375rem;
  --radius-3xl: 1.625rem;
  --radius-4xl: 2rem;
  --radius-full: 9999px;

  /* Fonts */
  --font-serif: "Playfair Display", "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Inter", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", ui-serif, Georgia, serif;

  /* Palette - Luxury Editorial with RGB/Hex fallbacks */
  --ivory-raw: #fcfbfa;
  --ivory: oklch(0.985 0.006 85);

  --champagne-raw: #f4efe6;
  --champagne: oklch(0.94 0.02 85);

  --navy-raw: #183B5B;
  --navy: oklch(0.28 0.06 258);

  --navy-deep-raw: #112338;
  --navy-deep: oklch(0.19 0.05 262);

  --navy-soft-raw: #3b5a7a;
  --navy-soft: oklch(0.40 0.06 258);

  --gold-raw: #c99d42;
  --gold: oklch(0.75 0.13 82);

  --gold-soft-raw: #dfbf78;
  --gold-soft: oklch(0.86 0.08 88);

  /* Theme mappings */
  --background: var(--ivory);
  --foreground: #1c2633;
  --foreground-oklch: oklch(0.19 0.04 260);

  --card: #ffffff;
  --card-foreground: #1c2633;

  --popover: #ffffff;
  --popover-foreground: #1c2633;

  --primary: var(--navy);
  --primary-foreground: var(--ivory);

  --secondary: var(--champagne);
  --secondary-foreground: var(--navy-deep);

  --muted: #f3f1ec;
  --muted-foreground: #6b7582;

  --accent: var(--gold);
  --accent-foreground: var(--navy-deep);

  --destructive: #d4382c;
  --destructive-foreground: #ffffff;

  --border: #e6e3dc;
  --input: #ece9e2;
  --ring: var(--gold);

  /* Shadows */
  --shadow-luxury: 0 30px 60px -30px rgba(17, 35, 56, 0.35), 0 8px 20px -12px rgba(17, 35, 56, 0.15);
  --shadow-soft: 0 1px 2px rgba(17, 35, 56, 0.04), 0 20px 40px -20px rgba(17, 35, 56, 0.12);
  --shadow-gold: 0 20px 45px -18px rgba(201, 157, 66, 0.45);
}

.dark {
  --background: #0e1520;
  --foreground: #f6f5f2;
  --card: #151f2e;
  --card-foreground: #f6f5f2;
  --popover: #151f2e;
  --popover-foreground: #f6f5f2;
  --primary: var(--gold);
  --primary-foreground: var(--navy-deep);
  --secondary: #1a2638;
  --secondary-foreground: #f6f5f2;
  --muted: #182333;
  --muted-foreground: #a6b0be;
  --accent: var(--gold);
  --accent-foreground: var(--navy-deep);
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.15);
  --ring: var(--gold);
}

/* ------------------------------------------------------------------------- *
 * 2. Modern Reset & Base Typography
 * ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1 0 auto;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.5vw + 0.5rem, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw + 0.25rem, 2.25rem); }
h4 { font-size: clamp(1.15rem, 1.5vw + 0.2rem, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--gold);
  color: var(--navy-deep);
}

/* ------------------------------------------------------------------------- *
 * 3. Luxury Brand Utilities & Effects
 * ------------------------------------------------------------------------- */
.glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(201, 157, 66, 0.25);
  box-shadow: var(--shadow-soft);
}

.dark .glass-panel {
  background: rgba(21, 31, 46, 0.75);
  border-color: rgba(201, 157, 66, 0.2);
}

.glass-dark {
  background: rgba(17, 35, 56, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(201, 157, 66, 0.3);
  color: var(--ivory);
}

.neu-card {
  background: linear-gradient(145deg, #fdfcfb, #f3f0ea);
  box-shadow: 8px 8px 24px rgba(17, 35, 56, 0.08), -8px -8px 24px rgba(255, 255, 255, 0.9);
}

.gold-text {
  background: linear-gradient(135deg, #dfbf78, #c99d42 50%, #e8d098);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c99d42;
}

.gold-border {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, #dfbf78, #b88628, #f0dfb0) border-box;
}

.navy-gradient {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #2a4c70);
  color: var(--ivory);
}

.hairline {
  background-image: linear-gradient(to right, transparent, rgba(201, 157, 66, 0.6), transparent);
  height: 1px;
  width: 100%;
}

.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------------- *
 * 4. Layout, Containers & Grids
 * ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-py {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.section-bg-secondary {
  background-color: rgba(244, 239, 230, 0.55);
}
.dark .section-bg-secondary {
  background-color: rgba(26, 38, 56, 0.45);
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* ========================================================================= *
 * SEMANTIC RESPONSIVE GRID SYSTEMS FOR ALL SECTIONS
 * ========================================================================= */

/* 1. Hero Grid (1.15fr 1fr on Desktop) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

/* 2. Editors Picks Grid & Editorial Components */
.editors-picks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .editors-picks-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

/* Lead Card */
.editors-lead-card {
  position: relative;
  background-color: var(--card);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.editors-lead-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-luxury);
}
.editors-lead-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .editors-lead-media {
    aspect-ratio: 16 / 9;
  }
}
.editors-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.editors-lead-card:hover .editors-lead-media img {
  transform: scale(1.04);
}
.editors-lead-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.editors-lead-body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.editors-lead-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--primary);
  line-height: 1.2;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}
.editors-lead-card:hover .editors-lead-title {
  color: var(--navy-soft-raw);
}
.editors-lead-excerpt {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.editors-lead-cta {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold);
}
.editors-lead-cta svg {
  transition: transform 0.3s ease;
}
.editors-lead-card:hover .editors-lead-cta svg {
  transform: translateX(4px);
}

/* Side List Items */
.editors-side-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}
.editors-list-item {
  background-color: var(--card);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex: 1;
}
.editors-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxury);
  border-color: rgba(201, 157, 66, 0.4);
}
.editors-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.editors-list-content {
  min-width: 0;
  flex: 1;
}
.editors-list-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  font-weight: 600;
}
.editors-list-title {
  margin-top: 0.4rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.3;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.editors-list-item:hover .editors-list-title {
  color: var(--navy-soft-raw);
}
.editors-list-action {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold);
}
.editors-list-action svg {
  transition: transform 0.3s ease;
}
.editors-list-item:hover .editors-list-action svg {
  transform: translateX(3px);
}
.editors-list-media {
  position: relative;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--muted);
}
@media (min-width: 640px) {
  .editors-list-media {
    width: 6.5rem;
    height: 6.5rem;
  }
}
.editors-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.editors-list-item:hover .editors-list-media img {
  transform: scale(1.06);
}

/* 3. Reading Recommendations Grid (1fr 1.35fr on Desktop) */
.reading-recs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .reading-recs-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 3rem;
  }
}

.reading-recs-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .reading-recs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* 4. Multi-Article Standard 3-Column Grids */
.articles-grid,
.guides-grid,
.collections-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .articles-grid,
  .guides-grid,
  .collections-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .articles-grid,
  .guides-grid,
  .collections-grid,
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* 5. Dedicated Departments 4-Column Row Grid */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .departments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .departments-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem;
  }
}

/* 6. Dedicated Popular Stories Grid */
.popular-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 1.5rem;
}
@media (min-width: 768px) {
  .popular-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 1.75rem;
  }
}

/* 7. About Brand Section Grid */
.about-brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

/* 8. FAQ Section Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

/* 9. Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* 10. Site Footer Grid */
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}
@media (min-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
  }
}

/* 11. Newsletter Grid */
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .newsletter-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }
}

/* 12. Featured Slider Grid */
.featured-slider-grid {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}
@media (min-width: 768px) {
  .featured-slider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 13. Instagram Grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }
}


.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.gap-x-2 { column-gap: 0.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-x-16 { column-gap: 4rem; }

.gap-y-2 { row-gap: 0.5rem; }
.gap-y-3 { row-gap: 0.75rem; }
.gap-y-4 { row-gap: 1rem; }
.gap-y-6 { row-gap: 1.5rem; }
.gap-y-8 { row-gap: 2rem; }
.gap-y-10 { row-gap: 2.5rem; }
.gap-y-12 { row-gap: 3rem; }
.gap-y-16 { row-gap: 4rem; }


/* Flex utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.self-start { align-self: flex-start; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* ------------------------------------------------------------------------- *
 * 5. UI Components & Tokens
 * ------------------------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 0 1.5rem;
  height: 2.75rem;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background-color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-luxury);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}
.btn-gold:hover {
  background-color: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  border-color: rgba(24, 59, 91, 0.25);
  color: var(--primary);
  background-color: transparent;
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-ghost {
  color: var(--primary);
  background-color: transparent;
}
.btn-ghost:hover {
  background-color: var(--secondary);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.badge-gold {
  background-color: rgba(201, 157, 66, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 157, 66, 0.3);
}

.badge-dark {
  background-color: rgba(17, 35, 56, 0.75);
  color: var(--ivory);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 157, 66, 0.3);
}

.badge-pill {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  background-color: transparent;
  transition: all 0.2s ease;
}
.badge-pill:hover, .badge-pill.is-active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem; /* 16px to prevent iOS auto zoom */
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 157, 66, 0.2);
}

/* ------------------------------------------------------------------------- *
 * 6. Header, Navigation & Drawer
 * ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1.25rem 0;
  transition: padding 0.4s ease, background 0.4s ease;
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.5rem;
  transition: box-shadow 0.4s ease;
}

.site-header.is-scrolled .nav-container {
  box-shadow: var(--shadow-luxury);
}

/* Logo Monogram */
.brand-monogram {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-monogram-inner {
  position: absolute;
  inset: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 157, 66, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-monogram-letter {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ivory);
  line-height: 1;
}

.brand-monogram-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 0.55rem;
  font-family: var(--font-display);
  color: var(--gold);
}

/* Primary Nav Menu */
.primary-nav-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .primary-nav-menu {
    display: flex;
  }
}

.primary-nav-menu > li > a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(28, 38, 51, 0.85);
  border-radius: var(--radius-full);
  transition: color 0.2s ease;
}

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

.primary-nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.25rem;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav-menu > li > a:hover::after,
.primary-nav-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

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

.primary-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 157, 66, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-luxury);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50;
}

.primary-nav-menu .menu-item-has-children:hover > .sub-menu,
.primary-nav-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.primary-nav-menu .sub-menu li a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.primary-nav-menu .sub-menu li a:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 35, 56, 0.7);
  backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 1.75rem;
  z-index: 51;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #dfbf78, #c99d42, #dfbf78);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ------------------------------------------------------------------------- *
 * 7. Article Card System
 * ------------------------------------------------------------------------- */
.article-card {
  display: block;
  text-decoration: none;
}

.article-card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--muted);
}

.article-card-media.aspect-4-5 { aspect-ratio: 4 / 5; }
.article-card-media.aspect-5-4 { aspect-ratio: 5 / 4; }
.article-card-media.aspect-4-3 { aspect-ratio: 4 / 3; }
.article-card-media.aspect-16-10 { aspect-ratio: 16 / 10; }

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-media img {
  transform: scale(1.05);
}

.article-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 35, 56, 0.6), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-card-overlay {
  opacity: 1;
}

.article-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.article-card-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(252, 251, 250, 0.95);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 2;
}

.article-card:hover .article-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

.article-card-content {
  padding-top: 1.25rem;
}

.article-card-title {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.2;
  transition: color 0.2s ease;
}

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

.article-card-excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.article-card-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* ------------------------------------------------------------------------- *
 * 8. Prose & Single Post Typography (Inter Font Family & Clean Layout)
 * ------------------------------------------------------------------------- */
.prose {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(28, 38, 51, 0.9);
}

.prose p {
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--primary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.prose img {
  border-radius: var(--radius-2xl);
  margin: 2.5rem 0;
  box-shadow: var(--shadow-luxury);
}

.prose hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgba(201, 157, 66, 0.5), transparent);
  margin: 3rem 0;
}

.prose ul, .prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  font-family: var(--font-sans);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.single-article,
.single-article * {
  font-family: var(--font-sans);
}


/* ------------------------------------------------------------------------- *
 * 9. WordPress Standard Elements & Widget Styling
 * ------------------------------------------------------------------------- */
.alignleft { float: left; margin: 0 1.5rem 1.5rem 0; }
.alignright { float: right; margin: 0 0 1.5rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption-text { font-size: 0.75rem; text-align: center; color: var(--muted-foreground); margin-top: 0.5rem; }

.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;
}

/* Numeric Pagination */
.pagination, .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

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

/* ------------------------------------------------------------------------- *
 * 10. Animations & Transitions
 * ------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Viewport Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ------------------------------------------------------------------------- *
 * 11. Comment System & Respond Form Polish
 * ------------------------------------------------------------------------- */
.comment-respond,
#respond {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 157, 66, 0.25);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  margin-top: 2.5rem;
}

.comment-reply-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.comment-notes,
.logged-in-as,
.must-log-in {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.logged-in-as a,
.comment-notes a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-form p {
  margin-bottom: 1.25rem;
}

.comment-form label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.comment-form textarea,
#comment {
  width: 100%;
  min-height: 130px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.comment-form textarea:focus,
#comment:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 157, 66, 0.2);
}

.form-submit {
  margin-top: 1.25rem;
  margin-bottom: 0 !important;
}

.form-submit input[type="submit"],
#submit,
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 0 1.75rem;
  height: 2.75rem;
  min-height: 44px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit input[type="submit"]:hover,
#submit:hover,
.submit:hover {
  background-color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-luxury);
}

/* Comment Item List */
.comment-list .comment-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.comment-author .fn {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
}

.comment-metadata {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

/* Footer Social Icons & Footer Grid */
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
    gap: 3rem;
  }
}

.footer-social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(252, 251, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-btn:hover {
  background-color: var(--gold) !important;
  color: var(--navy-deep) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px);
}



