/* Frete em Pauta — high-contrast-bw editorial */
:root {
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --ink: #0d0d0d;
  --ink-muted: #4a4a4a;
  --ink-faint: #737373;
  --line: #d4d4d4;
  --accent: #c8102e;
  --accent-hover: #a00d25;
  --accent-soft: #fce8ec;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(13, 13, 13, 0.08);
  --shadow-lg: 0 8px 40px rgba(13, 13, 13, 0.12);
  --radius: 6px;
  --radius-pill: 999px;
  --container: 1140px;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --header-h: 64px;
  --header-h-shrink: 52px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ——— Header: compact-topbar + sticky-shrink ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  height: var(--header-h);
  transition: height var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  height: var(--header-h-shrink);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
}

.logo:hover { color: var(--white); opacity: 0.9; }

.logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  transition: font-size var(--transition);
}

.site-header.is-shrunk .logo-mark { font-size: 1rem; }

.logo-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b0b0b0;
  transition: opacity var(--transition);
}

.site-header.is-shrunk .logo-tag { opacity: 0; height: 0; overflow: hidden; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition);
}

/* ——— Buttons: filled-accent ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* ——— Tags: pill-colored ——— */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.tag-red { background: var(--accent-soft); color: var(--accent); }
.tag-dark { background: var(--ink); color: var(--white); }
.tag-gray { background: #e8e8e8; color: var(--ink-muted); }

/* ——— Hero: split-image-text ——— */
.hero-split {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-split .grid-12 { align-items: center; }

.hero-content { grid-column: span 6; }

.hero-visual {
  grid-column: span 6;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 48ch;
  margin-bottom: 24px;
}

/* ——— 16:9 crop ——— */
.ratio-16-9 {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e0e0e0;
}

.ratio-16-9 img,
.ratio-16-9 svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Cards: shadowed ——— */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ——— Article list: horizontal-rows ——— */
.feed-section { padding: 40px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 { margin: 0; font-size: 1.25rem; }

.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.article-row:hover {
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
}

.article-row:hover .article-row-title { color: var(--accent); }

.article-row-thumb .ratio-16-9 { border-radius: var(--radius); }

.article-row-body { display: flex; flex-direction: column; justify-content: center; }

.article-row-meta {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.article-row-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  transition: color var(--transition);
}

.article-row-excerpt {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Sidebar: right-rail ——— */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.main-col { min-width: 0; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sidebar-links { list-style: none; padding: 0; margin: 0; }

.sidebar-links li { margin-bottom: 10px; }

.sidebar-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ——— Author: card-with-avatar ——— */
.author-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e8e8;
}

.author-avatar img,
.author-avatar svg { width: 100%; height: 100%; object-fit: cover; }

.author-info h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.author-role {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ——— Article: pull-quote-led ——— */
.article-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.article-header .grid-12 { align-items: end; }

.article-header-main { grid-column: span 8; }

.article-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.pull-quote {
  grid-column: span 4;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  margin: 0;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0;
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b0b0b0;
}

.article-body {
  font-size: 1rem;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 2em;
  font-size: 1.35rem;
}

.article-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-serif);
  font-style: italic;
}

.article-featured-img {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ——— Page content ——— */
.page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 { margin-bottom: 8px; }

.page-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

.page-content {
  padding: 32px 0 48px;
  max-width: 720px;
}

.page-content.wide { max-width: none; }

.prose h2 { margin-top: 1.8em; font-size: 1.2rem; }

/* ——— Contact form ——— */
.contact-form { max-width: 520px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ——— Footer: two-column ——— */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  color: #b0b0b0;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: #d4d4d4;
  text-decoration: none;
  line-height: 1.6;
}

.footer-col a:hover { color: var(--white); }

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 8px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 0.78rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Cookie: bottom-bar ——— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 16px 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-bar.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-text a { color: var(--white); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-actions .btn {
  padding: 8px 18px;
  font-size: 0.72rem;
}

.btn-cookie-accept { background: var(--accent); color: var(--white); }
.btn-cookie-decline { background: transparent; color: var(--white); border: 1px solid #555; }

/* ——— Utility ——— */
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-content,
  .hero-visual,
  .article-header-main,
  .pull-quote { grid-column: span 12; }

  .pull-quote { margin-top: 16px; }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar { order: 2; }

  .article-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-row-thumb { max-width: 280px; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .site-header.is-shrunk .main-nav { top: var(--header-h-shrink); }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .cookie-inner { flex-direction: column; align-items: stretch; }
}
