/*
Theme Name: Filazero Blog v2
Theme URI: https://filazero.net
Author: Filazero
Author URI: https://filazero.net
Description: Tema editorial do blog da Filazero. Apple-chassis, Filazero Violet, superficie parchment. Segue o sistema de design de filazero.net integralmente.
Version: 2.0.0
Requires at least: 6.4
License: Private
Text Domain: filazero-blog
*/

/* ============================================================
   DESIGN TOKENS — espelham DESIGN.md / custom.css
   ============================================================ */

:root {
  /* Violeta */
  --fz-violet:       #8C27FF;
  --fz-violet-focus: #A551FF;
  --fz-violet-lobby: #C49AFF;
  --fz-violet-deep:  #6D1EC7;
  --fz-violet-tint:  #F3EBFF;

  /* Teal */
  --fz-teal: #33E0A8;

  /* Superfícies claras */
  --fz-canvas:    #FFFFFF;
  --fz-parchment: #F7F4FB;
  --fz-pearl:     #FBFAFD;
  --fz-chip:      #DDD5E8;

  /* Hairlines */
  --fz-hairline:    #E8E3EE;
  --fz-hairline-s:  #D4CCDD;
  --fz-divider:     #F0EBF5;

  /* Tinta */
  --fz-ink:    #1A1521;
  --fz-ink-80: #2E2735;
  --fz-ink-48: #7A7280;
  --fz-ink-32: #ACA4B4;

  /* Superfícies escuras */
  --fz-void:   #0A0610;
  --fz-tile:   #1A1521;
  --fz-tile-2: #1D1825;
  --fz-tile-3: #161220;

  /* On-dark */
  --fz-light:       #FFFFFF;
  --fz-light-muted: #CFC7D8;

  /* Status */
  --fz-success:      #2E7D5B;
  --fz-success-tint: #E6F2EC;

  /* Tipografia */
  --fz-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fz-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Elevação — Single Shadow Rule */
  --shadow-product:      3px 5px 30px 0 rgba(0, 0, 0, 0.22);
  --shadow-focus:        0 0 0 3px rgba(140, 39, 255, 0.28);
  --shadow-focus-dark:   0 0 0 3px rgba(196, 154, 255, 0.55);
  --shadow-card-hover:   0 20px 40px -24px rgba(140, 39, 255, 0.20);

  /* Raios */
  --r-xs:   5px;
  --r-sm:   8px;
  --r-md:   11px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 9999px;

  /* Espaçamentos */
  --sp-xxs: 4px;
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  17px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-xxl: 48px;
  --sp-section: 80px;

  /* Layout */
  --max-w:      1200px;
  --max-w-blog: 720px;

  /* Animações */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   160ms;
  --dur-base:   260ms;
  --press:      0.97;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

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

html, body { margin: 0; padding: 0; }

html { font-feature-settings: "ss03"; } /* Inter rounded-a, como SF Pro */

body {
  font-family: var(--fz-sans);
  font-size: 17px;              /* The 17 Body Rule */
  line-height: 1.47;
  letter-spacing: -0.022em;
  background: var(--fz-parchment);
  color: var(--fz-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fundo branco em posts e páginas individuais */
body.single,
body.page { background: var(--fz-canvas); }

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

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }

::selection { background: var(--fz-violet); color: var(--fz-canvas); }

/* Headings — Inter em todos os pesos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fz-sans);
  color: var(--fz-ink);
  line-height: 1.1;
  margin: 0;
}

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

/* Italic Violet Emphasis Rule */
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--fz-violet);
  font-weight: 500;
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto; height: auto;
  clip: auto;
  white-space: normal;
  overflow: visible;
  background: var(--fz-violet);
  color: var(--fz-canvas);
  padding: 14px 22px;
  border-radius: var(--r-sm);
  z-index: 100000;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.fz-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}

.fz-wrap--blog {
  max-width: var(--max-w-blog);
}

/* ============================================================
   BOTÕES — Pill shape, min-height 44px
   ============================================================ */

.fz-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--fz-sans);
  font-size: 17px;
  letter-spacing: -0.022em;
  font-weight: 400;
  border: 0;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur-base),
    color var(--dur-base),
    box-shadow var(--dur-fast);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  min-height: 44px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.fz-btn:active { transform: scale(var(--press)); }

