/*
 * Theme Name: GeneratePress Child — Précieuse
 * Template: generatepress
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================================
   CSS VARIABLES
   ========================================= */

:root {
  --prec-primary:   #3D5240;
  --prec-secondary: #D6A961;
  --prec-dark:      #1C1814;
  --prec-light:     #F5EFE3;
  --prec-white:     #FDFAF5;
  --prec-gray:      #7A6E64;
  --prec-border:    #E0D5C5;
  --prec-serif:     'Cormorant Garamond', Georgia, serif;
  --prec-sans:      'Inter', system-ui, sans-serif;
}

/* =========================================
   GP RESET — BODY / TYPOGRAPHY
   ========================================= */

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

body {
  font-family: var(--prec-sans);
  font-size: 1rem;
  color: var(--prec-dark);
  background-color: var(--prec-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--prec-serif);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  margin-top: 0;
}

p {
  margin-top: 0;
}

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

ul, ol {
  margin: 0;
  padding: 0;
}

/* =========================================
   GP OVERRIDES — HIDE DEFAULT HEADER / NAV
   ========================================= */

.site-header {
  border-bottom: 1px solid var(--prec-border);
}

.site-title {
  display: none;
}

.main-navigation {
  display: none;
}

/* =========================================
   READING PROGRESS BAR
   ========================================= */

.read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--prec-secondary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* =========================================
   CUSTOM HEADER NAV
   ========================================= */

header.prec-header {
  position: sticky;
  top: 0;
  background: rgba(253, 250, 245, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--prec-border);
  z-index: 1000;
  padding: 18px 0;
}

