/* Estudos: série "Daniel na história". Mesma paleta da jornada de 21 dias. */
:root {
  font-family: Georgia, "Times New Roman", serif;
  color: #243640;
  background: #f6f4ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #8a5a17;
  text-underline-offset: 3px;
}
a:hover {
  color: #5a3a0d;
}
a:focus-visible {
  outline: 3px solid #b47b28;
  outline-offset: 3px;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}
.ui {
  font-family: system-ui, sans-serif;
}

/* Topo */
.topbar {
  background: #11222f;
  color: #e7e1d4;
  border-bottom: 1px solid #2a4252;
}
.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  font: 600 13px/1.3 system-ui, sans-serif;
}
.topbar a {
  color: #e8bd70;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.topbar nav a {
  letter-spacing: 0.04em;
  text-transform: none;
  color: #e7e1d4;
  margin-left: 18px;
  font-weight: 600;
}
.topbar nav a:hover,
.topbar nav a[aria-current="page"] {
  color: #e8bd70;
}

/* Cabeçalho do estudo */
.hero {
  background: #1b3040;
  color: #f9f3e6;
  border-bottom: 5px solid #d7ab60;
}
.hero .shell {
  padding-top: 34px;
  padding-bottom: 38px;
}
.crumbs {
  font: 14px/1.4 system-ui, sans-serif;
  color: #cfd6d4;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: #8fa0a3;
}
.crumbs a {
  color: #e8bd70;
  text-decoration: none;
}
.kicker {
  font: 700 13px/1 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8bd70;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 16px;
  max-width: 860px;
}
.hero .dek {
  font-size: 21px;
  line-height: 1.5;
  color: #e0e5e2;
  max-width: 760px;
  margin: 0 0 20px;
}
.meta {
  font: 14px/1.5 system-ui, sans-serif;
  color: #cfd6d4;
  margin: 0;
}
.cover {
  margin: 28px 0 0;
}
.cover img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 10px;
  aspect-ratio: 1200 / 630;
}
.cover figcaption {
  font: 13px/1.4 system-ui, sans-serif;
  color: #b7c1c0;
  margin-top: 8px;
}

/* Corpo */
.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 28px 20px;
  font-size: 19px;
  line-height: 1.72;
}
.article h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
  color: #1b3040;
}
.article h3 {
  font-size: 23px;
  font-weight: 500;
  margin: 30px 0 8px;
  color: #1b3040;
}
.article p,
.article ul,
.article ol {
  margin: 0 0 18px;
}
.article li {
  margin-bottom: 8px;
}
.selo {
  display: inline-block;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 4px;
  vertical-align: middle;
  margin: 0 0 10px;
}
.selo--direta {
  background: #dcebe4;
  color: #1f5039;
}
.selo--contexto {
  background: #e7f1fb;
  color: #1d4466;
}
.selo--hipotese {
  background: #f9eeda;
  color: #6a4a12;
}
.selo--fe {
  background: #efedff;
  color: #43397a;
}
.selo--texto {
  background: #f9ece7;
  color: #7a3a22;
}
.legenda {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.legenda li {
  margin: 0;
  font-size: 17px;
}
.legenda .selo {
  margin: 0 8px 0 0;
}
.box {
  border-radius: 10px;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 18px;
}
.box p:last-child {
  margin-bottom: 0;
}
.box--nota {
  background: #fff7e6;
  color: #5a4620;
  border-left: 4px solid #d7ab60;
}
.box--reflexao {
  background: #1b3040;
  color: #f1ecdf;
}
.box--reflexao h2 {
  color: #e8bd70;
  font-size: 22px;
  margin: 0 0 8px;
}
.box--reflexao a {
  color: #e8bd70;
}
.tabela {
  overflow-x: auto;
  margin: 0 0 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font: 16px/1.5 system-ui, sans-serif;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd9ce;
  vertical-align: top;
}
th {
  color: #1b3040;
  background: #ece8dc;
}
.faq dt {
  font-weight: 700;
  color: #1b3040;
  margin-top: 18px;
}
.faq dd {
  margin: 6px 0 0;
}
.fontes {
  font: 15px/1.55 system-ui, sans-serif;
  color: #3b4a4f;
}
.fontes li {
  margin-bottom: 8px;
}
.revisao {
  font: 14px/1.5 system-ui, sans-serif;
  color: #687476;
  border-top: 1px solid #ddd9ce;
  padding-top: 16px;
  margin-top: 36px;
}

/* Hub */
.intro-hub {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.7;
  padding: 40px 0 10px;
}
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding: 10px 0 30px;
  margin: 0;
  list-style: none;
}
.card {
  background: #fffdf8;
  border: 1px solid #e4dfd2;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}
.card .corpo {
  padding: 16px 18px 20px;
}
.card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 4px 0 6px;
}
.card h3 a {
  color: #1b3040;
  text-decoration: none;
}
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card {
  position: relative;
}
.card h3 a:hover {
  text-decoration: underline;
}
.card p {
  font: 15px/1.5 system-ui, sans-serif;
  color: #5d686b;
  margin: 0;
}
.card--breve {
  opacity: 0.78;
}
.card--breve .status {
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a5a17;
}
.secao-titulo {
  font-size: 30px;
  font-weight: 500;
  color: #1b3040;
  margin: 34px 0 8px;
}

.footer {
  border-top: 1px solid #ddd9ce;
  padding: 24px 0 40px;
  margin-top: 30px;
  color: #687476;
  font: 14px/1.5 system-ui, sans-serif;
}
.footer p {
  margin: 0 0 8px;
}

@media (max-width: 520px) {
  .shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  .article {
    padding: 28px 18px 10px;
    font-size: 18px;
  }
  .hero .dek {
    font-size: 18px;
  }
  .topbar .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .topbar nav a {
    margin: 0 16px 0 0;
  }
}

/* Sequência de leitura */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  max-width: 1160px;
  margin: 34px auto 0;
  padding: 0 28px;
  font:
    600 16px/1.35 system-ui,
    sans-serif;
}
.pager a {
  flex: 1;
  display: block;
  padding: 14px 18px;
  border: 1px solid #ddd9ce;
  border-radius: 10px;
  background: #fffdf8;
  color: #1b3040;
  text-decoration: none;
}
.pager a:hover {
  border-color: #b47b28;
  color: #5a3a0d;
}
.pager a span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a17;
  margin-bottom: 2px;
}
.pager-next {
  text-align: right;
  margin-left: auto;
}
.pager-next span::after {
  content: " \2192";
}
.pager-prev span::before {
  content: "\2190 ";
}
.pager-home {
  flex: 0 0 auto !important;
  align-self: center;
  text-align: center;
}
@media (max-width: 520px) {
  .pager {
    flex-wrap: wrap;
    padding: 0 18px;
  }
  .pager-home {
    order: 3;
    flex-basis: 100% !important;
  }
}

/* Cor padrão dos links: dourado-escuro no fundo claro, dourado claro no fundo escuro */
.topbar nav a,
.crumbs a {
  color: #e8bd70;
}
.topbar nav a:hover,
.crumbs a:hover {
  color: #f3d9a2;
}
.card h3 a,
.pager a {
  color: #8a5a17;
}
.card h3 a:hover,
.pager a:hover {
  color: #5a3a0d;
}
.topbar nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