/* Primary */
.fz-btn--primary {
  background: var(--fz-violet);
  color: var(--fz-canvas);
}
.fz-btn--primary:hover { background: var(--fz-violet-deep); }
.fz-btn--primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Ghost */
.fz-btn--ghost {
  background: transparent;
  color: var(--fz-violet);
  box-shadow: inset 0 0 0 1px var(--fz-violet);
  padding: 11px 21px; /* -1px para o ring caber */
}
.fz-btn--ghost:hover {
  background: var(--fz-violet-tint);
}
.fz-btn--ghost:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--fz-violet), var(--shadow-focus);
}

/* Ghost on dark */
.fz-btn--ghost-dark {
  background: transparent;
  color: var(--fz-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  padding: 11px 21px;
}
.fz-btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.06); }

/* Sizes */
.fz-btn--sm {
  font-size: 14px;
  padding: 9px 18px;
  min-height: 36px;
}

/* ============================================================
   EYEBROW — label de seção
   ============================================================ */

.fz-eyebrow {
  font-family: var(--fz-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fz-violet);
  display: inline-block;
}

/* On dark */
.fz-eyebrow--dark { color: var(--fz-violet-lobby); }

/* ============================================================
   CHIP
   ============================================================ */

.fz-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fz-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--fz-violet-tint);
  color: var(--fz-violet-deep);
}

/* ============================================================
   HEADER — Tinted Void, 52px, sticky
   Espelha .gn do site principal
   ============================================================ */

.fz-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--fz-void);
  color: var(--fz-light);
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fz-header__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  height: 100%;
  padding-inline: var(--sp-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

/* Brand / wordmark */
.fz-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--fz-light);
  border-radius: var(--r-sm);
  padding: 4px 4px 4px 0;
  flex-shrink: 0;
  text-decoration: none;
}
.fz-brand:focus-visible { outline: none; box-shadow: var(--shadow-focus-dark); }

.fz-brand__logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--fz-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.fz-brand__word {
  font-family: var(--fz-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.014em;
}

.fz-brand__sep {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.28);
  margin: 0 2px;
}

.fz-brand__section {
  font-size: 13px;
  color: var(--fz-light-muted);
  font-weight: 400;
}

/* Nav links */
.fz-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex: 1;
}

.fz-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.fz-nav__link {
  font-size: 14px;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 2px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color var(--dur-fast);
  position: relative;
  white-space: nowrap;
}
.fz-nav__link:hover,
.fz-nav__link[aria-current="page"] { color: var(--fz-light); }
.fz-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--fz-violet-lobby);
}
.fz-nav__link:focus-visible { outline: none; box-shadow: var(--shadow-focus-dark); }

/* Header CTA */
.fz-header__cta {
  margin-left: auto;
  background: var(--fz-violet);
  color: var(--fz-light);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast);
}
.fz-header__cta:hover { background: var(--fz-violet-deep); }
.fz-header__cta:active { transform: scale(var(--press)); }
.fz-header__cta:focus-visible { outline: none; box-shadow: var(--shadow-focus-dark); }

/* Voltar ao site principal */
.fz-header__back {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  transition: color var(--dur-fast);
}
.fz-header__back:hover { color: rgba(255, 255, 255, 0.82); }

/* Burger mobile */
.fz-burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--fz-light);
  padding: var(--sp-xs);
  border-radius: var(--r-sm);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.fz-burger:focus-visible { outline: none; box-shadow: var(--shadow-focus-dark); }

.fz-drawer {
  position: fixed;
  inset: 52px 0 0 0;
  background: var(--fz-void);
  color: var(--fz-light);
  z-index: 55;
  padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-base),
    transform var(--dur-base) var(--ease-out);
}
.fz-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fz-drawer__group {
  padding: var(--sp-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fz-drawer__group:last-child { border-bottom: 0; }

.fz-drawer__head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fz-violet-lobby);
  margin: 0 0 var(--sp-sm);
}
.fz-drawer__group a {
  display: block;
  padding: 10px 0;
  font-size: 17px;
  color: var(--fz-light);
}

.fz-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

/* ============================================================
   HERO DO BLOG — superfície parchment
   ============================================================ */

.fz-blog-hero {
  padding: var(--sp-section) 0 48px;
  background: var(--fz-parchment);
  border-bottom: 1px solid var(--fz-hairline);
}

.fz-blog-hero__eyebrow { margin-bottom: var(--sp-sm); }

.fz-blog-hero__title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--fz-ink);
  margin: 0 0 var(--sp-md);
  max-width: 640px;
  text-wrap: balance;
}

