/* ==========================================================================
   O Tabaquista — Crônicas de Tabacaria
   Folha de estilo principal
   Baseado no arquivo Figma "O Tabaquista" (BB2aLWjX4unU4GoTW8RKg9)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (variáveis do Figma)
   -------------------------------------------------------------------------- */
:root {
  /* Cores */
  --color-paper: #ede3ce;
  --color-paper-2: #e3d6b8;
  --color-wood: #3b2419;
  --color-wood-2: #2a1810;
  --color-ink: #241811;
  --color-ink-soft: #5a4630;
  --color-leather: #6b2737;
  --color-brass: #8c6423;
  --color-brass-soft: #b8863b;
  --color-on-wood: #ede3ce;
  --color-on-wood-soft: #c9b79a;
  --color-rule: #241811;

  /* Cores do painel administrativo */
  --color-admin-bg: #f7f3e9;
  --color-surface: #fdfbf5;
  --color-border: #e4d9be;
  --color-border-strong: #d3c39c;
  --color-success: #4f6b45;
  --color-success-bg: #e3e9da;
  --color-draft: #8c6423;
  --color-draft-bg: #f0e6c8;
  --color-danger: #8a2e2e;
  --color-archived-bg: #e9e4d8;

  /* Cores literais do design */
  --color-on-leather: #f3e9d8;
  --color-on-brass: #1c0f0a;
  --color-on-brass-2: #080503;
  --color-field: #080403;
  --color-quote: #ede0c8;

  /* Tipografia */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Layout */
  --gutter: 64px;
  --radius-card: 6px;
  --radius-sm: 3px;
  --radius-pill: 20px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Utilitário de tipografia display (Fraunces com eixos SOFT/WONK) */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2b. Masthead — wordmark completo (Figma 21:81 "Logo — Lockup Completo")
   -------------------------------------------------------------------------- */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px var(--gutter);
  /* A cor continua como fundo de base: aparece enquanto a imagem carrega e
     emenda com ela nas bordas, sem risco de faixa vazia. */
  background-color: var(--color-paper);
  background-image: url("../assets/masthead-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Véu no centro: a ilustração tem cachimbo e charutos nas pontas e papel
   liso no meio. Isto clareia justamente o miolo, garantindo que o logotipo
   e os textos nunca disputem espaço com o desenho, em qualquer largura de
   tela. As pontas ficam intactas. */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  /* A elipse é larga de propósito: o lockup do logotipo tem ~1020px, mais
     do que o miolo liso da ilustração em telas comuns. Assim a arte só
     aparece de fato para fora do logotipo, e nunca por baixo dele. */
  background: radial-gradient(
    ellipse 74% 88% at 50% 50%,
    rgba(237, 227, 206, 0.96) 0%,
    rgba(237, 227, 206, 0.9) 55%,
    rgba(237, 227, 206, 0) 100%
  );
  pointer-events: none;
}

.masthead__lockup {
  position: relative; /* acima do véu */
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 100%;
}

.masthead__mark {
  flex-shrink: 0;
  width: auto;
  height: 220px;
}

.masthead__wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 760px;
  max-width: 100%;
}

.masthead__top {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.masthead__o {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 34px;
  line-height: normal;
  color: var(--color-wood);
}

.masthead__rule {
  flex: 1 0 0;
  min-width: 1px;
  height: 1.5px;
  background-color: var(--color-brass-soft);
}

.masthead__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 92px;
  line-height: normal;
  letter-spacing: 0.92px;
  color: var(--color-wood);
}

