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

:root {
  --cream:  #faf7f2;
  --white:  #ffffff;
  --dark:   #131210;
  --dark2:  #1d1b17;
  --brown:  #6b5b47;
  --sage:   #4a5e4a;
  --gold:   #c4a84f;
  --warm:   #f0ebe2;
  --text:   #1a1816;
  --muted:  #6b6860;
  --border: #e6ddd2;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }

/* ─── GRAIN ─── */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── PROGRESS ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  z-index: 9998; transition: width 0.1s linear;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.3rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 200; transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(250,247,242,0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-left { display: flex; align-items: center; gap: 2rem; }
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: var(--cream); text-decoration: none; letter-spacing: 0.04em; transition: color 0.3s;
}
nav.scrolled .nav-logo { color: var(--dark); }
.nav-link {
  font-size: 0.82rem; color: rgba(250,247,242,0.5);
  text-decoration: none; letter-spacing: 0.04em; transition: color 0.3s;
}
nav.scrolled .nav-link { color: var(--muted); }
.nav-link:hover { color: var(--cream); }
nav.scrolled .nav-link:hover { color: var(--text); }
.nav-cta {
  display: inline-block; padding: 0.6rem 1.4rem;
  background: var(--cream); color: var(--dark); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 3px; transition: all 0.2s;
}
nav.scrolled .nav-cta { background: var(--dark); color: var(--cream); }
.nav-cta:hover { transform: translateY(-1px); }

/* ─── ARTICLE HERO ─── */
.article-hero {
  min-height: 62vh; background: var(--dark); color: var(--cream);
  display: flex; align-items: flex-end;
  padding: 10rem 2.5rem 5rem; position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 8% 75%, rgba(74,94,74,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 12%, rgba(196,168,79,0.09) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(107,91,71,0.07) 0%, transparent 36%);
  pointer-events: none;
}
.article-hero-inner { max-width: 780px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.article-meta-top {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem;
}
.article-category {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); background: rgba(196,168,79,0.1); padding: 0.28rem 0.75rem; border-radius: 3px;
}
.article-num {
  font-family: 'Playfair Display', serif; font-size: 0.9rem;
  color: rgba(250,247,242,0.22); letter-spacing: 0.04em;
}
.article-title {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12;
  margin-bottom: 2rem; color: var(--cream);
}
.article-meta-bottom {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.78rem; color: rgba(250,247,242,0.3); letter-spacing: 0.04em;
}
.article-meta-bottom::before {
  content: ''; display: block; width: 24px; height: 1px; background: rgba(250,247,242,0.2);
}

/* ─── ARTICLE BODY ─── */
.article-wrapper {
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 94% 10%, rgba(196,168,79,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 2% 70%, rgba(74,94,74,0.03) 0%, transparent 40%);
  padding: 5rem 2.5rem 7rem;
}

.article-content {
  max-width: 700px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.95; color: #2a2724;
}

.article-content p { margin-bottom: 1.6rem; }

.article-content p:first-child::first-letter,
.article-content p.dropcap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem; line-height: 0.82; float: left;
  margin-right: 0.12em; margin-top: 0.08em;
  color: var(--gold); font-weight: 700;
}

.article-content strong { font-weight: 600; color: var(--text); }
.article-content em { font-style: italic; color: var(--brown); }

.article-content h2 {
  font-size: 1.5rem; line-height: 1.25;
  margin-top: 3.2rem; margin-bottom: 1.2rem;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.18rem; margin-top: 2.4rem; margin-bottom: 0.9rem; color: var(--dark);
}

.article-content blockquote {
  margin: 2.4rem 0; padding: 1.6rem 2rem;
  border-left: 3px solid var(--gold);
  background: var(--warm); border-radius: 0 6px 6px 0;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.1rem; line-height: 1.65; color: var(--brown);
}

.article-content blockquote::before { content: none; }

.article-content .highlight {
  background: linear-gradient(105deg, transparent 20%, rgba(196,168,79,0.15) 20%, rgba(196,168,79,0.15) 80%, transparent 80%);
  padding: 0 0.2em;
}

/* ─── ARTICLE SIGNATURE ─── */
.article-signature {
  max-width: 700px; margin: 3rem auto 0;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 1.5rem;
}
.signature-text {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.05rem; color: var(--muted);
}