.fz-blog-hero__lead {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.013em;
  color: var(--fz-ink-80);
  max-width: 52ch;
  margin: 0;
}

/* ============================================================
   FILTROS DE CATEGORIA
   ============================================================ */

.fz-filters {
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--fz-hairline);
  background: var(--fz-parchment);
}

.fz-filters__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.fz-filter {
  font-family: var(--fz-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--fz-hairline);
  background: transparent;
  color: var(--fz-ink-48);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
  min-height: 36px;
}
.fz-filter:hover {
  background: var(--fz-canvas);
  border-color: var(--fz-hairline-s);
  color: var(--fz-ink);
}
.fz-filter.is-active,
.fz-filter[aria-current="true"] {
  background: var(--fz-violet);
  border-color: var(--fz-violet);
  color: var(--fz-canvas);
}
.fz-filter:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ============================================================
   GRID DE POSTS
   ============================================================ */

.fz-posts {
  padding: var(--sp-xxl) 0 var(--sp-section);
  background: var(--fz-parchment);
}

.fz-posts__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-xxl);
}

.fz-posts__count {
  font-family: var(--fz-mono);
  font-size: 12px;
  color: var(--fz-ink-32);
  letter-spacing: 0;
}

/* Grid 3 colunas padrão; primeira coluna (featured) span 2 */
.fz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xxl) var(--sp-xl);
}

.fz-grid--featured {
  grid-template-columns: repeat(2, 1fr);
}

.fz-grid--featured .fz-card:first-child {
  grid-column: span 2;
}

/* ============================================================
   CARD DE POST — flat sobre parchment, estilo Qmatic/editorial
   ============================================================ */

.fz-card {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: opacity var(--dur-base) var(--ease);
}

/* Link wrapper invisível — acessibilidade */
.fz-card__link-full {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-lg);
}
.fz-card__link-full:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Thumbnail container */
.fz-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-md);
  background: var(--fz-hairline);
}

.fz-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* clip-overflow do pai */
  transition: transform 400ms var(--ease);
}

.fz-card:hover .fz-card__thumb img { transform: scale(1.04); }

/* Featured card: thumb mais alto */
.fz-card--featured .fz-card__thumb {
  aspect-ratio: 16 / 8;
}

/* Badge de data — pílula flutuante Qmatic-style */
.fz-card__date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(247, 244, 251, 0.90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-family: var(--fz-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fz-ink);
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}

/* Sem imagem: placeholder parchment escuro */
.fz-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fz-divider);
}

.fz-card__thumb--empty::after {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fz-hairline-s);
}

/* Corpo do card */
.fz-card__body {
  padding: 0; /* flat, sem caixa */
}

/* Categoria: uppercase plain, sem pílula */
.fz-card__category {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fz-violet);
  margin-bottom: var(--sp-xxs);
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.fz-card__category:hover { color: var(--fz-violet-deep); }

/* Título do card */
.fz-card__title {
  font-size: clamp(17px, 1.2vw + 10px, 21px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.020em;
  color: var(--fz-ink);
  margin: 0 0 var(--sp-xs);
  text-wrap: balance;
}

.fz-card--featured .fz-card__title {
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.025em;
}

.fz-card__title a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.fz-card:hover .fz-card__title a { color: var(--fz-violet-deep); }

/* Excerpt — apenas no card featured */
.fz-card__excerpt {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.013em;
  color: var(--fz-ink-48);
  margin: 0 0 var(--sp-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fz-card:not(.fz-card--featured) .fz-card__excerpt { display: none; }

/* Meta: leitura */
.fz-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--fz-mono);
  font-size: 11px;
  color: var(--fz-ink-32);
  letter-spacing: 0.02em;
  margin-top: var(--sp-xs);
}

.fz-card__meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--fz-ink-32);
}

/* ============================================================
   POST INDIVIDUAL — cabeçalho
   ============================================================ */

.fz-post-header {
  padding: var(--sp-section) 0 var(--sp-xxl);
  background: var(--fz-canvas);
  border-bottom: 1px solid var(--fz-hairline);
}

/* Breadcrumb / categoria */
.fz-post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
}

.fz-post-meta__cat {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fz-violet);
  text-decoration: none;
}
.fz-post-meta__cat:hover { color: var(--fz-violet-deep); }

.fz-post-meta__sep {
  font-size: 12px;
  color: var(--fz-ink-32);
}

.fz-post-meta__read {
  font-family: var(--fz-mono);
  font-size: 12px;
  color: var(--fz-ink-32);
}