.masthead__categories {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.masthead__categories span {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 15.5px;
  line-height: normal;
  letter-spacing: 1.55px;
  color: var(--color-ink);
  white-space: nowrap;
}

.masthead__categories img {
  flex-shrink: 0;
}

.masthead__tagline-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.masthead__tagline-rule {
  flex: 1 0 0;
  min-width: 1px;
  height: 1px;
  background-color: var(--color-brass-soft);
}

.masthead__tagline {
  flex-shrink: 0;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14.5px;
  line-height: normal;
  letter-spacing: 1.16px;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .masthead {
    padding: 40px var(--gutter) 32px;
  }

  .masthead__lockup {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .masthead__mark {
    height: 96px;
  }

  .masthead__wordmark {
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .masthead__top {
    justify-content: center;
  }

  .masthead__title {
    text-align: center;
  }

  .masthead__categories {
    justify-content: center;
  }

  .masthead__o {
    font-size: 22px;
  }

  .masthead__title {
    font-size: 44px;
    letter-spacing: 0.44px;
  }

  .masthead__categories span {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .masthead__tagline-row {
    gap: 10px;
  }

  .masthead__tagline {
    font-size: 11px;
    letter-spacing: 0.8px;
    white-space: normal;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px var(--gutter);
  background-color: var(--color-wood);
  overflow: hidden;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.site-nav a {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: normal;
  color: var(--color-on-wood-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-on-wood);
}

.nav-toggle {
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle img {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   4. Hero (Home)
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 72px var(--gutter) 64px;
  background-color: var(--color-paper-2);
  overflow: hidden;
}

.hero__copy {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero__eyebrow {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: 15.5px;
  line-height: normal;
  color: var(--color-leather);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 52px;
  line-height: 1.06;
  color: var(--color-ink);
  width: 100%;
}

.hero__title em {
  font-style: italic;
  color: var(--color-leather);
}

.hero__lead {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  color: var(--color-ink-soft);
  width: 520px;
  max-width: 100%;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  border-radius: var(--radius-card);
  background-color: var(--color-paper);
  overflow: hidden;
}

.hero__art img {
  width: 220px;
  height: 220px;
}

.hero__art--photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Botões e links de ação */
.btn-primary {
  display: inline-flex;
  align-items: flex-start;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background-color: var(--color-leather);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 15.5px;
  line-height: normal;
  color: var(--color-on-leather);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #5a2030;
}

.link-soft {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: normal;
  color: var(--color-ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link-soft:hover,
.link-soft:focus-visible {
  border-bottom-color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   5. Seção de artigos
   -------------------------------------------------------------------------- */
.articles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding: var(--gutter);
  background-color: var(--color-paper);
  overflow: hidden;
}

.articles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.articles__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  white-space: nowrap;
}

.articles__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 30px;
  line-height: normal;
  color: var(--color-ink);
}

.articles__subtitle {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--color-ink-soft);
}

/* Filtros */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  /* Contorno interno, como o stroke "inside" do Figma */
  box-shadow: inset 0 0 0 1px var(--color-ink);
  background-color: var(--color-paper);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 13.5px;
  line-height: normal;
  color: var(--color-ink-soft);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter:hover {
  background-color: var(--color-paper-2);
}

.filter.is-active {
  box-shadow: inset 0 0 0 1px var(--color-leather);
  background-color: var(--color-leather);
  color: var(--color-on-leather);
}

/* --------------------------------------------------------------------------
   6. Cards de post
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.post-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-card);
  background-color: var(--color-paper-2);
  overflow: hidden;
}

.post-card__tag {
  display: inline-flex;
  align-items: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-brass-soft);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: normal;
  color: var(--color-on-brass);
  white-space: nowrap;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.article-tags li {
  padding: 5px 12px;
  border-radius: 20px;
  background-color: var(--color-brass-soft);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--color-on-brass);
  white-space: nowrap;
}

.article-tags[hidden] {
  display: none;
}

.post-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  line-height: 1.24;
  color: var(--color-ink);
  width: 100%;
}

.post-card__excerpt {
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink-soft);
  width: 100%;
}

.post-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
}

.post-card__author {
  font-family: var(--font-text);
  font-weight: 500;
  color: var(--color-ink-soft);
}

.post-card__time {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  color: var(--color-brass);
}

.post-card__rule {
  width: 100%;
  height: 1px;
  background-color: var(--color-rule);
  opacity: 0.18;
}

.post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  font-family: var(--font-text);
  font-weight: 500;
  line-height: normal;
  color: var(--color-leather);
  white-space: nowrap;
}

.post-card__cta img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.post-card__cta:hover img,
.post-card__cta:focus-visible img {
  transform: translateX(3px);
}

/* Card em destaque */
.post-card--feature {
  width: 100%;
}

.post-card--feature .post-card__media {
  height: 380px;
}

.post-card--feature .post-card__media img {
  width: 90px;
  height: 90px;
}

.post-card__media--photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.post-card--feature .post-card__title {
  font-size: 30px;
}

.post-card--feature .post-card__excerpt {
  font-size: 17px;
}

.post-card--feature .post-card__cta {
  font-size: 15.5px;
}

/* Grade de cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 32px 28px;
  width: 100%;
}

.post-card--standard {
  width: 410px;
}

.post-card--standard .post-card__media {
  height: 230px;
}

.post-card--standard .post-card__media img {
  width: 56px;
  height: 56px;
}

.post-card--standard .post-card__title {
  font-size: 22px;
}

.post-card--standard .post-card__excerpt {
  font-size: 15.5px;
}

.post-card--standard .post-card__cta {
  font-size: 14.5px;
}

.post-card.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Citação de intervalo
   -------------------------------------------------------------------------- */
.breaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 80px var(--gutter);
  background-color: var(--color-wood);
  overflow: hidden;
}

.breaker__icon {
  width: 56px;
  height: 56px;
}

.breaker__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 28px;
  line-height: 1.45;
  text-align: center;
  color: var(--color-quote);
  width: 760px;
  max-width: 100%;
}

.breaker__source {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 14.5px;
  line-height: normal;
  color: var(--color-on-wood-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--color-wood-2);
  overflow: hidden;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 48px var(--gutter);
}

.newsletter__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  white-space: nowrap;
}

.newsletter__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 26px;
  line-height: normal;
  color: var(--color-on-wood);
}

.newsletter__text {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 15px;
  line-height: normal;
  color: var(--color-on-wood-soft);
}

.newsletter__signup {
  position: relative;
}

.newsletter__form {
  display: flex;
  align-items: center;
}

.newsletter__input {
  width: 260px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background-color: var(--color-field);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 14.5px;
  line-height: normal;
  color: var(--color-on-wood);
}

.newsletter__input::placeholder {
  color: var(--color-on-wood-soft);
  opacity: 1;
}

.newsletter__input:focus {
  outline: 1px solid var(--color-brass-soft);
  outline-offset: -1px;
}

.newsletter__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background-color: var(--color-brass-soft);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14.5px;
  line-height: normal;
  color: var(--color-on-brass-2);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.newsletter__button:hover,
.newsletter__button:focus-visible {
  background-color: #a3742f;
}

/* Não interfere na altura da linha desenhada no Figma */
.newsletter__feedback {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  font-family: var(--font-text);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-brass-soft);
}

.colophon {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 22px var(--gutter);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 13px;
  line-height: normal;
  color: var(--color-on-wood-soft);
  white-space: nowrap;
}

.site-footer--slim .colophon {
  padding: 26px var(--gutter);
}

/* --------------------------------------------------------------------------
   9. Página de artigo
   -------------------------------------------------------------------------- */
.article-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 52px var(--gutter) 8px;
  overflow: hidden;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 14.5px;
  line-height: normal;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.back-link img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.back-link:hover img,
.back-link:focus-visible img {
  transform: translateX(-3px);
}

.article-head__tag {
  display: inline-flex;
  align-items: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-brass-soft);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 12px;
  line-height: normal;
  color: var(--color-on-brass);
  white-space: nowrap;
}

.article-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 46px;
  line-height: 1.12;
  color: var(--color-ink);
  width: 760px;
  max-width: 100%;
}

