/* Páginas abertas (templates/publico_base.html): a inicial de quem não entrou e os
   artigos. Só arranjo — cores, fontes e cartões vêm dos tokens do style.css. As grades
   usam auto-fit, então empilham sozinhas no celular. */

.site {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 40px;
}

.hero {
  max-width: 640px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__title em {
  color: var(--accent);
}

.hero__lead {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* O .primary-btn do style.css ocupa a largura toda (é feito para formulário); aqui o
   botão é um link do tamanho do texto. */
.site-btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.site-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.site-btn--ghost {
  background: none;
  border-color: var(--line);
  color: var(--ink);
}

.site-btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink-2);
}

.features,
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.feature p,
.article-card p {
  margin-top: 8px;
  color: var(--ink-2);
}

.site-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.articles-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.articles-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.site-more {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-more:hover {
  color: var(--accent-hover);
}

.article-grid {
  list-style: none;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.article-card:hover {
  border-color: var(--accent);
}

.article-card .site-more {
  margin-top: auto;
  padding-top: 12px;
}

.article {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.article__lead {
  font-size: 1.12rem;
  color: var(--ink-2);
}

/* O texto dos artigos (templates/artigos/*.html): subtítulos e listas simples */
.article h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article li + li {
  margin-top: 6px;
}

.article p a,
.article li a {
  color: var(--accent);
}

/* Fonte, data da revisão e o aviso de que o texto não substitui o pediatra */
.article__fonte {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.article__fonte p + p {
  margin-top: 6px;
}

.articles-section__categoria {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.article__cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-2);
}

.site-footer a {
  color: inherit;
}
