/* =========================================================
   Fabi Carvalhal — Portfólio
   Design tokens extraídos do Figma (frames fabi-landing-page
   e artigo-leitura) + sistema de componentes.
   ========================================================= */

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

:root {
  /* Cores */
  --color-bg: #0f1524;
  --color-surface: #171e30;
  --color-surface-alt: #1e2638;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.2);
  --color-accent: #ffb31f;
  --color-accent-light: #ffd166;
  --color-accent-soft: rgba(255, 179, 31, 0.12);
  --color-footer-bg: #f5ba3d;
  --color-footer-text: #404040;
  --color-text: #ffffff;
  --color-text-muted: #94a3b8;
  --color-glow: rgba(255, 179, 31, 0.16);

  /* Tipografia */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaçamento */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-120: 120px;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  color-scheme: dark;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-24);
}
@media (min-width: 900px) {
  .container { padding-inline: var(--space-80); }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* -------------------- Tipografia utilitária -------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-16);
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
}
.body-muted {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------------------- Gatilho do painel (mini CMS) -------------------- */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-16);
}
.eyebrow-row .eyebrow { margin-bottom: 0; }
.panel-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  transition: border-color .15s ease, color .15s ease;
}
.panel-trigger:hover, .panel-trigger:focus-visible { border-color: var(--color-accent); color: var(--color-accent); }
.panel-trigger svg { width: 11px; height: 11px; }

body.no-scroll { overflow: hidden; }

/* -------------------- Botões -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 10px 24px -6px rgba(255, 179, 31, 0.35);
}
.btn-primary:hover { background: var(--color-accent-light); }
.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }

/* -------------------- Navbar -------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-16);
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-serif);
  font-size: 22px;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-32);
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.nav-link:hover { color: var(--color-text); }
.nav-link.is-active { color: var(--color-accent); font-weight: 700; }
.active-dot {
  width: 4px; height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  opacity: 0;
  transition: opacity .2s ease;
}
.nav-link.is-active .active-dot { opacity: 1; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

.nav-cta-group { display: flex; align-items: center; gap: var(--space-12); }
.nav-cta-group .lang-switcher { display: none; }
@media (min-width: 640px) { .nav-cta-group .lang-switcher { display: flex; } }

.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-flag-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  opacity: .5;
  filter: grayscale(60%);
}
.lang-flag-btn:hover { opacity: .85; }
.lang-flag-btn.is-active { opacity: 1; filter: none; border-color: var(--color-border-strong); background: rgba(255,255,255,.06); }

.mobile-lang-row { padding-top: var(--space-16); margin-top: var(--space-16); border-top: 1px solid var(--color-border); display: flex; justify-content: center; }
.mobile-lang-row .lang-flag-btn { width: 40px; height: 40px; font-size: 20px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24) var(--space-24);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-weight: 600; text-transform: uppercase; font-size: 13px; color: var(--color-text-muted); }
.mobile-menu a.is-active { color: var(--color-accent); }

/* -------------------- Hero -------------------- */
.hero {
  overflow: clip;
}
.hero .container {
  display: grid;
  gap: var(--space-48);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero .container {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-80);
  }
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: var(--space-24);
}
.hero-title .highlight { color: var(--color-accent-light); }
.hero-lede {
  font-size: 18px;
  max-width: 42ch;
  margin-bottom: var(--space-40);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
}
.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 589 / 715;
  background: radial-gradient(120% 120% at 30% 20%, #20283d 0%, #0f1524 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.socials-stamp {
  position: absolute;
  right: var(--space-24);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.socials-stamp a { color: var(--color-text); opacity: .85; }
.socials-stamp a:hover { opacity: 1; color: var(--color-accent-light); }

/* -------------------- Placeholder de imagem -------------------- */
.img-placeholder {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 10px, rgba(255,255,255,0.015) 10px 20px),
    linear-gradient(160deg, #1c2438 0%, #0f1524 100%);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-muted);
  text-align: center;
  font-size: 12px;
  padding: var(--space-16);
}
.img-placeholder svg { width: 28px; height: 28px; opacity: .6; }
.img-placeholder span { max-width: 22ch; }
/* Foto da hero já definitiva: sem borda tracejada de placeholder */
.hero-media .img-placeholder { border: none; }
/* Quando a foto real existir em assets/img/photos/, ela cobre o placeholder automaticamente */
.img-placeholder > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* -------------------- Seção padrão -------------------- */
.section { padding-block: var(--space-80); }
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-48);
}
@media (min-width: 900px) {
  .section-header.row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-header .section-title { max-width: 620px; }

/* -------------------- Trajetória / Timeline -------------------- */
.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-48);
  padding-inline: var(--space-8);
}
.timeline-connector {
  flex: 1 1 auto;
  height: 1px;
  margin-top: 8px;
  background: var(--color-border);
  min-width: var(--space-24);
}
.timeline-connector.is-dashed {
  background: none;
  border-top: 1px dashed var(--color-accent);
}
.timeline-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-muted);
  font-family: inherit;
}
.timeline-point:hover .timeline-dot { border-color: var(--color-text); }
.timeline-point:hover .timeline-year { color: var(--color-text); }
.timeline-point.is-recent:not([aria-current="true"]) .timeline-dot { border-color: var(--color-accent); }
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border-strong);
}
.timeline-point[aria-current="true"] .timeline-dot {
  width: 24px; height: 24px;
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 4px rgba(255, 179, 31, 0.12);
}
.timeline-point[aria-current="true"] .timeline-dot::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline-year { font-size: 14px; font-weight: 500; white-space: nowrap; }
.timeline-point[aria-current="true"] .timeline-year { color: var(--color-accent); font-weight: 700; font-size: 15px; }
/* Com 6 pontos a timeline fica apertada no mobile: em vez de espremer, ela rola na horizontal */
@media (max-width: 899px) {
  .timeline-track { overflow-x: auto; padding-bottom: var(--space-16); -webkit-overflow-scrolling: touch; }
  .timeline-point { min-width: 60px; }
  .timeline-connector { min-width: 32px; }
}