.prec-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prec-logo {
  font-family: var(--prec-serif);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--prec-dark);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.prec-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.prec-nav-links a {
  font-family: var(--prec-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--prec-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.prec-nav-links a:hover {
  color: var(--prec-primary);
}

.prec-blog-btn {
  font-family: var(--prec-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  background: var(--prec-primary);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.prec-blog-btn:hover {
  background: #2a3a2c;
  color: #fff;
}

/* =========================================
   BLOG CATEGORY NAV
   ========================================= */

.blog-nav {
  background: var(--prec-light);
  border-bottom: 1px solid var(--prec-border);
  padding: 10px 0;
  text-align: center;
}

.blog-nav a {
  font-family: var(--prec-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prec-gray);
  text-decoration: none;
  margin: 0 16px;
  transition: color 0.2s;
  display: inline-block;
  padding: 4px 0;
}

.blog-nav a:hover,
.blog-nav a.active,
.blog-nav a[aria-current="page"] {
  color: var(--prec-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */

.prec-hero {
  background: var(--prec-dark);
  color: white;
  padding: 60px 24px 52px;
  text-align: center;
}

.prec-hero-kicker {
  font-family: var(--prec-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 169, 97, 0.75);
  margin-bottom: 16px;
  display: block;
}

.prec-hero h1 {
  font-family: var(--prec-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-style: italic;
  font-weight: 300;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
}

.prec-hero-sub {
  font-family: var(--prec-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   MARQUEE BAND
   ========================================= */

.blog-marquee {
  background: #100d08;
  padding: 12px 0;
  overflow: hidden;
}

.blog-marquee-track {
  display: flex;
  width: max-content;
  animation: blog-marquee 40s linear infinite;
}

.blog-marquee-item {
  font-family: var(--prec-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.38);
  white-space: nowrap;
}

.blog-marquee-sep {
  color: rgba(214, 169, 97, 0.6);
  margin: 0 18px;
}

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

/* =========================================
   SECTION KICKER
   ========================================= */

.blog-kicker {
  font-family: var(--prec-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prec-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-kicker::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--prec-secondary);
  flex-shrink: 0;
  display: inline-block;
}

/* =========================================
   FEATURED ARTICLE
   ========================================= */

.prec-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--prec-border);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.feat-img {
  overflow: hidden;
  min-height: 380px;
}

.feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feat-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--prec-white);
}

.feat-cat {
  font-family: var(--prec-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prec-primary);
  margin-bottom: 12px;
  display: block;
}

.feat-content h2 {
  font-family: var(--prec-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  color: var(--prec-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.feat-content h2 a {
  color: inherit;
  text-decoration: none;
}

.feat-content h2 a:hover {
  color: var(--prec-primary);
}

.feat-excerpt {
  color: var(--prec-gray);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.feat-link {
  font-family: var(--prec-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prec-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 82, 64, 0.3);
  padding-bottom: 2px;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.feat-link:hover {
  color: var(--prec-primary);
  border-color: var(--prec-primary);
}

/* =========================================
   PREC SECTION WRAPPER
   ========================================= */

.prec-section {
  max-width: 1140px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

/* =========================================
   SECTION TITLE
   ========================================= */

.prec-section-title {
  font-family: var(--prec-serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--prec-dark);
  padding-left: 16px;
  border-left: 3px solid var(--prec-secondary);
  margin-bottom: 28px;
  line-height: 1.2;
}

/* =========================================
   ARTICLE GRID
   ========================================= */

.prec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.art-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.art-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--prec-border);
  display: block;
}

.card-cat {
  font-family: var(--prec-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prec-primary);
  margin-top: 12px;
  display: block;
}

.art-card h3 {
  font-family: var(--prec-serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--prec-dark);
  margin: 6px 0 0;
  line-height: 1.3;
}

.art-card:hover h3 {
  color: var(--prec-primary);
}

.card-date {
  font-family: var(--prec-sans);
  font-size: 0.72rem;
  color: var(--prec-gray);
  margin-top: 6px;
  display: block;
}

/* =========================================
   SINGLE ARTICLE
   ========================================= */

.blog-breadcrumb {
  font-family: var(--prec-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prec-gray);
  padding: 20px 24px 0;
  max-width: 1140px;
  margin: 0 auto;
}

.blog-breadcrumb a {
  color: var(--prec-primary);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb span {
  margin: 0 6px;
  color: var(--prec-border);
}

.single-header {
  max-width: 900px;
  margin: 36px auto 32px;
  padding: 0 24px;
  text-align: center;
}

.cat-badge {
  display: inline-block;
  font-family: var(--prec-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prec-primary);
  border: 1px solid var(--prec-primary);
  padding: 3px 12px;
  margin-bottom: 18px;
  text-decoration: none;
}

h1.single-title {
  font-family: var(--prec-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--prec-dark);
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.byline {
  font-family: var(--prec-sans);
  font-size: 0.78rem;
  color: var(--prec-gray);
}

.byline strong {
  color: var(--prec-dark);
  font-weight: 600;
}

.single-thumbnail {
  max-width: 1100px;
  margin: 0 auto 44px;
  padding: 0 24px;
}

.single-thumbnail img {
  width: 100%;
  display: block;
  border: 1px solid var(--prec-border);
}

.blog-entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.blog-entry-content h2 {
  font-family: var(--prec-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--prec-dark);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--prec-border);
}

.blog-entry-content p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
  color: #3a3228;
}

.blog-entry-content strong {
  font-weight: 600;
}

.blog-entry-content a {
  color: var(--prec-primary);
  text-decoration: underline;
}

.blog-entry-content a:hover {
  color: #2a3a2c;
}

.blog-entry-content blockquote {
  border-left: 3px solid var(--prec-secondary);
  margin: 28px 0;
  padding: 12px 20px;
  color: var(--prec-gray);
  font-style: italic;
  font-family: var(--prec-serif);
  font-size: 1.1rem;
}

.blog-entry-content blockquote p {
  margin: 0;
  font-size: inherit;
  line-height: 1.6;
  color: inherit;
}

.blog-entry-content ul,
.blog-entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: #3a3228;
  font-size: 1rem;
  line-height: 1.85;
}

.blog-entry-content li {
  margin-bottom: 6px;
}

/* =========================================
   TAGS ROW
   ========================================= */

.blog-tags-row {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--prec-border);
}

.tag-pill {
  font-family: var(--prec-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--prec-light);
  border: 1px solid var(--prec-border);
  color: var(--prec-gray);
  padding: 3px 10px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.tag-pill:hover {
  color: var(--prec-primary);
  border-color: var(--prec-primary);
}

.blog-cta-link {
  font-family: var(--prec-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prec-primary);
  border-bottom: 1px solid rgba(61, 82, 64, 0.3);
  margin-left: auto;
  text-decoration: none;
  padding-bottom: 2px;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.blog-cta-link:hover {
  border-color: var(--prec-primary);
}

/* =========================================
   RELATED SECTION
   ========================================= */

.blog-related {
  background: var(--prec-light);
  padding: 56px 0;
}

.blog-related-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   ARCHIVE HEADER
   ========================================= */

.archive-header {
  background: var(--prec-dark);
  color: white;
  padding: 52px 24px 44px;
  text-align: center;
}

.archive-header h1 {
  font-family: var(--prec-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  margin-bottom: 10px;
}

.archive-header p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-top: 10px;
  margin-bottom: 0;
}

/* =========================================
   PAGINATION
   ========================================= */

.nav-links {
  text-align: center;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  font-family: var(--prec-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--prec-border);
  color: var(--prec-gray);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.page-numbers.current {
  background: var(--prec-primary);
  border-color: var(--prec-primary);
  color: white;
}

a.page-numbers:hover {
  border-color: var(--prec-primary);
  color: var(--prec-primary);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  background: var(--prec-dark);
  padding: 60px 0 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--prec-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin: 0;
}

.footer-links h4 {
  font-family: var(--prec-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  margin-top: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.copyright p {
  margin: 0;
}

/* =========================================
   RESPONSIVE — 768px
   ========================================= */

@media (max-width: 768px) {
  .prec-nav-links {
    display: none;
  }

  .prec-featured {
    grid-template-columns: 1fr;
  }

  .feat-img {
    min-height: 240px;
  }

  .feat-content {
    padding: 28px 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-tags-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-cta-link {
    margin-left: 0;
  }
}
