/* Aporte — investinfo.click | business-digest, deep green + warm gray */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --green-deep: #1a3d32;
  --green-mid: #2d5a4a;
  --green-soft: #3d7562;
  --green-pale: #e8f0ec;
  --gray-warm: #6b6560;
  --gray-light: #a39e98;
  --gray-bg: #f5f3f0;
  --gray-surface: #faf9f7;
  --text: #2a2826;
  --text-muted: #6b6560;
  --bg: var(--gray-bg);
  --surface: #ffffff;
  --border: #e0dbd5;
  --accent: var(--green-mid);
  --accent-light: #4a8f75;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(26, 61, 50, 0.08);
  --shadow-hover: 0 10px 32px rgba(26, 61, 50, 0.14);
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1240px;
  --gap: 1.25rem;
  --transition: 0.22s ease;
}

[data-theme="dark"] {
  --text: #eceae7;
  --text-muted: #a8a29e;
  --bg: #141816;
  --surface: #1e2421;
  --border: #2f3834;
  --gray-bg: #141816;
  --gray-surface: #1e2421;
  --green-pale: #1a2e28;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-deep);
}

[data-theme="dark"] a:hover {
  color: var(--accent-light);
}

h1, h2, h3, .site-logo {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* Centered-logo header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gap);
}

.header-brand {
  text-align: center;
  padding: 0.35rem 0 0.15rem;
}

.site-logo {
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--green-deep);
  display: inline-block;
}

[data-theme="dark"] .site-logo {
  color: var(--text);
}

.site-logo span {
  color: var(--green-soft);
  font-style: italic;
}

.site-tagline {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 0 0.65rem;
  position: relative;
}

.menu-toggle {
  display: none;
  position: absolute;
  left: 0;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  position: absolute;
  right: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--green-mid);
  color: var(--green-mid);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.header-nav a {
  text-decoration: none;
  color: var(--gray-warm);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

[data-theme="dark"] .header-nav a {
  color: var(--text-muted);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--green-mid);
  border-bottom-color: var(--green-mid);
}

/* Hero grid */
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--gap) 2.25rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.hero-main {
  grid-column: span 8;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 400px;
}

.hero-main-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.hero-main-content {
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-soft);
  margin-bottom: 0.6rem;
}

.hero-main h1 {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.hero-main h1 a {
  color: var(--green-deep);
  text-decoration: none;
}

[data-theme="dark"] .hero-main h1 a {
  color: var(--text);
}

.hero-main h1 a:hover {
  color: var(--green-mid);
}

.hero-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-side {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Image-overlay cards */
.hero-card {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1;
  min-height: 185px;
  display: flex;
  align-items: flex-end;
  transition: box-shadow var(--transition), transform var(--transition);
}

.hero-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.hero-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(to top, rgba(26, 61, 50, 0.92) 0%, rgba(26, 61, 50, 0.55) 55%, transparent 100%);
  color: #fff;
}

.hero-card .story-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.hero-card h3 {
  font-size: 1.02rem;
  line-height: 1.32;
  margin: 0.35rem 0 0.4rem;
}

.hero-card h3 a {
  color: #fff;
  text-decoration: none;
}

.hero-card h3 a:hover {
  color: var(--green-pale);
}

.hero-card .story-meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Main layout */
.main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap) 3.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.content-primary {
  grid-column: span 8;
}

.sidebar {
  grid-column: span 4;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-warm);
  margin-bottom: 1.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--green-mid);
  display: inline-block;
}

/* Overlay story cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  list-style: none;
}

.story-card {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  transition: box-shadow var(--transition), transform var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.story-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.35rem;
  background: linear-gradient(to top, rgba(26, 61, 50, 0.94) 0%, rgba(26, 61, 50, 0.6) 50%, transparent 100%);
  color: #fff;
}

.story-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.story-card h3 {
  font-size: 1.08rem;
  line-height: 1.32;
  margin: 0.4rem 0 0.5rem;
}

.story-card h3 a {
  color: #fff;
  text-decoration: none;
}

.story-card h3 a:hover {
  color: var(--green-pale);
}

.story-excerpt {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.story-meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-block {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  margin-bottom: var(--gap);
}

.sidebar-block h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  margin-bottom: 0.9rem;
}

[data-theme="dark"] .sidebar-block h2 {
  color: var(--text);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-list a:hover {
  color: var(--green-mid);
}

.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  font-size: 1.45rem;
  color: var(--green-deep);
  margin-top: 2rem;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .prose h2 {
  color: var(--text);
}

/* Article pages */
.article-wide {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem var(--gap) 3.5rem;
}

.article-header {
  margin-bottom: 2.25rem;
}

.article-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-soft);
}

.article-header h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin: 0.6rem 0 1.1rem;
}

[data-theme="dark"] .article-header h1 {
  color: var(--text);
}

.article-deck {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.35rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-pale);
}

.byline-text {
  flex: 1;
  min-width: 200px;
}

.byline-name {
  font-weight: 700;
  color: var(--green-deep);
}

[data-theme="dark"] .byline-name {
  color: var(--text);
}

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

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

.article-dates .updated {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.25rem;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-body > * + * {
  margin-top: 1.3rem;
}

.article-body h2 {
  font-size: 1.42rem;
  color: var(--green-deep);
  margin-top: 2.5rem;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .article-body h2 {
  color: var(--text);
}

.article-body blockquote {
  border-left: 4px solid var(--green-mid);
  padding: 0.85rem 0 0.85rem 1.35rem;
  margin: 1.75rem 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gray-warm);
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme="dark"] .article-body blockquote {
  color: var(--text-muted);
}

.related-block {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-block h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  list-style: none;
}

.related-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.related-item a {
  font-weight: 600;
  text-decoration: none;
  color: var(--green-deep);
}

[data-theme="dark"] .related-item a {
  color: var(--text);
}

.related-item a:hover {
  color: var(--green-mid);
}

.related-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.page-header {
  background: var(--green-deep);
  color: #fff;
  padding: 2.75rem var(--gap);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
}

.page-header p {
  margin-top: 0.55rem;
  opacity: 0.88;
  font-size: 0.98rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.25rem var(--gap) 3.5rem;
}

.articles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.articles-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.articles-list-item:hover {
  box-shadow: var(--shadow-hover);
}

.articles-list-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 150px;
}

.articles-list-body {
  padding: 1.35rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-form button {
  background: var(--green-mid);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.contact-form button:hover {
  background: var(--green-deep);
}

#form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--green-pale);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
  padding: 2.75rem var(--gap) 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.footer-brand {
  grid-column: span 4;
}

.footer-brand .site-logo {
  color: #fff;
  font-size: 1.6rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  opacity: 0.82;
  line-height: 1.55;
}

.footer-nav {
  grid-column: span 4;
}

.footer-nav h3,
.footer-legal h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
}

.footer-nav li,
.footer-legal li {
  margin-bottom: 0.45rem;
}

.footer-nav a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-legal {
  grid-column: span 4;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  opacity: 0.6;
  text-align: center;
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 1.1rem var(--gap);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.88rem;
}

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

.cookie-notice a {
  color: var(--green-pale);
}

.cookie-notice button {
  background: var(--green-soft);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-main {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-column: span 12;
    flex-direction: row;
  }

  .hero-card {
    min-height: 200px;
  }

  .content-primary,
  .sidebar {
    grid-column: span 12;
  }

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

  .footer-brand,
  .footer-nav,
  .footer-legal {
    grid-column: span 12;
  }
}

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

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
  }

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

  .hero-side {
    flex-direction: column;
  }

  .articles-list-item {
    grid-template-columns: 1fr;
  }

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