/* Camada — muted-green editorial, 960px container, 12-col grid */

:root {
  --green-900: #2f4a3d;
  --green-700: #4a6b5c;
  --green-500: #6b8f7a;
  --green-300: #a8c4b4;
  --green-100: #e8f0eb;
  --green-50: #f4f8f6;
  --text: #2a3230;
  --text-muted: #5c6b64;
  --border: #d4e0d8;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 960px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --header-height: 72px;
  --header-shrink: 52px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--green-50);
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); text-decoration: underline; }

.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 — logo-left-nav-right, sticky shrink */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.is-shrunk {
  box-shadow: 0 2px 12px rgba(47, 74, 61, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition);
}

.site-header.is-shrunk .header-inner {
  height: var(--header-shrink);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-900);
}

.logo-link:hover { text-decoration: none; }

.logo-mark {
  width: 36px;
  height: 36px;
  transition: width var(--transition), height var(--transition);
}

.site-header.is-shrunk .logo-mark {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: font-size var(--transition);
}

.site-header.is-shrunk .logo-text { font-size: 1.25rem; }

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-700);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--green-700);
}

/* Hero — stacked headlines, no image */
.hero-stacked {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-500);
  margin-bottom: 12px;
}

.hero-stacked h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 16px;
  max-width: 18ch;
}

.hero-stacked .hero-deck {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 24px;
  line-height: 1.5;
}

.hero-stacked .hero-secondary {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--green-700);
  margin: 0;
  font-weight: 400;
}

.hero-stacked .hero-secondary a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--green-300);
}

.hero-stacked .hero-secondary a:hover {
  color: var(--green-900);
  border-color: var(--green-500);
}

/* Section titles */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-300);
}

/* Horizontal thumb cards */
.card-row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

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

.card-thumb {
  flex: 0 0 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-100);
}

.card-thumb img,
.card-thumb svg {
  width: 140px;
  height: 100px;
  object-fit: cover;
}

.card-body { flex: 1; min-width: 0; }

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-body h2,
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 700;
}

.card-body h2 a,
.card-body h3 a {
  color: var(--green-900);
  text-decoration: none;
}

.card-body h2 a:hover,
.card-body h3 a:hover { color: var(--green-700); }

.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Lead story on homepage */
.lead-story {
  grid-column: span 8;
  margin-bottom: 16px;
}

.lead-story .card-row {
  border: none;
  padding: 0;
}

.lead-story .card-thumb {
  flex: 0 0 220px;
}

.lead-story .card-thumb img,
.lead-story .card-thumb svg {
  width: 220px;
  height: 160px;
}

.lead-story h2 { font-size: 1.65rem; }

.article-list {
  grid-column: span 8;
}

/* Sidebar — author widget only */
.sidebar {
  grid-column: span 4;
}

.author-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.site-header.is-shrunk ~ main .author-widget {
  top: calc(var(--header-shrink) + 24px);
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: var(--green-100);
}

.author-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--green-900);
}

.author-role {
  font-size: 0.8rem;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.55;
}

.author-contact {
  font-size: 0.85rem;
}

/* Article — split content rail */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0 60px;
}

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

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 16px;
}

.article-byline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-byline strong { color: var(--text); }

.article-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--green-100);
}

.article-featured-img img,
.article-featured-img svg {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.article-body p {
  margin: 0 0 1.25em;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--green-900);
  margin: 2em 0 0.75em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.article-body li { margin-bottom: 0.4em; }

.article-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.related-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--green-300);
}

.related-block h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 16px;
}

/* Static pages */
.page-content {
  padding: 48px 0 60px;
  max-width: 680px;
}

.page-content.wide { max-width: var(--container); }

.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green-900);
  margin: 0 0 12px;
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-900);
  margin: 2em 0 0.75em;
}

.page-content p { margin: 0 0 1.1em; }

.page-content ul { margin: 0 0 1.1em; padding-left: 1.4em; }

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--white);
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--green-900);
  color: var(--white);
  text-decoration: none;
}

/* Footer — stacked links */
.site-footer {
  background: var(--green-900);
  color: var(--green-300);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 28px;
  max-width: 36ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--green-300);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.footer-bottom {
  font-size: 0.8rem;
  color: var(--green-500);
  padding-top: 24px;
  border-top: 1px solid rgba(168, 196, 180, 0.25);
}

/* Cookie bottom bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(47, 74, 61, 0.1);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.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 {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 200px;
}

.cookie-text a { color: var(--green-700); }

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

.cookie-actions .btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--green-500);
}

.cookie-actions .btn-outline:hover {
  background: var(--green-100);
  color: var(--green-900);
}

body.cookie-visible { padding-bottom: 80px; }

/* Articles listing page */
.articles-page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.articles-page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green-900);
  margin: 0 0 8px;
}

/* Abstract editorial decoration */
.editorial-accent {
  width: 48px;
  height: 4px;
  background: var(--green-500);
  border-radius: 2px;
  margin-bottom: 20px;
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 16px 20px;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 14px;
  }

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

  .lead-story,
  .article-list,
  .sidebar { grid-column: span 1; }

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

  .author-widget { position: static; }

  .card-row { flex-direction: column; }

  .card-thumb,
  .lead-story .card-thumb { flex: none; width: 100%; }

  .card-thumb img,
  .card-thumb svg,
  .lead-story .card-thumb img,
  .lead-story .card-thumb svg {
    width: 100%;
    height: 180px;
  }

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