/* ==========================================================================
   Editorial layer — kartom.net
   Carregado depois de main.css / wordpress.css. Substitui a estética de
   landing page de vendas por uma leitura de blog: papel, tinta e tipografia.
   ========================================================================== */

:root {
  --red: #8e2b2b;
  --red-dark: #6d1f1f;
  --red-soft: #f4eae8;
  --yellow: #c9a227;
  --yellow-soft: #f7f1e1;
  --ink: #1d1c1a;
  --ink-soft: #3a3835;
  --muted: #6e6a63;
  --cream: #fbfaf7;
  --cream-deep: #f3f0e9;
  --paper: #ffffff;
  --line: #e4dfd5;
  --line-strong: #ccc4b5;
  --green: #1f7a4a;
  --green-dark: #16603a;
  --shadow-sm: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-md: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-lg: 0 0 0 rgba(0, 0, 0, 0);
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
}

body { background: var(--cream); }
h1, h2, h3, h4 { text-wrap: balance; }
.container { max-width: 1120px; }

/* Header
   ========================================================================== */
.site-header { background: #fff; backdrop-filter: none; }
.header__inner { min-height: 72px; }
.nav__list { gap: 20px; }
.nav__link { font-size: 13px; letter-spacing: .01em; }
.nav__link::after { height: 1px; background: var(--ink); }
.icon-btn {
  width: 38px; height: 38px; border: 0; border-radius: 2px;
  background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--cream-deep); border-color: transparent; color: var(--ink); }

/* Buttons
   ========================================================================== */
.btn {
  border-radius: 2px; min-height: 42px; padding: 11px 18px;
  font-size: 14px; box-shadow: none;
}
.btn:hover { transform: none; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn--primary:hover { background: #000; color: #fff; box-shadow: none; }
.btn--whatsapp { background: var(--ink); color: #fff; }
.btn--whatsapp:hover { background: #000; color: #fff; }
.btn--ghost { border-color: var(--line-strong); }
.btn--quiet { border-color: var(--line-strong); font-weight: 600; }

/* Search
   ========================================================================== */
form.search {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
  box-shadow: none; padding: 4px 4px 4px 14px; margin: 26px 0 0; max-width: 480px;
}
.search__input { font-size: 14px; padding: 8px 0; }
.search__btn { min-height: 36px; padding: 8px 14px; background: var(--ink); color: #fff; }

/* Masthead
   ========================================================================== */
.masthead { background: #fff; border-bottom: 1px solid var(--line); padding: 60px 0 52px; }
.masthead__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.masthead__title {
  font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 600; color: var(--ink);
  max-width: 780px;
}
.masthead__lead {
  margin-top: 16px; font-size: 17px; line-height: 1.65;
  color: var(--muted); max-width: 600px;
}

/* Home layout
   ========================================================================== */
.home-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px; padding: 56px 24px 84px;
}
.feed__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px;
}
.feed__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.feed__link {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
}
.feed__link:hover { color: var(--red); }

.post-list { display: grid; }
.post-item {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-item__thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: 2px;
}
.post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.post-item__cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}
.post-item__title {
  font-family: var(--font-display); font-size: 26px; line-height: 1.15;
  letter-spacing: -.02em; font-weight: 600;
}
.post-item__title a { color: var(--ink); }
.post-item__title a:hover { color: var(--red); }
.post-item__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.post-item__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}

/* Sidebar
   ========================================================================== */
.home-side { display: flex; flex-direction: column; }
.side-block { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; margin-bottom: 0; }
.side-block__title {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 12px;
}
.side-block p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.side-block__link {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.side-list { list-style: none; display: grid; gap: 9px; }
.side-list a { font-size: 14px; color: var(--ink); }
.side-list a:hover { color: var(--red); }

/* Neutralize the old colorful components on archive/search/single
   ========================================================================== */
.post-card { border-radius: 2px; box-shadow: none; }
.post-card:hover { transform: none; box-shadow: none; }
.post-card:hover .post-card__media img { transform: none; }
.post-card__cat,
.post-card__cat--yellow,
.post-card__cat--green,
.post-card__cat--blue {
  background: transparent !important; color: var(--red) !important;
  padding: 0 !important; border-radius: 0 !important;
}
.category-card { border-radius: 2px; }
.category-card:hover { transform: none; box-shadow: none; }
.category-card:nth-child(n) .category-card__icon { background: var(--cream-deep); color: var(--ink); }
.newsletter { background: var(--ink); border-radius: 2px; box-shadow: none; }
.newsletter__form { border-radius: 2px; }
.newsletter p { color: #d8d2c8; }
.article__hero-img { border-radius: 2px; box-shadow: none; }
.author-box__avatar { border-color: var(--line-strong); }
.empty-state { border-radius: 2px; box-shadow: none; }

/* Footer
   ========================================================================== */
.site-footer { background: #171615; margin-top: 0; }
.footer__brandmark { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; }
.footer__brandmark img { height: 30px; width: auto; }
.footer__brandmark span {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -.03em; color: #fff;
}
.footer__brandmark .footer__tld { color: #9a938a; font-weight: 500; }
.footer__list a:hover,
.footer__contact a:hover,
.footer__legal a:hover { color: #fff; }
.footer__social a:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Reading pages
   ========================================================================== */
.archive-header { padding-top: 48px; }
.archive-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.article__title { letter-spacing: -.03em; }
.article__content { font-size: 17.5px; }
.article__content h2 { margin-top: 2em; }
.article__content h3 { margin-top: 1.6em; }

/* The sales floating button does not belong on a blog
   ========================================================================== */
.whatsapp-float { display: none !important; }

/* Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .home-layout { grid-template-columns: 1fr; gap: 40px; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
}

@media (max-width: 760px) {
  .masthead { padding: 42px 0 38px; }
  .home-layout { padding: 40px 18px 56px; }
  .post-item { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .post-item__title { font-size: 21px; }
  .home-side { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .post-item { grid-template-columns: 1fr; }
  .post-item__thumb { aspect-ratio: 16 / 9; }
}
