/* Editora Etrom — catálogo estilo streaming */

:root {
  --bg: #0b0b0b;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --accent: #8b0000;
  --accent-bright: #c41e3a;
  --nav-height: 68px;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 11, 11, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo-wrap {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.navbar__logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.navbar__wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-bright);
  transition: color var(--transition);
}

.navbar__tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: none;
  transition: color var(--transition);
}

@media (min-width: 640px) {
  .navbar__tagline {
    display: block;
  }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
}

.navbar__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--text);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar__search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background var(--transition);
}

.navbar__search:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 2rem) clamp(1.25rem, 4vw, 3.5rem) 4rem;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transition: opacity 0.6s ease, object-position 0.6s ease;
}

.hero--transitioning .hero__backdrop img {
  opacity: 0.35;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 11, 0.55) 38%, rgba(11, 11, 11, 0.15) 100%),
    linear-gradient(to right, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.35) 52%, transparent 100%);
}

.hero__backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: calc(var(--nav-height) + 3.5rem);
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.98) 0%,
    rgba(11, 11, 11, 0.88) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.hero--cover-title .hero__backdrop::before {
  height: calc(var(--nav-height) + 5rem);
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 1) 0%,
    rgba(11, 11, 11, 0.94) 45%,
    rgba(11, 11, 11, 0.55) 75%,
    transparent 100%
  );
}

.hero--cover-title .hero__backdrop::after {
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 11, 0.78) 42%, rgba(11, 11, 11, 0.2) 100%),
    linear-gradient(to right, rgba(11, 11, 11, 0.94) 0%, rgba(11, 11, 11, 0.4) 50%, transparent 100%);
}

