/* ============================================================
   A capa original (a de antes de 22/10/2026): painel verde com os
   dois nomes em Italianno, papel creme ao lado. Vive só na página de
   entrada, com as cores e as fontes de então (Newsreader, Libre
   Franklin e Italianno), sem depender do tema novo da casa.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Italianno&family=Libre+Franklin:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap");

body.capa-original {
  --ink: #20241f;
  --ink-soft: #454b44;
  --paper: #f2ede3;
  --paper-light: #f8f4ec;
  --paper-deep: #e5dccd;
  --green: #294337;
  --on-green: #f8f4ec;
  --red: #a4422f;
  --muted: #5f665f;
  --line-strong: rgba(32, 36, 31, .7);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Libre Franklin", sans-serif;
  --script: "Italianno", cursive;
  margin: 0;
  background: var(--paper);
  background-image: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

:root[data-theme="dark"] body.capa-original {
  --ink: #ece7dc;
  --ink-soft: #c8cec6;
  --paper: #171c18;
  --paper-light: #202721;
  --paper-deep: #293129;
  --green: #315646;
  --red: #df806c;
  --muted: #a8b0a8;
  --line-strong: rgba(236, 231, 220, .62);
}

body.capa-original::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .52), transparent 28%),
    repeating-linear-gradient(94deg, transparent 0 27px, rgba(32, 36, 31, .012) 28px 29px);
  content: "";
  pointer-events: none;
}

:root[data-theme="dark"] body.capa-original::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .035), transparent 28%),
    repeating-linear-gradient(94deg, transparent 0 27px, rgba(255, 255, 255, .012) 28px 29px);
}

.capa-original .skip-link { position: absolute; left: -9999px; }
.capa-original .skip-link:focus { left: 12px; top: 12px; z-index: 10; padding: 10px 14px; background: var(--paper-light); color: var(--ink); }

.capa-original .page-shell {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}

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

.capa-original a { color: inherit; text-decoration: none; }

.capa-page {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .78fr);
  min-height: 100svh;
}

.capa-cover {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
  border-right: 10px solid #192b23;
  background: var(--green);
  color: var(--on-green);
}

:root[data-theme="dark"] .capa-cover {
  border-color: #0d1d16;
  background: #1d3b30;
  color: #f8f4ec;
}

.capa-cover::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 38px 38px;
  content: "";
  opacity: .7;
  pointer-events: none;
}

.capa-cover::after {
  position: absolute;
  top: 0;
  right: 38px;
  bottom: 0;
  width: 1px;
  background: rgba(248, 244, 236, .25);
  content: "";
}

.capa-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(248, 244, 236, .48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.capa-title {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 820px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 34px 0 72px;
  font: 400 clamp(106px, 14vw, 200px)/.72 var(--script);
  letter-spacing: -.02em;
  overflow: visible;
}

.capa-title span,
.capa-title i {
  display: block;
  width: max-content;
  font-weight: 400;
  opacity: 1;
}

.capa-title span {
  max-width: 100%;
  margin: -.13em 0 -.17em;
  padding: .15em 0 .19em;
  line-height: .86;
  clip-path: inset(0 100% 0 0);
  animation: capa-escrever 1.05s cubic-bezier(.55, .05, .25, 1) forwards;
}

.capa-title span:last-child {
  align-self: flex-end;
  animation-delay: .82s;
}

.capa-title i {
  align-self: center;
  margin: .13em 0 -.02em;
  color: #dfb168;
  font-family: var(--serif);
  font-size: .42em;
  font-style: italic;
  opacity: 0;
  transform: translateY(6px);
  animation: capa-assinar .24s ease .68s forwards;
}

.capa-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.capa-note p {
  margin: 0;
  color: rgba(248, 244, 236, .8);
  font: 400 19px/1.25 var(--serif);
}

.capa-entry {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px);
  background: var(--paper);
}

.capa-entry h2 {
  margin: 0 0 24px;
  font: 500 clamp(56px, 6vw, 84px)/.82 var(--serif);
  letter-spacing: -.055em;
}

.capa-entry > p {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 13px;
}

.capa-google {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  font-size: 12px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.capa-google:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.capa-google svg {
  width: 19px;
}

.capa-aviso {
  padding: 14px 0;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  color: #792b20;
  font-size: 12px;
}

:root[data-theme="dark"] .capa-aviso {
  color: #f0aa9b;
}

/* O botão de tema, como era */
.capa-tema {
  position: absolute;
  top: clamp(24px, 4vw, 54px);
  right: clamp(24px, 4vw, 64px);
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.capa-tema b {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-deep);
}

.capa-tema b::before,
.capa-tema b::after {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transform: translateY(-50%);
}

.capa-tema b::before { left: 8px; }
.capa-tema b::after { right: 8px; }

.capa-tema i {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
}

:root[data-theme="dark"] .capa-tema i {
  transform: translateX(20px);
}

@keyframes capa-assinar {
  to { opacity: 1; transform: none; }
}

@keyframes capa-escrever {
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 1120px) {
  .capa-page { grid-template-columns: 1.15fr .85fr; }
}

@media (max-width: 920px) {
  .capa-tema > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .capa-tema {
    position: static;
    align-self: flex-end;
    margin: -20px 0 22px;
  }

  .capa-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(410px, 55svh) minmax(330px, auto);
  }

  .capa-cover {
    min-height: 0;
    padding: 22px 24px 26px;
    border-right: 0;
    border-bottom: 8px solid #192b23;
  }

  :root[data-theme="dark"] .capa-cover { border-bottom-color: #0d1d16; }

  .capa-cover::after { right: 24px; }

  .capa-meta {
    padding-bottom: 10px;
    font-size: 7px;
  }

  .capa-title {
    max-width: 470px;
    padding: 18px 3vw 30px;
    font-size: clamp(80px, 27vw, 112px);
    line-height: .72;
  }

  .capa-note { gap: 12px; }
  .capa-note p { font-size: 14px; }

  .capa-entry {
    min-height: 0;
    justify-content: flex-start;
    padding: 38px 24px 64px;
  }

  .capa-entry h2 {
    margin-bottom: 12px;
    font-size: clamp(50px, 16vw, 68px);
  }

  .capa-entry > p { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .capa-title span,
  .capa-title i {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none;
  }
}
