/* ============================================================
   overA Capital, page: Artigo  (single blog post / reading view)
   The detail page behind every card on blog.html. One shared template
   (artigo.html) renders any post from a slug; this is its dress.
   A calm, TYPE-FIRST reading column: centered masthead -> brand rule ->
   left-aligned prose at a comfortable measure -> "continue lendo" (reuses
   the .cnt- card grid) -> espresso CTA. Same Newsreader/Barlow duet as
   the blog index, so the article reads as a sibling, not a foreign page.
   Page-scoped under .art- ; the shell (header/footer + site.js) is shared.
   ============================================================ */

/* ------------------------------------------------------------
   HEADER OVER PAPER HERO (page-scoped): the article opens on paper,
   so repaint the nav controls in ink tones until the header solidifies.
   (Same override the blog/transacoes siblings carry.)
   ------------------------------------------------------------ */
.site-header:not(.site-header--solid) .nav-links a { color: var(--ink-muted); opacity: 1; }
.site-header:not(.site-header--solid) .nav-links a:hover,
.site-header:not(.site-header--solid) .nav-links a.is-active { color: var(--ink); opacity: 1; }
.site-header:not(.site-header--solid) .nav-cta.btn--ghost { border-color: var(--line); color: var(--ink); }
.site-header:not(.site-header--solid) .nav-cta.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.site-header:not(.site-header--solid) .nav-toggle span { background: var(--ink); }

/* ------------------------------------------------------------
   MASTHEAD — a centered editorial header at the reading measure:
   a quiet brand mark, the category eyebrow, the serif title, a lede,
   then the byline/date meta row over a hairline.
   ------------------------------------------------------------ */
.art-head {
  background: var(--paper);
  padding-top: calc(var(--header-h) + clamp(2.2rem, 4.5vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .art-head > .container { animation: heroSettle 0.9s var(--ease-out) both; }
}

/* back-to-blog, sits above the centered block, left-aligned to the column */
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.art-back:hover { color: var(--accent-deep); }
.art-back .arr { transition: transform var(--dur) var(--ease); }
.art-back:hover .arr { transform: translateX(-3px); }

/* breadcrumb trail — the static per-article pages at /blog/{slug}/ carry a
   real crumb (Home / Blog / título) instead of the single back-link, so the
   path is legible to a reader AND to a crawler. Mirrors .dpg__crumbs on the
   transaction pages; centered here because .art-head centers its column. */
.art-crumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.art-crumbs a { color: var(--ink-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.art-crumbs a:hover { color: var(--accent-deep); }
.art-crumbs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.art-crumbs [aria-current="page"] { color: var(--ink-faint); }
@media (max-width: 560px) {
  .art-crumbs [aria-current="page"] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.art-head__mark {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
  user-select: none;
}

.art-cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.art-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-page-title);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.7rem auto 0;
  max-width: 20ch;
}

.art-lede {
  font-family: var(--sans);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
  margin: clamp(1rem, 2.5vw, 1.4rem) auto 0;
  max-width: 52ch;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: clamp(1.4rem, 2.5vw, 1.8rem);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--ink-faint);
}
.art-meta__by { color: var(--ink-muted); }
.art-meta__sep { color: var(--line-strong); }

/* ------------------------------------------------------------
   HERO MEDIA — a contained editorial photo plate between the masthead
   and the body (never type over it). Same warm duotone as the blog
   covers so the article reads as part of one publication.
   ------------------------------------------------------------ */
.art-media {
  background: var(--paper);
  padding-top: clamp(1.6rem, 3.5vw, 2.6rem);
}
.art-media__frame {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--oat);
  aspect-ratio: 16 / 8;
}
.art-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) sepia(0.42) contrast(1.04) brightness(1.03);
}
@media (max-width: 760px) { .art-media__frame { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------------------
   BODY — the reading column. Barlow at a slightly larger size with
   open leading; serif subheads + a terracotta-ruled pull-quote echo
   the publication voice. Constrained to the text measure for rhythm.
   ------------------------------------------------------------ */
.art-body {
  background: var(--paper);
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: var(--section-y);
}

.art-prose {
  font-family: var(--sans);
  font-size: clamp(1.075rem, 1.02rem + 0.3vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink);
}
.art-prose > * { margin: 0; }
.art-prose > * + * { margin-top: 1.35em; }

/* standfirst: the first paragraph reads a touch larger and warmer */
.art-prose > p:first-of-type {
  font-size: clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
}

.art-prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}

.art-prose strong { font-weight: 600; color: var(--ink); }
.art-prose em { font-style: normal; color: var(--accent-deep); }   /* keep the no-italic house rule */

.art-prose a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur) var(--ease);
}
.art-prose a:hover { text-decoration-color: var(--accent); }

/* terracotta-ruled pull-quote — the one display moment in the body */
.art-prose blockquote {
  margin: clamp(2.2rem, 4.5vw, 3.2rem) 0;
  padding: 0.2rem 0 0.2rem clamp(1.2rem, 3vw, 1.8rem);
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.art-prose blockquote p { margin: 0; }

.art-prose ul, .art-prose ol { padding-left: 1.3em; }
.art-prose li + li { margin-top: 0.5em; }
.art-prose li::marker { color: var(--accent); }

/* ------------------------------------------------------------
   ARTICLE FOOT — a hairline, a back link, and a quiet share row.
   ------------------------------------------------------------ */
.art-foot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.art-foot__share { display: inline-flex; align-items: center; gap: 1.1rem; }
.art-foot__share span { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-faint); }
.art-foot__share a {
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.art-foot__share a:hover { color: var(--accent-deep); border-color: var(--accent); }

/* ------------------------------------------------------------
   CONTINUE LENDO — reuses the .cnt- card grid from page-blog.css
   (loaded alongside this sheet). Just the section frame here.
   ------------------------------------------------------------ */
.art-more {
  background: var(--oat);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.4rem, 6vw, 5rem);
  padding-bottom: clamp(3.4rem, 6vw, 5rem);
}
.art-more__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}
.art-more__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
  margin: 0;
}
.art-more .cnt-grid { grid-template-columns: 1fr; }
@media (min-width: 620px) { .art-more .cnt-grid { grid-template-columns: repeat(3, 1fr); } }
/* the "more" cards sit on the oat band: give the tonal ring a hair more contrast */
.art-more .cnt-card > article { background: var(--paper); }

/* ------------------------------------------------------------
   NOT FOUND — graceful state when ?p= is missing or unknown.
   ------------------------------------------------------------ */
.art-404 { text-align: center; }
.art-404 h1 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h2); margin: 0 0 0.6rem; }
.art-404 p { font-family: var(--sans); color: var(--ink-muted); margin: 0 0 1.6rem; }

@media (max-width: 760px) {
  .art-more__head { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* switcher summary must match the nav links over the light hero (added 2026-07-07) */
.site-header:not(.site-header--solid) .lang-switch > summary { color: var(--ink-muted); }
.site-header:not(.site-header--solid) .lang-switch > summary:hover,
.site-header:not(.site-header--solid) .lang-switch[open] > summary { color: var(--ink); }