/* Título do post */
.fz-post-header__title {
  font-size: clamp(32px, 1.2rem + 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--fz-ink);
  max-width: 20ch;
  text-wrap: balance;
  margin: 0 0 var(--sp-md);
}

/* Resumo / subtítulo */
.fz-post-header__lead {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.013em;
  color: var(--fz-ink-80);
  max-width: 56ch;
  margin: 0 0 var(--sp-lg);
}

/* Autor + data */
.fz-post-byline {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--fz-hairline);
}

.fz-post-byline__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--fz-violet-tint);
}
.fz-post-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }

.fz-post-byline__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.013em;
  color: var(--fz-ink);
}

.fz-post-byline__date {
  font-family: var(--fz-mono);
  font-size: 12px;
  color: var(--fz-ink-48);
}

.fz-post-byline__sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--fz-ink-32);
}

/* ============================================================
   IMAGEM DESTACADA DO POST
   ============================================================ */

.fz-post-cover {
  margin: var(--sp-xxl) 0;
}

.fz-post-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-xl);
  filter: drop-shadow(var(--shadow-product)); /* Single Shadow Rule: apenas imagery */
}

/* ============================================================
   CONTEÚDO DO POST — .entry-content
   Segue escala tipográfica do DESIGN.md
   ============================================================ */

.fz-post-content {
  padding: var(--sp-xxl) 0 var(--sp-section);
  background: var(--fz-canvas);
}

.entry-content {
  font-size: 17px;          /* The 17 Body Rule */
  line-height: 1.65;
  letter-spacing: -0.013em;
  color: var(--fz-ink-80);
  max-width: var(--fz-measure, 68ch);
}

.entry-content h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--fz-ink);
  margin: 2.2em 0 0.6em;
}

.entry-content h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--fz-ink);
  margin: 1.8em 0 0.5em;
}

.entry-content h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.013em;
  color: var(--fz-ink);
  margin: 1.4em 0 0.4em;
}

/* Italic Violet Emphasis — máximo 1x por seção */
.entry-content h2 em,
.entry-content h3 em {
  font-style: italic;
  color: var(--fz-violet);
  font-weight: 500;
}

.entry-content p { margin-bottom: 1.3em; }

.entry-content a {
  color: var(--fz-violet);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}
.entry-content a:hover { color: var(--fz-violet-deep); }

.entry-content strong {
  font-weight: 700;
  color: var(--fz-ink);
}

/* Listas — sem border-left (proibido) */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}
.entry-content li { margin: 0.4em 0; }
.entry-content li::marker {
  color: var(--fz-violet);
  font-weight: 600;
}

/* Blockquote — fundo tintado, sem side-stripe (proibido border-left ≥2px) */
.entry-content blockquote {
  background: var(--fz-violet-tint);
  border: 1px solid var(--fz-hairline); /* borda completa, não side-stripe */
  border-radius: var(--r-xl);
  margin: 2em 0;
  padding: 1.4em 1.8em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fz-ink-80);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content hr {
  border: none;
  height: 1px;
  background: var(--fz-hairline);
  margin: 3em 0;
}

/* Code — Mono Telemetry Rule: só para dado */
.entry-content code,
:not(pre) > code {
  font-family: var(--fz-mono);
  background: var(--fz-canvas);
  border: 1px solid var(--fz-hairline);
  border-radius: var(--r-xs);
  padding: 0.1em 0.4em;
  font-size: 0.87em;
  color: var(--fz-ink);
}

.entry-content pre {
  background: var(--fz-canvas);
  border: 1px solid var(--fz-hairline);
  border-radius: var(--r-md);
  padding: 1.2em 1.4em;
  overflow-x: auto;
  margin: 2em 0;
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.entry-content figure { margin: 2.5em 0; }
.entry-content figure img { border-radius: var(--r-lg); }
.entry-content figcaption {
  font-family: var(--fz-sans);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.013em;
  color: var(--fz-ink-48);
  text-align: center;
  margin-top: var(--sp-xs);
}

/* Tabela */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.entry-content thead th {
  background: var(--fz-violet);
  color: var(--fz-canvas);
  font-weight: 600;
  text-align: left;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--fz-hairline);
  padding: 0.7em 1em;
  vertical-align: top;
}
.entry-content tbody tr:nth-child(even) { background: var(--fz-parchment); }

/* ============================================================
   TAGS DO POST
   ============================================================ */

.fz-post-tags {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--fz-hairline);
  margin-top: var(--sp-xxl);
}

