:root {
  --bg: #f8f5ef;
  --paper: #fffdf8;
  --ink: #1f2328;
  --muted: #66706b;
  --line: #ded7cc;
  --teal: #226b63;
  --teal-dark: #164a45;
  --clay: #b75732;
  --gold: #c79a3d;
  --sage: #697d50;
  --shadow: 0 18px 42px rgba(31, 35, 40, 0.12);
  --radius: 8px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--content), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-grid;
  gap: 0.05rem;
  text-decoration: none;
}

.brand strong {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #ece5d9;
  color: var(--ink);
  outline: none;
}

.hero {
  min-height: 66vh;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(20, 28, 26, 0.88), rgba(20, 28, 26, 0.52), rgba(20, 28, 26, 0.14)),
    url("../img/curiosidades-hero.png") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #f0d79b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.65rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: #f7cf78;
  color: #1c211f;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
}

.section {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.2rem 0;
}

.section-tight {
  padding-top: 2.8rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.06);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-card a {
  text-decoration: none;
}

.post-card h3 {
  margin: 0.75rem 0 0.55rem;
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  background: #efe7d8;
  color: #4f4638;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-history {
  background: #efe1d8;
  color: #7f351f;
}

.tag-daily {
  background: #e0ece5;
  color: #226045;
}

.read-more {
  color: var(--teal-dark);
  font-weight: 900;
}

.feature-band {
  background: #1d2b28;
  color: #fff;
  border-top: 1px solid #18231f;
  border-bottom: 1px solid #18231f;
}

.feature-band .section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.metric {
  padding: 1.25rem 0;
  border-top: 3px solid var(--gold);
}

.metric strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
}

.page-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

.article-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-header h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.article {
  padding-top: 2rem;
  font-size: 1.08rem;
}

.article p {
  margin: 0 0 1.2rem;
}

.article h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.6rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.article ul {
  padding-left: 1.2rem;
}

.article li {
  margin-bottom: 0.55rem;
}

.callout {
  margin: 2rem 0;
  padding: 1.1rem 1.2rem;
  background: #e9f0eb;
  border-left: 5px solid var(--sage);
  border-radius: var(--radius);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.post-nav a {
  max-width: 48%;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.legal-list {
  display: grid;
  gap: 1rem;
  padding-left: 1.2rem;
}

.site-footer {
  background: #161b1a;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #f1d189;
  text-decoration: none;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 58vh;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-grid,
  .feature-band .section {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 250px;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav a {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .nav-links a {
    padding-inline: 0.55rem;
    font-size: 0.88rem;
  }

  .hero-inner {
    padding: 3.6rem 0 3rem;
  }

  .section,
  .page-shell {
    width: min(100% - 1.2rem, var(--content));
  }
}
