/* Horizonte Capital — investbr.info | longform-journal, charcoal + copper */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --charcoal: #374151;
  --charcoal-deep: #1f2937;
  --copper: #B87333;
  --copper-light: #d4955a;
  --copper-pale: #f5ebe0;
  --stone: #FAFAF9;
  --stone-muted: #f0efec;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --border-strong: #374151;
  --surface: #ffffff;
  --max-read: 40rem;
  --max-site: 76rem;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --charcoal: #9ca3af;
  --charcoal-deep: #111827;
  --copper-pale: #2a2218;
  --stone: #111827;
  --stone-muted: #1f2937;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
  --border-strong: #6b7280;
  --surface: #1f2937;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--stone);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--copper-light);
}

/* Centered logo header */
.site-header {
  background: var(--charcoal-deep);
  color: var(--stone);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid var(--copper);
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  color: var(--stone);
}

.logo-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.15;
}

.logo-tagline {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0.5rem 0 0;
}

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

.nav-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
  position: relative;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  margin: 0.5rem 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.875rem 1.125rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

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

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  right: 1rem;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}

.icon-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* Main */
.site-main {
  flex: 1;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* Hero — spacious magazine */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero img {
  margin: 0 auto 2rem;
  max-width: 720px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: var(--charcoal-deep);
}

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

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Longform reading column */
.reading-column {
  max-width: var(--max-read);
  margin: 0 auto;
}

.reading-column p {
  margin: 0 0 1.35rem;
}

.reading-column > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.1rem 0.5rem 0 0;
  color: var(--copper);
}

.reading-column h2 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--charcoal-deep);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

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

/* Section titles */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--charcoal-deep);
  letter-spacing: 0.02em;
}

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

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--copper);
  margin: 0.75rem auto 0;
}

/* Mixed magazine grid */
.magazine-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .magazine-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

.article-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.article-card:hover {
  border-color: var(--copper);
}

.article-card-featured {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .article-card-featured {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.article-card-thumb {
  width: 100%;
  border: 1px solid var(--border);
}

.article-card-meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.5rem;
}

.article-card h2,
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.article-card h2 a,
.article-card h3 a {
  color: var(--charcoal-deep);
  text-decoration: none;
}

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

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--copper);
}

.article-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-card-author img {
  border-radius: 50%;
  border: 1px solid var(--border);
}

.read-more {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Article page */
.article-header {
  max-width: var(--max-read);
  margin: 0 auto 2rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.author-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
  text-align: left;
}

.author-block img {
  border-radius: 50%;
  border: 2px solid var(--copper);
}

.author-block strong {
  color: var(--text);
  font-weight: 500;
}

.article-thumb-full {
  max-width: var(--max-read);
  margin: 0 auto 2rem;
  border: 1px solid var(--border);
}

.article-body {
  max-width: var(--max-read);
  margin: 0 auto;
}

.article-body p {
  margin: 0 0 1.35rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.25rem 0 1rem;
  color: var(--charcoal-deep);
}

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

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--copper);
  background: var(--stone-muted);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
}

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

/* Related */
.related-block {
  max-width: var(--max-read);
  margin: 3rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.related-block h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.related-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-block li {
  margin-bottom: 0.625rem;
}

.related-block a {
  text-decoration: none;
  font-size: 0.9375rem;
}

/* Page header for inner pages */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto;
}

/* Contact form */
.contact-form {
  max-width: 28rem;
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--surface);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  background: var(--stone);
  color: var(--text);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.btn-primary {
  background: var(--charcoal-deep);
  color: var(--stone);
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--copper);
}

/* Authors list */
.author-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .author-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.author-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
  background: var(--surface);
}

.author-card img {
  margin: 0 auto 0.875rem;
  border-radius: 50%;
  border: 2px solid var(--copper);
}

.author-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}

.author-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--charcoal-deep);
  color: #d1d5db;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--copper);
}

.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand .logo-text {
  font-size: 1.375rem;
  color: var(--stone);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
  opacity: 0.85;
}

.footer-nav h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.875rem;
}

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

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  max-width: var(--max-site);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #4b5563;
  font-size: 0.8125rem;
  text-align: center;
  opacity: 0.7;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-notice.is-visible {
  display: block;
}

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

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-inner a {
  color: var(--copper);
}

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-bottom: 0.5rem;
  }

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

  .nav-tools {
    position: static;
    margin-left: auto;
  }

  .nav-inner {
    justify-content: space-between;
  }
}