/* ─── CTA BOX ─── */
.article-cta-box {
  background: var(--dark2); padding: 6rem 2.5rem;
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(ellipse at 15% 55%, rgba(74,94,74,0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 25%, rgba(196,168,79,0.07) 0%, transparent 42%);
}
.article-cta-inner { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-tag {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1.5rem;
}
.cta-title {
  font-size: clamp(1.7rem, 3.8vw, 2.4rem); color: var(--cream);
  line-height: 1.2; margin-bottom: 1.2rem;
}
.cta-sub {
  font-size: 0.96rem; color: rgba(250,247,242,0.42); line-height: 1.88;
  margin-bottom: 2.5rem; font-weight: 300;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1.05rem 2.4rem; background: var(--cream); color: var(--dark);
  text-decoration: none; font-size: 0.93rem; font-weight: 600;
  letter-spacing: 0.02em; border-radius: 3px;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}
.btn-cta:hover { background: var(--gold); box-shadow: 0 12px 36px rgba(196,168,79,0.4); transform: translateY(-2px); }
.cta-note { margin-top: 1.4rem; font-size: 0.78rem; color: rgba(250,247,242,0.22); }
.cta-note a { color: rgba(250,247,242,0.4); border-bottom: 1px solid rgba(250,247,242,0.15); text-decoration: none; }
.cta-note a:hover { color: var(--cream); }

/* ─── MORE ARTICLES ─── */
.more-articles {
  padding: 5.5rem 2.5rem 7rem; background: var(--cream);
}
.more-label {
  max-width: 960px; margin: 0 auto 3rem;
  font-size: 0.71rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 1.2rem;
}
.more-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.more-grid {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.more-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 2.2rem; border-radius: 8px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.more-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.more-card:hover { transform: translateY(-5px); box-shadow: 0 16px 42px rgba(0,0,0,0.08); border-color: rgba(196,168,79,0.2); }
.more-card:hover::before { transform: scaleX(1); }
.more-card-cat {
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); background: rgba(74,94,74,0.08); padding: 0.24rem 0.68rem;
  border-radius: 3px; display: inline-block; margin-bottom: 1.2rem; align-self: flex-start;
}
.more-card-title { font-size: 1rem; line-height: 1.32; margin-bottom: 1rem; flex: 1; }
.more-card-arrow { font-size: 0.82rem; color: var(--gold); margin-top: auto; transition: transform 0.25s; }
.more-card:hover .more-card-arrow { transform: translateX(4px); }

/* ─── FOOTER ─── */
footer {
  background: #0b0a08; padding: 3.5rem 2.5rem;
  text-align: center; color: rgba(250,247,242,0.27); font-size: 0.82rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: rgba(250,247,242,0.5); display: block; margin-bottom: 1.8rem; letter-spacing: 0.04em;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 2rem; margin-bottom: 2rem; }
.footer-links a { color: rgba(250,247,242,0.36); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(250,247,242,0.8); }
.footer-copy { color: rgba(250,247,242,0.16); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
}

@media (max-width: 768px) {
  .article-hero { min-height: 55vh; padding: 7rem 1.5rem 4rem; }
  .article-content { font-size: 1rem; line-height: 1.88; }
  .article-content h2 { font-size: 1.3rem; }
  .article-content blockquote { padding: 1.2rem 1.4rem; font-size: 1rem; }
  .article-cta-box { padding: 4.5rem 1.5rem; }
  .more-articles { padding: 4rem 1.5rem 5rem; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  nav { padding: 0.9rem 1.25rem; }
  .nav-link { display: none; }
  .nav-cta { padding: 0.55rem 1.1rem; font-size: 0.78rem; min-height: 40px; }
  .article-hero { padding: 6.5rem 1.25rem 3.5rem; }
  .article-wrapper { padding: 3.5rem 1.25rem 5rem; }
  .article-cta-box { padding: 4rem 1.25rem; }
  .more-articles { padding: 3.5rem 1.25rem 5rem; }
  .article-content p:first-child::first-letter,
  .article-content p.dropcap::first-letter { font-size: 2.6rem; }
  .article-title { font-size: clamp(1.55rem, 6vw, 2.2rem); }
  .article-meta-bottom { font-size: 0.72rem; gap: 0.8rem; }
  .cta-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .article-content p { margin-bottom: 1.4rem; }
  footer { padding: 2.8rem 1.25rem; }
  .footer-links { gap: 0.4rem 1.2rem; }
}

/* Touch target minimo 44px */
.nav-cta, .btn-cta { min-height: 44px; display: inline-flex; align-items: center; }
.more-card { min-height: 100px; }

.gsap-init { opacity: 0; }
