/* Diário na identidade do Liberego: reboco, tinta, latão, Literata.
   A página usa a largura do container. O e-mail continua uma coluna estreita, à parte. */
@font-face { font-family: Literata; src: url("/recursos/literata-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Literata; src: url("/recursos/literata-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --plaster: #f1f0ed;
  --plaster-lit: #fbfaf7;
  --ink: #1c2228;
  --ink-soft: #3d454c;
  --brass: #8c611b;
  --brass-deep: #6d4a10;
  --brass-light: #c9964a;
  --line: rgba(28, 34, 40, 0.14);
  --serif: Literata, Georgia, "Times New Roman", serif;
  --sans: Literata, Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 72px);
  --pagina: 1320px;
  --sombra: 0 18px 40px rgba(28, 34, 40, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}
::selection { background: rgba(140, 97, 27, 0.22); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pular {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--plaster-lit); padding: .45rem .7rem;
}
.pular:focus { top: 1rem; }

.topo, main, .rodape { width: min(var(--pagina), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.topo { padding: 1.25rem 0 0; }
.barra { display: flex; align-items: center; gap: 1.25rem 1.75rem; }
.logo { display: flex; }
.logo img { height: 46px; width: auto; }
.nome { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.nome a { text-decoration: none; }
.linha-data { margin: 0 0 0 auto; color: var(--ink-soft); font-family: var(--sans); font-size: .92rem; }
.linguas { margin: 0; font-family: var(--sans); font-size: .92rem; }
.linguas a { text-decoration: none; }
.topo nav {
  display: flex; flex-wrap: wrap; gap: .55rem 1.15rem;
  margin: 1rem 0 0; padding: .85rem 0 1rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--brass-light);
  font-family: var(--sans); font-size: 1rem;
}
.topo nav a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 220ms var(--ease), color 220ms var(--ease);
}
.topo nav a:hover, .topo nav a[aria-current="page"] { background-size: 100% 1px; }

main { padding: 1.6rem 0 3.5rem; }

.chamada > a, .item > a { display: block; color: inherit; text-decoration: none; }
.chamada > a {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}
.chamada figure, .item figure, .hero { margin: 0; overflow: hidden; border-radius: 16px; }
.chamada img, .item img, .hero img {
  display: block; width: 100%; height: auto; object-fit: cover;
  transform: scale(1);
  transition: transform 700ms var(--ease);
}
.chamada a:hover img, .item a:hover img { transform: scale(1.045); }
.chamada h1, .nota h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.02;
  text-wrap: wrap;
}
.chamada h1 { font-size: clamp(2.5rem, 3.3vw, 3.6rem); }
.chamada .texto p, .item .texto p { color: var(--ink-soft); }
.ficha { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .8rem 0 0; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.ficha time, .quando { font-variant-numeric: tabular-nums; }

.lista { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.item { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.item > a { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.item h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 2vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 400; }
.item figure { border-radius: 12px; }
.item img { aspect-ratio: 4 / 3; }

.nota { width: 100%; max-width: none; }
.nota-cabeca { width: 100%; margin: 0 0 1.4rem; }
.nota h1 { font-size: clamp(2.6rem, 3.6vw, 3.9rem); max-width: none; }
.nota .resumo { max-width: none; margin: .7rem 0 0; font-size: clamp(1.2rem, 1.6vw, 1.45rem); color: var(--ink-soft); }
.nota .hero { margin: 0 0 1.6rem; border-radius: 20px; box-shadow: var(--sombra); }
.nota .hero img { width: 100%; max-height: min(72vh, 760px); object-fit: cover; }
.nota .corpo { max-width: none; font-size: 1.2rem; line-height: 1.65; }
.nota .corpo p { max-width: none; }
.assinatura { font-weight: 500; }
.selo { margin: .8rem 0 0; padding-bottom: .15rem; border-bottom: 1px solid var(--brass-light); font-family: var(--sans); }
.fontes, .relacionados { margin-top: 2.4rem; }
.fontes h2, .relacionados h2, .inscricao h2 { font-family: var(--serif); font-size: clamp(1.7rem, 2vw, 2.1rem); font-weight: 400; letter-spacing: -0.02em; }
.fontes ol { padding-left: 1.2rem; }
.relacionados ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.relacionados a { text-decoration: none; }
.relacionados a:hover { text-decoration: underline; }
figcaption { margin-top: .45rem; font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); }

.paginacao { display: flex; gap: 1rem; margin-top: 1.6rem; font-family: var(--sans); }
.inscricao {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem 2.5rem;
  margin-top: 3.2rem; padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--plaster-lit); border-radius: 28px; box-shadow: var(--sombra);
}
.inscricao form { display: grid; gap: .5rem; font-family: var(--sans); }
.inscricao input[type="text"], .inscricao input[type="email"] {
  font: inherit; color: inherit; background: transparent;
  border: none; border-bottom: 1px solid var(--ink); border-radius: 0; padding: .5rem 0;
}
.inscricao button {
  justify-self: start; margin-top: .7rem;
  font: 500 1rem/1 var(--sans); color: #fff8e8; background: var(--brass);
  border: none; border-radius: 999px; height: 54px; padding: 0 26px; cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.inscricao button:hover:not(:disabled) { background: var(--brass-deep); }
.inscricao button:active:not(:disabled) { transform: translateY(1px); }
.inscricao button:disabled { cursor: not-allowed; opacity: .55; }
.consentimento { display: flex; gap: .6rem; align-items: flex-start; }
.armadilha { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.aviso-js:empty { display: none; }
.rodape {
  display: flex; gap: 1.2rem; align-items: center;
  padding: 1.1rem 0 2rem; border-top: 1px solid var(--ink); font-family: var(--sans);
}
.rodape .logo img { height: 32px; }

@media (max-width: 800px) {
  .barra { flex-wrap: wrap; }
  .linha-data { margin-left: 0; }
  .chamada > a, .item > a, .inscricao { grid-template-columns: 1fr; }
  .nota h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 280ms var(--ease) both sair; }
  ::view-transition-new(root) { animation: 420ms var(--ease) both entrar; }
  ::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: var(--ease); }
  .chamada figure, .nota .hero { animation: abrir 720ms var(--ease) both; }
  @keyframes abrir {
    from { clip-path: inset(0 46% 0 46%); filter: blur(8px); }
    to { clip-path: inset(0 0 0 0); filter: blur(0); }
  }
  @keyframes entrar { from { opacity: .01; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
  @keyframes sair { from { opacity: 1; } to { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .chamada img, .item img, .inscricao button, .topo nav a { transition: none; }
}
@media print {
  .topo nav, .inscricao, .rodape, .pular { display: none; }
  body { background: white; }
}
