/* base.css: as cores, as letras e as peças miúdas do desenho 19, o Mel em preto e branco. Cara de revista impressa:
   faixas brancas e off-white revezando, texto e botões pretos, cinza no secundário, fios finos pretos separando
   as coisas e um vermelho-tomate só no play e no selo "Novo". Títulos grandes em Cormorant Garamond itálico,
   o resto em Inter Tight.
   Depende de: as fontes Cormorant Garamond e Inter Tight, do Google, no <head>. Telefone nas regras soltas,
   computador no @media do fim. */

:root {
  --branco: #ffffff;
  --off: #f6f6f4;
  --preto: #111111;
  --preto-claro: #2b2b2b;
  --cinza: #6b6b6b;
  --vermelho: #e63b2e;
  --fio: #111111;
  --linha: #dcdcd7;
  --cinza-claro: #c9c9c4;

  --letra: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --letra-titulo: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --largura: 1080px;
  --largura-media: 860px;
  --margem: 16px;

  /* o modal do comum lê estas */
  --raio: 0px;
  --cartao: var(--branco);
  --texto: var(--preto);
  --texto-fraco: var(--cinza);
  --fundo: var(--off);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--preto);
  font: 400 16px/1.6 var(--letra);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--letra-titulo); font-weight: 600; line-height: 1.1; letter-spacing: 0; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--preto); outline-offset: 3px; }

/* ------------------------------------------------------------ miúdos */

.pular {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  padding: 10px 16px; background: var(--preto); color: var(--branco); font-weight: 600;
}
.pular:focus { left: 8px; }

.so-leitor {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* a faixa off-white: as faixas da página revezam entre o branco do body e esta */
.fundo-off { background: var(--off); }

.miolo { width: min(var(--largura), 100% - 2 * var(--margem)); margin-inline: auto; }

.miolo--medio { width: min(var(--largura-media), 100% - 2 * var(--margem)); }

/* o rótulo miúdo em caixa alta espaçada que abre cada bloco ("ÚLTIMO EPISÓDIO") */
.sobretitulo {
  font-family: var(--letra); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cinza);
}

/* o título de seção, em itálico de revista ("Comece por aqui", "Capítulos") */
.sobretitulo--grande {
  font-family: var(--letra-titulo); font-size: 30px; font-style: italic; font-weight: 500;
  letter-spacing: 0; line-height: 1.1; text-transform: none; color: var(--preto);
}

/* o selo "Novo": um dos dois lugares do vermelho (o outro é o play). Letra preta no vermelho passa no contraste. */
.selo-novo {
  display: inline-block; margin-left: 10px; padding: 3px 8px 2px; vertical-align: 1px;
  background: var(--vermelho); color: var(--preto);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.4;
}

/* ------------------------------------------------------------ botões */

/* o botão preto de texto branco: a ação principal */
.botao-preto {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 1px solid var(--preto);
  background: var(--preto); color: var(--branco);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.botao-preto:hover { background: var(--preto-claro); }

/* o botão de fio: a ação de apoio (compartilhar); vira preto ao passar o mouse */
.botao-fio {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid var(--preto); background: none; color: var(--preto);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.botao-fio:hover { background: var(--preto); color: var(--branco); }

.botao-fio__icone { width: 16px; height: 16px; flex: none; }

/* o "ver mais" com o + num quadradinho: abre uma janela, nunca empurra a página */
.botao-mais {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; border: 0; background: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.botao-mais::before {
  content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--preto);
  font-size: 16px; font-weight: 400; line-height: 1;
}
.botao-mais:hover::before { background: var(--preto); color: var(--branco); }

/* o endereço do feed com o botão de copiar */
.feed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feed code { font-size: 14px; overflow-wrap: anywhere; color: var(--cinza); }
.feed__copiar {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--preto); background: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.feed__copiar:hover { background: var(--preto); color: var(--branco); }

/* o título das janelas do comum ganha a letra dos títulos */
.modal-titulo { font-family: var(--letra-titulo); font-size: 24px; font-style: italic; font-weight: 600; letter-spacing: 0; }
.modal-cabeca { border-bottom-color: var(--fio); }

@media (min-width: 900px) {
  :root { --margem: 32px; }
  body { font-size: 17px; }
  .sobretitulo--grande { font-size: 36px; }
}
