:root {
  --primary: #0b0b23;
  --primary-2: #17172d;
  --ink: #1f2430;
  --text: #3b414d;
  --muted: #777f8c;
  --muted-2: #969ca6;

  --bg: #f8f6f1;
  --paper: #ffffff;
  --paper-2: #fbfaf7;
  --line: #e8e2d7;

  --gold: #a98c56;
  --gold-soft: #d9c79f;

  --container: 1120px;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;

  --shadow: 0 10px 28px rgba(11, 11, 35, 0.04);
  --shadow-hover: 0 16px 36px rgba(11, 11, 35, 0.065);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.68;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select,
a {
  font-family: inherit;
}

button,
.btn,
.read-more,
.card-link,
.nav-button,
.pagination a,
.blog-cta a,
.empty-state a,
.search-box button {
  font-weight: 300 !important;
  letter-spacing: 0 !important;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 35, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.header-container {
  width: min(100% - 32px, var(--container));
  min-height: 70px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 122px;
}

.brand img {
  width: 96px;
  height: auto;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 300;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.main-nav .nav-button {
  margin-left: 8px;
  padding-inline: 14px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.27);
}

.main-nav .nav-button:hover {
  color: var(--primary);
  background: #ffffff;
}

/* Mobile */

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: #ffffff;
  border-radius: 20px;
}

/* Hero */

.blog-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(11, 11, 35, 0.88) 0%,
      rgba(11, 11, 35, 0.72) 48%,
      rgba(11, 11, 35, 0.38) 100%
    ),
    var(--hero-image) center/cover no-repeat;
}

.hero-inner {
  position: relative;
}

.hero-content {
  max-width: 665px;
  padding: 68px 0 74px;
}

.eyebrow,
.section-heading span,
.post-label,
.blog-cta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.eyebrow::before,
.section-heading span::before,
.post-label::before,
.blog-cta span::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.blog-hero h1 {
  max-width: 610px;
  margin-bottom: 18px;
  color: #ffffff;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.blog-hero p {
  max-width: 540px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.01rem;
  font-weight: 300;
}

/* Search */

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 525px);
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 300;
}

.search-box input::placeholder {
  color: #969ca6;
}

.search-box button {
  height: 42px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-box button:hover {
  color: var(--primary);
  background: transparent;
}

.quick-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-topics a {
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 300;
  transition: all 0.2s ease;
}

.quick-topics a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}

/* Content */

.blog-content {
  padding: 62px 0 72px;
}

.content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}

.section-heading {
  max-width: 650px;
}

.section-heading span {
  color: var(--gold);
}

.section-heading h2 {
  color: var(--primary);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.032em;
}

.result-count {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 300;
  white-space: nowrap;
}

/* Featured */

.featured-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 315px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.featured-image {
  min-height: 315px;
  background: #eee8dc;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.015);
  filter: saturate(0.95);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 44px);
}

.post-label {
  color: var(--gold);
}

.featured-body h3 {
  max-width: 560px;
  margin-bottom: 15px;
  color: var(--primary);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.featured-body h3 a,
.blog-card h3 a {
  transition: color 0.2s ease;
}

.featured-body h3 a:hover,
.blog-card h3 a:hover {
  color: #76613b;
}

.featured-body p {
  max-width: 560px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 300;
}

.post-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.post-meta {
  margin-bottom: 23px;
}

.post-meta span,
.card-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: #76633d;
  background: #f0eadf;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.35;
}

/* Buttons */

.read-more,
.card-link,
.empty-state a,
.blog-cta a,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1;
  transition: all 0.2s ease;
}

.read-more {
  padding: 11px 18px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.read-more:hover {
  color: var(--primary);
  background: transparent;
}

/* Cards */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(11, 11, 35, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: #d8ccb8;
  box-shadow: var(--shadow-hover);
}

.card-image {
  display: block;
  height: 188px;
  overflow: hidden;
  background: #eee8dc;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.018);
  filter: saturate(0.95);
}

.card-body {
  padding: 20px;
}

.blog-card h3 {
  margin: 12px 0 10px;
  color: var(--primary);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.card-link {
  padding: 8px 14px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--line);
}

.card-link:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Empty */

.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 300;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 300;
}

.empty-state a {
  padding: 10px 17px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.empty-state a:hover {
  color: var(--primary);
  background: transparent;
}

/* Pagination */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  min-width: 39px;
  min-height: 39px;
  padding: 8px 12px;
  color: var(--primary);
  background: var(--paper);
  border: 1px solid var(--line);
}