.experience-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  display: grid;
  gap: var(--space-40);
  align-content: center;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.25);
}
@media (min-width: 900px) {
  .experience-card { grid-template-columns: 1fr 1fr; gap: var(--space-80); align-items: center; }
}
.experience-role {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: var(--space-8);
}
.experience-company { color: var(--color-accent); font-weight: 600; font-size: 15px; }
.experience-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-12);
  display: block;
}
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.skill-tag {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.related-list {
  margin-top: var(--space-12);
  padding-left: 20px;
  list-style: disc;
}
.related-list li { color: var(--color-text-muted); font-size: 15px; line-height: 1.65; }
.related-list a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.related-list a:hover { color: var(--color-accent); }

/* -------------------- Cards de portfólio -------------------- */
.cards-carousel { position: relative; }
.cards-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--space-24);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-8);
  scrollbar-width: none;
}
.cards-track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .cards-track { grid-auto-columns: 45%; } }
/* A partir daqui os cards rolam na horizontal (ao invés de quebrar linha), então a
   seção comporta qualquer quantidade de artigos sem espremer nem estourar o grid. */
@media (min-width: 1000px) { .cards-track { grid-auto-columns: calc(25% - 18px); } }

.service-card {
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: clip;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.15);
  transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--color-border-strong); }
.card-image { aspect-ratio: 302 / 240; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); flex: 1; }
.card-info h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; }
.card-info p { color: var(--color-text-muted); font-size: 14px; line-height: 1.5; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 13px;
  padding-top: var(--space-8);
}
.card-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.service-card:hover .card-link svg { transform: translateX(3px); }

.carousel-nav {
  display: none;
}
@media (min-width: 1000px) {
  .carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 42%;
    width: 40px; height: 40px;
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: var(--color-text);
  }
  .carousel-nav:hover { background: var(--color-surface-alt); }
  .carousel-nav.prev { left: -20px; }
  .carousel-nav.next { right: -20px; }
}

/* -------------------- Contato -------------------- */
.contact-section { position: relative; overflow: clip; }
.contact-glow {
  position: absolute;
  right: -200px; bottom: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--color-glow) 0%, rgba(135,100,34,0.08) 40%, transparent 80%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  gap: var(--space-48);
  position: relative;
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 0.9fr; align-items: start; gap: var(--space-80); }
}
.contact-title { font-size: clamp(40px, 5vw, 72px); margin-bottom: var(--space-16); }
.contact-lede { font-size: 18px; max-width: 52ch; margin-bottom: var(--space-24); }
.direct-contacts { display: flex; flex-direction: column; gap: var(--space-24); }
.email-line { display: flex; align-items: center; gap: var(--space-12); }
.mail-icon-bg {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.email-line a { font-weight: 600; font-size: 18px; text-decoration: underline; text-underline-offset: 3px; color: var(--color-accent); }
.email-line a:hover { color: var(--color-accent); }
.socials-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-20); }
.socials-row .label { font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--color-text-muted); }
.socials-row .social-link { display: inline-flex; align-items: center; gap: var(--space-8); font-weight: 500; font-size: 14px; color: var(--color-text-muted); }
.socials-row .social-link:hover { color: var(--color-accent); }