.hero--cover-title .hero__content {
  padding: 1.35rem 1.5rem 0;
  margin-left: -1.5rem;
  border-radius: 6px;
  background: linear-gradient(
    to top,
    rgba(11, 11, 11, 0.92) 0%,
    rgba(11, 11, 11, 0.72) 55%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero--transitioning .hero__content {
  opacity: 0;
  transform: translateY(12px);
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.75rem;
  opacity: 0.5;
}

.hero__synopsis {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--transition), transform var(--transition);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.hero__dot--active {
  background: var(--accent-bright);
  transform: scale(1.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: scale(1.03);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn--secondary {
  background: rgba(109, 109, 110, 0.7);
  color: var(--text);
}

.btn--secondary:hover {
  background: rgba(109, 109, 110, 0.5);
}

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Amazon CTA ── */

.btn--amazon {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.35rem;
  background: linear-gradient(180deg, #ffe08a 0%, #ff9900 42%, #e88700 100%);
  color: #131921;
  font-weight: 700;
  border: 1px solid #c8941a;
  box-shadow:
    0 4px 18px rgba(255, 153, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn--amazon:hover {
  transform: scale(1.04);
  box-shadow:
    0 6px 28px rgba(255, 153, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #131921;
}

.btn--amazon-compact {
  padding: 0.65rem 1.1rem;
}

.btn-amazon__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: amazon-gleam 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes amazon-gleam {
  0%,
  70%,
  100% {
    transform: translateX(-120%);
  }
  35% {
    transform: translateX(120%);
  }
}

.btn-amazon__logo {
  width: 4.5rem;
  height: auto;
  flex-shrink: 0;
}

.btn-amazon__word {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  fill: #131921;
  letter-spacing: -0.04em;
}

.btn-amazon__smile {
  stroke: #ff9900;
}

.btn-amazon__arrow {
  stroke: #ff9900;
}

.btn-amazon__label {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  white-space: nowrap;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.modal__actions .btn--amazon {
  padding: 0.85rem 1.65rem;
}

.modal__actions .btn-amazon__logo {
  width: 5.25rem;
}

/* ── Rows ── */

.catalog {
  padding: 0 0 4rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.row {
  margin-bottom: 2.5rem;
}

.row__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.row__title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

.row__link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.row__link:hover {
  color: var(--text);
}

.row__track-wrapper {
  position: relative;
}

.row__track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem clamp(1.25rem, 4vw, 3.5rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.row__track::-webkit-scrollbar {
  display: none;
}

.row__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.75);
  color: var(--text);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.row__track-wrapper:hover .row__arrow {
  opacity: 1;
}

@media (min-width: 768px) {
  .row__arrow {
    display: flex;
  }
}

.row__arrow--left {
  left: 0;
}

.row__arrow--right {
  right: 0;
}

/* ── Cards ── */

.card {
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 200px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), z-index 0s;
  aspect-ratio: 2 / 3;
}

.card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: var(--shadow);
}

.card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__title {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.card__author {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card--placeholder {
  background: var(--bg-card);
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.card--placeholder span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

/* ── Modal ── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal__panel {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 8px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal.open .modal__panel {
  transform: scale(1);
}

.modal__layout {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  align-items: start;
}

.modal__cover {
  margin: 0;
  padding: 2.5rem 1.25rem 2rem 2rem;
  background: #080808;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: sticky;
  top: 0;
}

.modal__cover img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background var(--transition);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal__body {
  padding: 2.25rem 2rem 2rem 0.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .modal__layout {
    grid-template-columns: 1fr;
  }

  .modal__cover {
    position: static;
    padding: 3.25rem 1.5rem 0.5rem;
    background: linear-gradient(to bottom, #080808 0%, var(--bg-elevated) 100%);
  }

  .modal__cover img {
    max-width: min(200px, 52vw);
    margin: 0 auto;
  }

  .modal__body {
    padding: 1.25rem 1.5rem 2rem;
    margin-top: 0;
  }
}

.modal__title {
  font-family: Georgia, serif;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.modal__subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-bright);
  margin-bottom: 1.25rem;
}

.modal__synopsis {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal__related {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(139, 0, 0, 0.12);
  border-radius: var(--radius);
}

.modal__series {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}

.modal__related-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.modal__related-link {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0;
  transition: color var(--transition);
}

.modal__related-link:hover {
  color: var(--accent-bright);
}

.modal__related-link strong {
  color: var(--text);
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal__tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.footer__logo-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.footer__logo-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer__brand {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent-bright);
  margin-bottom: 0;
}

.footer__copy {
  opacity: 0.6;
}

/* ── Views ── */

.view[hidden] {
  display: none !important;
}

/* ── Novidades ── */

.news-panel {
  padding: calc(var(--nav-height) + 2.5rem) clamp(1.25rem, 4vw, 3.5rem) 4rem;
  max-width: 820px;
  margin: 0 auto;
}

.news-panel__header {
  margin-bottom: 2.5rem;
}

.news-panel__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.news-panel__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.news-panel__intro {
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-panel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-filter {
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.news-filter:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.news-filter--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-feed__empty {
  color: var(--text-muted);
  padding: 2rem 0;
  text-align: center;
}

.news-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  transition: border-color var(--transition);
}

.news-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.news-card--expanded {
  border-color: rgba(196, 30, 58, 0.35);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-card__type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.news-card__type--lancamento {
  background: rgba(196, 30, 58, 0.2);
  color: var(--accent-bright);
}

.news-card__type--editorial {
  background: rgba(100, 149, 237, 0.15);
  color: #8eb4ff;
}

.news-card__type--decisao {
  background: rgba(218, 165, 32, 0.15);
  color: #e6c76a;
}

.news-card__type--feedback {
  background: rgba(144, 238, 144, 0.12);
  color: #9fdf9f;
}

.news-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card__title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-card__excerpt {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.news-card__body {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card__body p {
  margin-bottom: 0.85rem;
}

.news-card__body p:last-of-type {
  margin-bottom: 0;
}

.news-card__book-link,
.news-card__blog-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-bright);
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.news-card__book-link:hover,
.news-card__blog-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.news-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.news-card__tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.news-card__toggle {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.news-card__toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Blog (tema claro — leitura) ── */

body.blog-mode {
  background: #fafafa;
  color: #1a1a1a;
}

body.blog-mode .navbar {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.blog-mode .navbar.scrolled {
  background: rgba(250, 250, 250, 0.98);
}

body.blog-mode .navbar__wordmark {
  color: #8b0000;
  text-shadow: none;
}

body.blog-mode .navbar__tagline {
  color: #6b6b6b;
}

body.blog-mode .navbar__logo-wrap,
body.blog-mode .footer__logo-wrap {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

body.blog-mode .navbar__links a {
  color: #6b6b6b;
}

body.blog-mode .navbar__links a:hover,
body.blog-mode .navbar__links a.active {
  color: #1a1a1a;
}

body.blog-mode .navbar__search {
  color: #1a1a1a;
}

body.blog-mode .navbar__search:hover {
  background: rgba(0, 0, 0, 0.06);
}

body.blog-mode .footer {
  background: #fff;
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #6b6b6b;
}

body.blog-mode .footer__heading {
  color: #1a1a1a;
}

body.blog-mode .footer__brand {
  color: #8b0000;
}

.blog {
  padding: calc(var(--nav-height) + 2.5rem) clamp(1.25rem, 4vw, 2rem) 5rem;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
}

.blog-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-header__label {
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b0000;
  margin-bottom: 0.75rem;
}

.blog-header__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.blog-header__intro {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #4a4a4a;
  max-width: 540px;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 2rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  cursor: pointer;
  transition: opacity var(--transition);
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card:hover {
  opacity: 0.72;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: #6b6b6b;
}

.blog-card__meta time {
  font-variant-numeric: tabular-nums;
}

.blog-card__read {
  color: #999;
}

.blog-card__read::before {
  content: "·";
  margin-right: 1rem;
}

.blog-card__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.blog-card__excerpt {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a4a4a;
  margin-bottom: 0.85rem;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-card__tag {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6b6b6b;
}

/* ── Artigo individual ── */

.blog-article__back {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  color: #6b6b6b;
  padding: 0;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.blog-article__back:hover {
  color: #1a1a1a;
}

.blog-article__inner {
  max-width: 640px;
}

.blog-article__header {
  margin-bottom: 2.5rem;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: #6b6b6b;
}

.blog-article__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 0.65rem;
}

.blog-article__subtitle {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-article__tag {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6b6b6b;
}

.blog-article__body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #242424;
}

.blog-article__body p {
  margin-bottom: 1.35rem;
}

.blog-article__body p:last-child {
  margin-bottom: 0;
}

.blog-article__body em {
  font-style: italic;
}

.blog-article__body strong {
  font-weight: 600;
}

.blog-article__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-article__cta-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b6b6b;
  margin-bottom: 0.85rem;
}

.blog-article__books {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-article__book-link {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  color: #8b0000;
  transition: opacity var(--transition);
}

.blog-article__book-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .blog {
    padding-top: calc(var(--nav-height) + 3.5rem);
  }

  .blog-article__body {
    font-size: 1.1875rem;
  }
}