.fz-post-tags__label {
  font-family: var(--fz-mono);
  font-size: 11px;
  color: var(--fz-ink-32);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: var(--sp-xxs);
}

.fz-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--fz-ink-48);
  background: var(--fz-parchment);
  border: 1px solid var(--fz-hairline);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  text-decoration: none;
  transition: all var(--dur-fast);
}
.fz-tag:hover {
  background: var(--fz-violet-tint);
  border-color: transparent;
  color: var(--fz-violet-deep);
}

/* ============================================================
   BIO DO AUTOR
   ============================================================ */

.fz-author-bio {
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
  background: var(--fz-parchment);
  border: 1px solid var(--fz-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  margin-top: var(--sp-xxl);
}

.fz-author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--fz-violet-tint);
}
.fz-author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }

.fz-author-bio__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--fz-ink);
  margin: 0 0 2px;
}

.fz-author-bio__role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fz-violet);
  margin: 0 0 var(--sp-sm);
}

.fz-author-bio__desc {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.013em;
  color: var(--fz-ink-80);
  margin: 0;
}

/* ============================================================
   POSTS RELACIONADOS
   ============================================================ */

.fz-related {
  padding: var(--sp-xxl) 0 var(--sp-section);
  background: var(--fz-parchment);
  border-top: 1px solid var(--fz-hairline);
}

.fz-related__head {
  margin-bottom: var(--sp-xxl);
}

.fz-related__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fz-ink);
}

.fz-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xxl) var(--sp-xl);
}

/* ============================================================
   PAGINAÇÃO
   ============================================================ */

.fz-pagination {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding-top: var(--sp-xxl);
  border-top: 1px solid var(--fz-hairline);
}

.fz-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  font-family: var(--fz-mono);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--fz-hairline);
  color: var(--fz-ink-48);
  text-decoration: none;
  transition: all var(--dur-fast);
}
.fz-page-link:hover {
  background: var(--fz-canvas);
  border-color: var(--fz-hairline-s);
  color: var(--fz-ink);
}
.fz-page-link.is-current,
.fz-page-link[aria-current="page"] {
  background: var(--fz-violet);
  border-color: var(--fz-violet);
  color: var(--fz-canvas);
}
.fz-page-link:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.fz-page-link--text {
  width: auto;
  padding: 0 var(--sp-sm);
  font-family: var(--fz-sans);
  font-size: 14px;
}

/* ============================================================
   NEWSLETTER CTA — tile escuro
   ============================================================ */

.fz-newsletter {
  background: var(--fz-tile);
  padding: var(--sp-section) 0;
}

.fz-newsletter__inner {
  max-width: 560px;
}

.fz-newsletter__eyebrow { margin-bottom: var(--sp-sm); }

.fz-newsletter__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.1;
  color: var(--fz-light);
  margin: 0 0 var(--sp-sm);
  text-wrap: balance;
}

.fz-newsletter__lead {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.013em;
  color: var(--fz-light-muted);
  margin: 0 0 var(--sp-xl);
}

/* Formulário inline */
.fz-newsletter__form {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.fz-newsletter__input {
  flex: 1;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--fz-sans);
  font-size: 16px; /* 16 mínimo para evitar zoom iOS */
  color: var(--fz-light);
  outline: none;
  transition: border-color var(--dur-fast);
}
.fz-newsletter__input::placeholder { color: var(--fz-light-muted); opacity: 0.6; }
.fz-newsletter__input:focus {
  border-color: var(--fz-violet-focus);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-focus-dark);
}

.fz-newsletter__note {
  font-size: 14px;
  letter-spacing: -0.013em;
  color: var(--fz-ink-32);
  margin-top: var(--sp-sm);
}

.fz-newsletter__feedback {
  font-size: 14px;
  letter-spacing: -0.013em;
  margin-top: var(--sp-xs);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.fz-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: var(--sp-xxl) 48px;
  align-items: start;
}

.fz-sidebar {
  position: sticky;
  top: 68px; /* 52px header + padding */
}

.fz-widget {
  background: var(--fz-canvas);
  border: 1px solid var(--fz-hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.fz-widget__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fz-ink-48);
  margin: 0 0 var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--fz-hairline);
}

/* Widget: post recente */
.fz-widget-post {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--fz-divider);
  text-decoration: none;
  transition: opacity var(--dur-fast);
}
.fz-widget-post:last-child { border-bottom: 0; padding-bottom: 0; }
.fz-widget-post:hover { opacity: 0.72; }