.pagination a:hover,
.pagination a.current {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* CTA */

.blog-cta {
  padding: 0 0 72px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(26px, 4vw, 42px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: var(--radius-lg);
}

.cta-card h2 {
  margin-bottom: 8px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.cta-card p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  font-weight: 300;
}

.cta-card a {
  flex: 0 0 auto;
  padding: 11px 18px;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid #ffffff;
}

.cta-card a:hover {
  color: #ffffff;
  background: transparent;
}

/* Footer */

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.62);
  background: #08081c;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-content p,
.footer-content a {
  font-size: 0.88rem;
  font-weight: 300;
}

.footer-content a {
  color: var(--gold-soft);
}

/* Responsive */

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 14px;
    background: rgba(11, 11, 35, 0.985);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 13px;
  }

  .main-nav .nav-button {
    margin-left: 0;
    text-align: center;
  }

  .content-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-count {
    white-space: normal;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 285px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .header-container {
    width: min(100% - 26px, var(--container));
  }

  .header-container {
    min-height: 66px;
  }

  .brand img {
    width: 90px;
  }

  .main-nav {
    top: 66px;
  }

  .blog-hero {
    min-height: 440px;
    background:
      linear-gradient(
        90deg,
        rgba(11, 11, 35, 0.91) 0%,
        rgba(11, 11, 35, 0.78) 100%
      ),
      var(--hero-image) center/cover no-repeat;
  }

  .hero-content {
    padding: 58px 0 64px;
  }

  .blog-hero h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.85rem);
  }

  .blog-hero p {
    font-size: 0.96rem;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
  }

  .search-box input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
  }

  .search-box button {
    width: 100%;
  }

  .quick-topics {
    gap: 7px;
  }

  .quick-topics a {
    font-size: 0.74rem;
  }

  .blog-content {
    padding: 52px 0 62px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-image,
  .card-image {
    height: 220px;
    min-height: auto;
  }

  .featured-body,
  .card-body {
    padding: 21px;
  }

  .pagination {
    justify-content: flex-start;
  }

  .blog-cta {
    padding-bottom: 62px;
  }
}

/* Página individual do post */

.post-page {
  background: var(--bg);
}

.post-hero {
  padding: 72px 0 48px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(11, 11, 35, 0.98), rgba(23, 23, 45, 0.96));
}

.post-hero-inner {
  max-width: 880px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 300;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #ffffff;
}

.post-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.post-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.04rem;
  font-weight: 300;
}

.post-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.post-info span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  color: #f0e4c8;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 300;
}

.post-main {
  padding: 56px 0 72px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
}

.post-article {
  min-width: 0;
}

.post-cover {
  overflow: hidden;
  margin-bottom: 36px;
  background: #eee8dc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.post-cover img {
  width: 100%;
  max-height: 490px;
  object-fit: cover;
}

.post-body {
  max-width: 780px;
  padding: 4px 2px;
}

.post-body p {
  margin-bottom: 1.35em;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.86;
  text-align: justify;
}

.post-body p:first-child::first-letter {
  float: left;
  margin: 8px 8px 0 0;
  color: var(--primary);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.85;
}

.post-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.sidebar-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.sidebar-card h2 {
  margin-bottom: 10px;
  color: var(--primary);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.sidebar-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.sidebar-card a {
  display: inline-flex;
  width: fit-content;
  padding: 9px 15px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 300;
  transition: all 0.2s ease;
}

.sidebar-card a:hover {
  color: var(--primary);
  background: transparent;
}

.sidebar-card.subtle {
  box-shadow: none;
  background: var(--paper-2);
}

.related-section {
  padding: 0 0 72px;
}

.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

.not-found-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(11, 11, 35, 0.98), rgba(23, 23, 45, 0.96));
}

.not-found-page h1 {
  margin-bottom: 14px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.not-found-page p {
  max-width: 560px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
}

.not-found-page a {
  display: inline-flex;
  padding: 11px 18px;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 300;
  transition: all 0.2s ease;
}

.not-found-page a:hover {
  color: #ffffff;
  background: transparent;
}

@media (max-width: 980px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .post-body {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .post-hero {
    padding: 54px 0 40px;
  }

  .back-link {
    margin-bottom: 28px;
  }

  .post-main {
    padding: 42px 0 58px;
  }

  .post-cover {
    margin-bottom: 28px;
  }

  .post-cover img {
    max-height: 320px;
  }

  .post-body p {
    font-size: 1rem;
    line-height: 1.78;
    text-align: left;
  }

  .post-body p:first-child::first-letter {
    float: none;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .post-sidebar {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}