.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40) var(--space-24);
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.25);
}
@media (min-width: 500px) { .contact-form-card { padding: var(--space-40); } }
.contact-form-card h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; margin-bottom: var(--space-8); }
.contact-form-card .form-sub { color: var(--color-text-muted); font-size: 14px; margin-bottom: var(--space-32); }
.form-field { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--space-20); }
.form-field label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.form-field input, .form-field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--color-text);
  width: 100%;
  resize: vertical;
}
.form-field textarea { min-height: 120px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--color-text-muted); }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 179, 31, 0.15);
}
.form-status { font-size: 14px; margin-top: var(--space-8); min-height: 20px; }
.form-status[data-state="success"] { color: #7CE0A8; }
.form-status[data-state="error"] { color: #ff8a8a; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  border-top: 1px solid rgba(64, 64, 64, 0.3);
  padding: var(--space-32) 0;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  font-size: 13px;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.legal-links { display: flex; gap: var(--space-24); }
.legal-links a:hover { text-decoration: underline; }

/* =========================================================
   Página de Artigo
   ========================================================= */
.article-header { padding-block: var(--space-48) var(--space-40); }
.category-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
}
.article-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: var(--space-32);
  max-width: 22ch;
}
.author-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-32);
}
.author-info { display: flex; align-items: center; gap: var(--space-16); }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 600; font-size: 16px; }
.author-meta { color: var(--color-text-muted); font-size: 14px; }
.share-actions { display: flex; align-items: center; gap: var(--space-16); }
.share-actions .label { color: var(--color-text-muted); font-weight: 600; font-size: 14px; }
.share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.share-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1280 / 500;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { padding-block: var(--space-40) var(--space-80); }
.reading-column {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}
.reading-column p {
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.65;
}
.reading-column .lede { font-size: 20px; }
.reading-column .lede strong { color: var(--color-text); font-weight: 700; }
.reading-column h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--color-text);
}
.reading-column h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 26px);
  color: var(--color-text);
}
.reading-column .content-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}
.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-8) 0 var(--space-8) var(--space-24);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--color-accent);
  line-height: 1.4;
  margin: 0;
}
.pull-quote p {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  margin: 0;
}
.reading-column ul, .reading-column ol {
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.65;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reading-column a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.inline-image-block figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-12); }
.inline-image-block .placeholder-img { border-radius: var(--radius-md); aspect-ratio: 720 / 360; overflow: hidden; }
.inline-image-block img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 720/360; object-fit: cover; }
.inline-image-block figcaption { font-style: italic; font-size: 14px; color: var(--color-text-muted); }

.author-bio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  align-items: center;
}
.author-bio-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-details { flex: 1; min-width: 240px; }
.author-bio-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}
.author-bio-name { font-weight: 700; font-size: 20px; }
.author-bio-role { color: var(--color-accent); font-size: 14px; }
.btn-follow {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none !important;
}
.btn-follow:hover { background: var(--color-accent-soft); }
.author-bio-text { color: var(--color-text-muted); font-size: 15px; line-height: 1.6; }

.content-notice {
  border: 1px dashed var(--color-border-strong);
  background: rgba(255, 179, 31, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-20);
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: var(--space-8);
}
.content-notice strong { color: var(--color-accent-light); }

/* =========================================================
   Modal de login (mini CMS)
   ========================================================= */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 36, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.login-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.login-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  box-shadow: 0 18px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(8px);
  transition: transform .2s ease;
}
.login-modal-overlay.is-open .login-modal-card { transform: translateY(0); }
.login-modal-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  background: transparent;
}
.login-modal-close:hover { color: var(--color-text); border-color: var(--color-border); }
.login-modal-header h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text);
  margin: 0 0 4px;
}
.login-modal-header p { color: var(--color-text-muted); font-size: 14px; margin: 0; }
.login-modal-error {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 0;
}
.login-modal-error.is-visible { display: block; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #0f1524;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
}
.btn-google:hover { background: #f2f2f2; }
.btn-google:disabled { opacity: .65; cursor: progress; }
.login-modal-footer-text { font-size: 12px; color: var(--color-text-muted); text-align: center; margin: 0; }
.login-modal-footer-text a { color: var(--color-accent); font-weight: 600; }
.login-modal-footer-text a:hover { text-decoration: underline; }
