/* Homepage — editorial tipográfico na linguagem typeui (hairlines, Geist, mono para metadados) */

.home {
  --home-gap: clamp(3rem, 6vw, 4.5rem);
}

/* ---- Masthead ---- */
.home-masthead {
  padding: clamp(2.75rem, 7vw, 4.25rem) 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--home-gap);
}
.home-edition {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.home-masthead h1 {
  max-width: 16em;
  margin-bottom: 1.1rem;
}
.home-masthead .lede {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.home-text-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--deco);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}
.home-text-link:hover {
  color: var(--ink-strong);
  text-decoration-color: var(--ink-strong);
}
.home-meta {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin: 0.75rem 0 0;
}

/* ---- Resposta direta ---- */
.home-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 40rem;
  margin: var(--home-gap) 0 0;
}
.home-lead strong {
  font-weight: 600;
  color: var(--ink-strong);
}

.home .countdown {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0.85rem 0;
  margin: 1.5rem 0 0;
}
.home .countdown strong {
  font-weight: 700;
  color: var(--ink-strong);
}

/* ---- Secções (hairline no topo, como as bandas do typeui) ---- */
.home-section {
  margin-top: var(--home-gap);
  padding-top: var(--home-gap);
  border-top: 1px solid var(--line);
}
.home-section h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.home-section-head h2 { margin: 0; }
.home-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.875rem;
}
.home-section-links a {
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.home-section-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--deco);
  text-underline-offset: 4px;
}

/* ---- Datas-chave (grelha de hairlines) ---- */
.home-dates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .home-dates { grid-template-columns: repeat(5, 1fr); }
}
.home-dates li {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .home-dates li {
    padding: 1rem 1.25rem 1rem 0;
  }
  .home-dates li + li {
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
  }
}
.home-dates .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.home-dates .value {
  display: block;
  font-weight: 650;
  font-size: 0.975rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}

/* ---- Tabelas em sequência ---- */
.home-tables h2 + .table-wrap { margin-top: 0; }
.home-tables .table-wrap + h2 { margin-top: 2.5rem; }
.home-tables .table-wrap { margin-bottom: 0.75rem; }
.home-tables .muted { margin: 0 0 1.5rem; }

/* ---- Agenda (julho) ---- */
.home-agenda {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.home-agenda li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem 1.5rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) {
  .home-agenda li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}
.home-agenda .agenda-cat {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 0.2rem;
}
.home-agenda .agenda-what {
  display: block;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.home-agenda .agenda-more {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.home-agenda .agenda-more a {
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.15s;
}
.home-agenda .agenda-more a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--deco);
  text-underline-offset: 4px;
}
.home-agenda .agenda-when {
  font-weight: 650;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- Índice por tema ---- */
.home-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .home-index { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
}
.home-index-group h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.home-index-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-index-group li {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.5;
}
.home-index-group li:last-child { border-bottom: none; }
.home-index-group a {
  text-decoration: none;
  color: var(--ink);
}
.home-index-group a:hover .idx-title {
  text-decoration: underline;
  text-decoration-color: var(--deco);
  text-underline-offset: 4px;
}
.home-index-group .idx-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline;
}
.home-index-group .idx-desc {
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 0.875rem;
}
.home-index-group .idx-desc::before {
  content: ": ";
  color: var(--ink-mute);
}

/* ---- FAQ e fontes ---- */
.home .faq { margin-top: 0; }
.home .source-note {
  margin-top: var(--home-gap);
  padding-top: var(--home-gap);
  border-top: 1px solid var(--line);
}

main.home { padding-bottom: 5rem; }
main.home h2 { margin-top: 0; }

@media print {
  .home-masthead { padding-top: 0; }
  .home-section { break-inside: avoid; }
}