.article-meta {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  white-space: nowrap;
}

.article-meta__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.article-meta__label {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
  line-height: normal;
  color: var(--color-brass);
}

.article-meta__value {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 14px;
  line-height: normal;
  color: var(--color-ink-soft);
}

.article-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--gutter) 8px;
  overflow: hidden;
}

.article-figure__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-card);
  background-color: var(--color-paper-2);
  overflow: hidden;
}

.article-figure__inner img {
  width: 120px;
  height: 120px;
}

.article-figure__inner--photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.article-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px var(--gutter);
  overflow: hidden;
}

.article-body__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  width: 820px;
  max-width: 100%;
}

.article-body p {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--color-ink);
  width: 100%;
}

.article-body p .dropcap {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 42px;
  /* Reproduz os 126px do parágrafo no Figma: 1ª linha mais alta, demais normais */
  line-height: 1.48;
  color: var(--color-leather);
}

.pullquote {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-left: 26px;
  border-left: 3px solid var(--color-brass-soft);
}

.pullquote p {
  flex: 1 0 0;
  min-width: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 24px;
  line-height: 1.45;
  color: var(--color-wood);
}

/* Outras leituras */
.related {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 36px var(--gutter) var(--gutter);
  overflow: hidden;
}

.unsubscribe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.unsubscribe__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-ink);
}

.unsubscribe__text {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.comments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
}

.comments[hidden] {
  display: none;
}

.comments__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-ink);
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comments__item {
  padding: 14px 18px;
  border-radius: var(--radius-card);
  background-color: var(--color-paper-2);
}

.comments__item-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.comments__item-name {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
}

.comments__item-time {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--color-ink-soft);
}

.comments__item-body {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-ink);
}

.comments__empty {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--color-ink-soft);
}

.comments__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-card);
  background-color: var(--color-paper-2);
}

.comments__form-title {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-ink);
}

.comments__form-row {
  display: flex;
  gap: 10px;
}

.comments__form input,
.comments__form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--color-border);
  background-color: #ffffff;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--color-ink);
}

.comments__form textarea {
  resize: vertical;
}

.comments__form .btn-primary {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.comments__feedback {
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--color-ink-soft);
}

.related__title {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  color: var(--color-brass);
  white-space: nowrap;
}

.related__grid {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}

.related-card {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.related-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-card);
  background-color: var(--color-paper-2);
  overflow: hidden;
}