.fz-widget-post__thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--fz-hairline);
}
.fz-widget-post__thumb img { width: 100%; height: 100%; object-fit: cover; }

.fz-widget-post__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.013em;
  color: var(--fz-ink);
  margin: 0 0 3px;
}

.fz-widget-post__date {
  font-family: var(--fz-mono);
  font-size: 11px;
  color: var(--fz-ink-32);
}

/* Widget CTA demo — tile escuro */
.fz-widget--cta {
  background: var(--fz-tile);
  border-color: rgba(255, 255, 255, 0.06);
  text-align: center;
}
.fz-widget--cta .fz-widget__title { color: var(--fz-violet-lobby); border-color: rgba(255,255,255,0.08); }

.fz-widget__cta-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--fz-light);
  margin: 0 0 var(--sp-xs);
}
.fz-widget__cta-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fz-light-muted);
  margin: 0 0 var(--sp-lg);
}

/* ============================================================
   FOOTER — Tinted Void
   ============================================================ */

.fz-footer {
  background: var(--fz-void);
  color: var(--fz-light-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--sp-section) 0 var(--sp-xl);
}

.fz-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-section) var(--sp-xl);
  margin-bottom: var(--sp-xxl);
}

.fz-footer__brand-word {
  font-family: var(--fz-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--fz-light);
  text-decoration: none;
}

.fz-footer__desc {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.013em;
  color: var(--fz-light-muted);
  margin: var(--sp-md) 0 var(--sp-xl);
}

.fz-footer__col-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fz-light);
  margin: 0 0 var(--sp-md);
}

.fz-footer__links { list-style: none; padding: 0; margin: 0; }
.fz-footer__link {
  display: block;
  font-size: 15px;
  letter-spacing: -0.013em;
  color: var(--fz-light-muted);
  padding: 5px 0;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.fz-footer__link:hover { color: var(--fz-light); }

.fz-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.fz-footer__copy {
  font-family: var(--fz-mono);
  font-size: 12px;
  color: var(--fz-ink-48);
  letter-spacing: 0;
}

.fz-footer__social {
  display: flex;
  gap: var(--sp-sm);
}

.fz-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fz-light-muted);
  text-decoration: none;
  transition: all var(--dur-fast);
}
.fz-footer__social-link:hover { opacity: 0.72; }
.fz-footer__social-link:focus-visible { outline: none; box-shadow: var(--shadow-focus-dark); }

/* ============================================================
   WORDPRESS CORE — alinhamentos, screen-reader, WP blocks
   ============================================================ */

.alignnone  { margin: 5px 20px 20px 0; }
.alignleft  { float: left; margin: 5px 20px 20px 0; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.aligncenter,
div.aligncenter { display: block; margin: 5px auto; }

.wp-caption {
  background: var(--fz-parchment);
  border: 1px solid var(--fz-hairline);
  border-radius: var(--r-lg);
  max-width: 100%;
  padding: 6px 6px 10px;
  text-align: center;
}
.wp-caption img { border: 0; max-width: 100%; border-radius: var(--r-sm); }
.wp-caption p.wp-caption-text {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.013em;
  color: var(--fz-ink-48);
  margin: 0;
  padding: 8px 6px 2px;
}

.wp-block-image img,
.wp-block-post-content img { border-radius: var(--r-lg); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1100px) {
  .fz-layout--sidebar {
    grid-template-columns: 1fr;
  }
  .fz-sidebar { position: static; }

  .fz-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xxl);
  }

  .fz-grid { grid-template-columns: repeat(2, 1fr); }

  .fz-grid--featured {
    grid-template-columns: 1fr;
  }
  .fz-grid--featured .fz-card:first-child { grid-column: auto; }
}

@media (max-width: 720px) {
  :root { --sp-section: 56px; }

  .fz-wrap { padding-inline: var(--sp-lg); }

  .fz-nav,
  .fz-header__back,
  .fz-header__cta { display: none; }

  .fz-burger { display: flex; }

  .fz-grid { grid-template-columns: 1fr; }
  .fz-related__grid { grid-template-columns: 1fr; }

  .fz-footer__grid { grid-template-columns: 1fr; }

  .fz-newsletter__form { flex-direction: column; }
  .fz-newsletter__input { min-width: unset; }

  .fz-author-bio { flex-direction: column; }

  .fz-footer__bottom { flex-direction: column; align-items: flex-start; }
}
