/* ── Base Typography & Layout ── */

body {
  font-family: var(--font-heading);
  color: var(--text-dark);
  background: var(--bg-light);
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* Body text */
p {
  font-size: var(--fs-lg);
  color: var(--text-dark-body);
  line-height: 1.8;
  font-weight: 300;
}

/* Labels — Montserrat uppercase */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text-green-muted);
  text-transform: uppercase;
}

.label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent-green);
}

.label--light {
  color: var(--text-green-muted);
}

/* Decorative line */
.line-gold {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--text {
  max-width: var(--max-width-text);
}

/* Section spacing */
.section {
  padding: 80px 24px;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section--alt {
  background: var(--bg-light-alt);
}

/* Fade-up animation targets */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-green);
  color: var(--text-light);
  padding: 8px 16px;
  z-index: 1000;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}

.skip-link:focus {
  top: 0;
}

/* Rich text content (blog/escrita body) */
.rich-text h2 {
  font-size: var(--fs-2xl);
  margin: 2em 0 0.5em;
}

.rich-text h3 {
  font-size: var(--fs-xl);
  margin: 1.5em 0 0.5em;
}

.rich-text p {
  margin-bottom: 1.2em;
}

.rich-text img {
  border-radius: var(--border-radius);
  margin: 2em 0;
}

.rich-text blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-dark-muted);
}

.rich-text ul, .rich-text ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.rich-text li {
  margin-bottom: 0.4em;
  list-style: disc;
}

.rich-text ol li {
  list-style: decimal;
}

.rich-text a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text code {
  background: var(--bg-light-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.rich-text pre {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 1.5em;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1.5em 0;
}

.rich-text pre code {
  background: none;
  padding: 0;
}
