/* Coccinella News: páginas de artigo e lista de artigos */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #160307;
  --muted: #5d5357;
  --wine: #580011;
  --crimson: #a3122a;
  --rose: #e04b55;
  --soft: #fbf6f4;
  --grad: linear-gradient(135deg, #580011 0%, #a3122a 55%, #e04b55 100%);
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.art-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 20; height: 3px; background: rgba(163, 18, 42, 0.08); }
.art-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

.art-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(5vw, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(22, 3, 7, 0.06); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.art-logo img { width: 168px; }
.art-nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 700; }
.art-nav a { text-decoration: none; }
.art-nav a:hover { color: var(--crimson); }
.art-nav-cta { padding: 10px 18px; border-radius: 999px; color: #fff !important; background: var(--grad); box-shadow: 0 12px 24px -14px rgba(163, 18, 42, 0.8); }

.art-back { display: flex; width: max-content; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.art-back:hover { color: var(--crimson); }

/* Artigo */
.art-article { width: min(90%, 760px); margin: 0 auto; padding: 56px 0 40px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; color: var(--muted); font-size: 14px; font-weight: 700; }
.art-meta b, .art-card-meta b { padding: 5px 12px; border-radius: 999px; color: var(--crimson); background: rgba(163, 18, 42, 0.08); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.art-meta span + span::before { margin-right: 16px; color: rgba(22, 3, 7, 0.25); content: "•"; }
.art-hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; text-wrap: balance; }
.art-lead { margin: 0 0 28px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }
.art-author { display: flex; align-items: center; gap: 12px; margin: 0; }
.art-author img { width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--soft); object-fit: contain; }
.art-author span { display: grid; color: var(--muted); font-size: 13px; }
.art-author b { color: var(--ink); font-size: 15px; }

.art-cover { margin: 40px 0 46px; overflow: hidden; border-radius: 24px; background: var(--soft); aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -40px rgba(88, 0, 17, 0.5); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

.art-body { font-size: 18.5px; line-height: 1.8; }
.art-body p { margin: 0 0 24px; color: #2b2527; }
.art-body h2 { margin: 48px 0 16px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.art-body ul { margin: 0 0 26px; padding-left: 22px; color: #2b2527; }
.art-body li { margin-bottom: 10px; }
.art-body li::marker { color: var(--crimson); }
.art-body strong { color: var(--ink); }

.art-body blockquote {
  position: relative;
  margin: 40px 0;
  padding: 28px 32px;
  border-radius: 20px;
  color: #fff6f2;
  background: radial-gradient(ellipse at 90% 0%, rgba(224, 75, 85, 0.45), transparent 55%), linear-gradient(135deg, #22040b, #580011 60%, #7d0d22);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.art-body blockquote::before { position: absolute; top: -18px; left: 26px; color: #ff9a92; font-size: 72px; line-height: 1; content: "“"; }

.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 30px 32px; border: 1px solid rgba(163, 18, 42, 0.14); border-radius: 22px; background: var(--soft); }
.art-cta h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.art-cta p { margin: 0; color: var(--muted); font-size: 15.5px; }
.art-cta a { flex: 0 0 auto; padding: 14px 22px; border-radius: 999px; color: #fff; background: var(--grad); box-shadow: 0 16px 30px -16px rgba(163, 18, 42, 0.8); font-size: 15px; font-weight: 800; text-decoration: none; transition: transform 300ms ease; }
.art-cta a:hover { transform: translateY(-2px); }

/* Cards (leia também e lista) */
.art-more { width: min(90%, 1180px); margin: 0 auto; padding: 40px 0 100px; }
.art-more h2 { margin: 0 0 24px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

.art-card { display: grid; align-content: start; padding: 14px 14px 22px; border: 1px solid rgba(22, 3, 7, 0.08); border-radius: 22px; background: #fff; box-shadow: 0 20px 40px -32px rgba(88, 0, 17, 0.35); text-decoration: none; transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease, border-color 300ms ease; }
.art-card[hidden] { display: none; }
.art-card:hover { border-color: rgba(163, 18, 42, 0.22); box-shadow: 0 30px 60px -34px rgba(88, 0, 17, 0.5); transform: translateY(-4px); }
.art-card:focus-visible, .art-nav a:focus-visible, .art-cta a:focus-visible { outline: 3px solid var(--crimson); outline-offset: 4px; }
.art-card-thumb { overflow: hidden; margin-bottom: 14px; border-radius: 14px; background: var(--soft); aspect-ratio: 16 / 10; }
.art-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.art-card:hover .art-card-thumb img { transform: scale(1.06); }
.art-card-meta { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.art-card-meta i { width: 4px; height: 4px; border-radius: 50%; background: rgba(22, 3, 7, 0.25); }
.art-card h3 { margin: 0 4px 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.28; }
.art-card p { margin: 0 4px 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.art-card-read { margin: 0 4px; color: var(--crimson); font-size: 14px; font-weight: 800; }

/* Lista de artigos */
.art-list { width: min(90%, 1180px); margin: 0 auto; padding: 56px 0 110px; }
.art-list-hero { max-width: 760px; margin-bottom: 44px; }
.art-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 16px; border: 1px solid rgba(163, 18, 42, 0.18); border-radius: 999px; color: var(--crimson); background: rgba(163, 18, 42, 0.05); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.art-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.art-list-hero h1 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; }
.art-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.art-filters button { padding: 9px 16px; border: 1px solid rgba(22, 3, 7, 0.12); border-radius: 999px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.art-filters button:hover { border-color: rgba(163, 18, 42, 0.4); }
.art-filters button.is-active { border-color: transparent; color: #fff; background: var(--grad); }

.art-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px max(5vw, calc((100vw - 1180px) / 2)); color: rgba(255, 236, 230, 0.75); background: #160307; font-size: 14px; }
.art-foot a { color: #ff9a92; font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .art-logo img { width: 132px; }
  .art-nav a:not(.art-nav-cta) { display: none; }
  .art-nav-cta { padding: 9px 14px; font-size: 13px; }
  .art-body { font-size: 17px; }
  .art-cta { flex-direction: column; align-items: flex-start; }
}
