/* Horizonte Brasil — risebr.info
   local-newspaper · mixed-newsroom · muted-green · tight · sharp */

:root {
  --primary: #2D4A3E;
  --accent: #5A7D6A;
  --bg: #F3F6F2;
  --text: #1A2E24;
  --muted: #6B8577;
  --white: #ffffff;
  --surface: #ffffff;
  --border: #C5D4CA;
  --border-strong: #9BB0A3;
  --overlay: rgba(26, 46, 36, 0.68);
  --quote-bg: #E8EFE9;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1.25rem;
  --space-xl: 2rem;
  --space-2xl: 2.75rem;
  --radius: 0;
  --container: 1140px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-tight: 1.22;
  --line-body: 1.6;
  --line-prose: 1.72;
  --ease: 0.2s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease);
}

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

ul, ol { list-style: none; }

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

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--primary);
}

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

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.col-8 { grid-column: span 12; }
.col-4 { grid-column: span 12; }
.col-6 { grid-column: span 12; }

@media (min-width: 768px) {
  .col-8 { grid-column: span 8; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
}

.section { padding: var(--space-xl) 0; }
.section--tight { padding: var(--space-lg) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); }

.section__header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

.section__title {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

.text-muted { color: var(--muted); font-size: 0.875rem; }
.mt-lg { margin-top: var(--space-lg); }

/* Double-row header — sticky shrink */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.site-header.is-shrunk {
  box-shadow: 0 2px 8px rgba(45, 74, 62, 0.12);
}

.header-row-top {
  background: var(--primary);
  color: var(--white);
}

.header-row-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
  transition: padding var(--ease);
}

.site-header.is-shrunk .header-row-top-inner {
  padding: var(--space-sm) 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--ease);
}

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

.brand-lockup img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: width var(--ease), height var(--ease);
}

.site-header.is-shrunk .brand-lockup img {
  width: 26px;
  height: 26px;
}

.brand-lockup__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  transition: font-size var(--ease);
}

.site-header.is-shrunk .brand-lockup__name {
  font-size: 1.125rem;
}

.brand-lockup__tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-top: 2px;
}

.site-header.is-shrunk .brand-lockup__tagline {
  display: none;
}

.header-meta {
  font-size: 0.75rem;
  text-align: right;
  line-height: 1.4;
}

.header-meta time {
  display: block;
  font-weight: 600;
}

.header-row-bottom {
  background: var(--surface);
  overflow: hidden;
  max-height: 48px;
  transition: max-height var(--ease), opacity var(--ease);
}

.site-header.is-shrunk .header-row-bottom {
  max-height: 0;
  opacity: 0;
}

.header-row-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.nav-primary {
  display: flex;
  gap: var(--space-lg);
}

.nav-primary a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  gap: var(--space-sm);
}

.mobile-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: var(--space-sm) 0;
}

.mobile-nav.is-open { display: flex; }

@media (max-width: 767px) {
  .nav-primary { display: none; }
  .menu-toggle { display: flex; }
  .header-meta { display: none; }
}

/* Hero — full-width image + overlay */
.hero-featured {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-featured__media {
  position: absolute;
  inset: 0;
}

.hero-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.hero-featured__overlay {
  position: relative;
  width: 100%;
  background: linear-gradient(to top, var(--overlay) 0%, rgba(26, 46, 36, 0.35) 55%, transparent 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-featured__content {
  color: var(--white);
}

.hero-featured__content h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  max-width: 720px;
}

.hero-featured__excerpt {
  font-size: 1.0625rem;
  line-height: var(--line-prose);
  max-width: 600px;
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.hero-featured__content a:not(.btn) {
  color: var(--white);
}

/* Tags — uppercase-small */
.tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.tag--light {
  color: rgba(255, 255, 255, 0.9);
}

.tag--on-dark {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  color: var(--white);
}

/* Inline byline */
.byline {
  font-size: 0.8125rem;
  color: var(--muted);
}

.byline--light {
  color: rgba(255, 255, 255, 0.85);
}

.byline time {
  font-style: normal;
}

/* Buttons — outlined */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: background var(--ease), color var(--ease);
  border-radius: var(--radius);
}

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

.btn--light {
  border-color: var(--white);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--primary);
}

/* Horizontal-thumb cards */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-h {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.card-h:last-child { border-bottom: none; }

.card-h__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--border);
}

.card-h__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-h__title {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}

.card-h__title a {
  text-decoration: none;
  color: var(--primary);
}

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

.card-h__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: var(--line-body);
  margin-bottom: var(--space-sm);
}

/* Magazine columns feed */
.magazine-columns {
  column-count: 1;
  column-gap: var(--space-lg);
}

@media (min-width: 900px) {
  .magazine-columns { column-count: 2; }
}

.magazine-columns .card-h {
  break-inside: avoid;
  margin-bottom: var(--space-md);
}

/* Sidebar right-rail */
.sidebar-widget {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.sidebar-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-widget__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.pick-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.pick-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pick-item__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--border-strong);
  line-height: 1;
  flex-shrink: 0;
}

.pick-item__title {
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.pick-item__title a {
  text-decoration: none;
  color: var(--primary);
}

.recent-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.recent-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-item a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
}

.recent-item time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

/* Prose */
.prose {
  line-height: var(--line-prose);
  max-width: 68ch;
}

.prose p { margin-bottom: var(--space-md); }

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.prose ul, .prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li { margin-bottom: var(--space-xs); }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--quote-bg);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary);
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: var(--line-prose);
}

/* Article — sidebar layout */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-header h1 { margin-bottom: var(--space-sm); }

.article-layout {
  padding: var(--space-xl) 0;
}

.article-layout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .article-layout__grid {
    grid-template-columns: 1fr 280px;
  }
}

.article-main__header {
  margin-bottom: var(--space-lg);
}

.article-main__title {
  margin-bottom: var(--space-sm);
}

.article-updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

.article-figure {
  margin: var(--space-lg) 0;
  border: 1px solid var(--border);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-figure figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
}

.article-sidebar {
  order: -1;
}

@media (min-width: 900px) {
  .article-sidebar { order: 1; }
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.toc__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.toc ol {
  list-style: decimal;
  padding-left: var(--space-lg);
  font-size: 0.8125rem;
}

.toc li { margin-bottom: var(--space-xs); }

.toc a {
  text-decoration: none;
  color: var(--text);
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.author-box {
  border: 1px solid var(--border);
  padding: var(--space-md);
  background: var(--surface);
}

.author-box__header {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.author-box__inner {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.author-box__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.author-box__role {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.author-box__bio {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: var(--line-body);
}

.related-articles {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--primary);
}

.related-articles h2 {
  font-size: 1rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

/* Articles listing */
.articles-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  border-radius: var(--radius);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* About team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.team-card {
  border: 1px solid var(--border);
  padding: var(--space-md);
  background: var(--surface);
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

.team-card__name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.team-card__role {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.team-card__bio {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Footer — editorial masthead */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  margin-top: auto;
}

.footer-masthead {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.footer-masthead__brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.footer-masthead__tagline {
  font-size: 0.875rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  line-height: var(--line-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Cookie bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: var(--space-md) var(--space-lg);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 16px rgba(45, 74, 62, 0.1);
}

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

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

.cookie-bar p {
  font-size: 0.8125rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-bar a { color: var(--primary); }