.related-card__media img {
  width: 44px;
  height: 44px;
}

.related-card__media--photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.related-card__tag {
  display: inline-flex;
  align-items: flex-start;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background-color: var(--color-brass-soft);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 11px;
  line-height: normal;
  color: var(--color-on-brass);
  white-space: nowrap;
}

.related-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 17px;
  line-height: 1.26;
  color: var(--color-ink);
  width: 100%;
}

.related-card__time {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
  line-height: normal;
  color: var(--color-brass);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Foco acessível
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-brass-soft);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. Responsivo
   -------------------------------------------------------------------------- */

/* Telas médias — mantém o desenho desktop, reduz o gutter */
@media (max-width: 1439px) {
  :root {
    --gutter: 40px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-card--standard {
    width: auto;
  }
}

@media (max-width: 1100px) {
  .hero {
    gap: 40px;
  }

  .hero__art {
    width: 340px;
    height: 340px;
  }

  .hero__art img {
    width: 180px;
    height: 180px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .filters {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__art {
    width: 100%;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .newsletter__copy {
    white-space: normal;
  }

  .related__grid {
    flex-wrap: wrap;
  }

  .related-card {
    flex: 1 0 260px;
  }
}

/* Mobile — conforme frame "O Tabaquista — Home (Mobile)" (390px) */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  /* Header */
  .site-header {
    padding: 14px var(--gutter);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px var(--gutter);
    background-color: var(--color-wood);
    box-shadow: 0 12px 24px rgba(36, 24, 17, 0.28);
  }

  .site-header {
    position: relative;
  }

  .site-nav[hidden] {
    display: none;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 36px var(--gutter) 32px;
  }

  .hero__copy {
    gap: 18px;
    width: 100%;
  }

  .hero__eyebrow {
    font-size: 14px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero__lead {
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .btn-primary {
    justify-content: center;
    padding: 13px 22px;
    font-size: 15px;
  }

  .link-soft {
    text-align: center;
  }

  .hero__art {
    width: 100%;
    height: 260px;
  }

  .hero__art img {
    width: 150px;
    height: 150px;
  }

  /* Artigos */
  .articles {
    gap: 28px;
    padding: 32px var(--gutter);
  }

  .articles__heading {
    white-space: normal;
  }

  .articles__title {
    font-size: 22px;
  }

  .articles__subtitle {
    font-size: 15px;
  }

  .card-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .post-card {
    gap: 10px;
    width: 100%;
  }

  .post-card--feature .post-card__media {
    height: 220px;
  }

  .post-card--feature .post-card__media img {
    width: 64px;
    height: 64px;
  }

  .post-card--feature .post-card__title {
    font-size: 24px;
  }

  .post-card--feature .post-card__excerpt {
    font-size: 15px;
  }

  .post-card--standard .post-card__media {
    height: 180px;
  }

  .post-card--standard .post-card__media img {
    width: 48px;
    height: 48px;
  }

  .post-card--standard .post-card__title {
    font-size: 20px;
    line-height: 1.26;
  }

  .post-card--standard .post-card__excerpt {
    font-size: 15px;
  }

  /* Citação */
  .breaker {
    padding: 56px var(--gutter);
    gap: 20px;
  }

  .breaker__quote {
    width: 100%;
    font-size: 21px;
  }

  /* Footer */
  .newsletter {
    padding: 36px var(--gutter);
  }

  .newsletter__title {
    font-size: 22px;
  }

  .newsletter__form {
    width: 100%;
  }

  .newsletter__input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .colophon,
  .site-footer--slim .colophon {
    flex-direction: column;
    gap: 8px;
    padding: 22px var(--gutter);
    white-space: normal;
  }

  /* Artigo */
  .article-head {
    padding: 32px var(--gutter) 8px;
    gap: 18px;
  }

  .article-head__title {
    width: 100%;
    font-size: 30px;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 20px 28px;
  }

  .article-figure {
    padding: 24px var(--gutter) 8px;
  }

  .article-figure__inner {
    height: 240px;
  }

  .article-figure__inner img {
    width: 80px;
    height: 80px;
  }

  .article-body {
    padding: 24px var(--gutter);
  }

  .article-body__inner {
    gap: 22px;
  }

  .article-body p {
    font-size: 17px;
  }

  .article-body p .dropcap {
    font-size: 36px;
  }

  .pullquote {
    padding-left: 18px;
  }

  .pullquote p {
    font-size: 20px;
  }

  .related {
    padding: 28px var(--gutter) 40px;
  }

  .related__grid {
    flex-direction: column;
    gap: 24px;
  }

  .related-card {
    flex: 1 1 auto;
    width: 100%;
  }
}
