/* Agenda ESG — ink-cream editorial system */
:root {
  --primary: #493628;
  --accent: #C2A878;
  --bg: #FFF9EF;
  --text: #231A14;
  --muted: #9A7B59;
  --border: rgba(73, 54, 40, 0.18);
  --radius: 6px;
  --container: 1140px;
  --gap: 1.75rem;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 88px;
  --header-shrink: 60px;
  --transition: 0.25s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.25rem; }

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

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

/* Cookie strip */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(-100%);
  transition: transform var(--transition);
  font-size: 0.9375rem;
}

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

.cookie-strip p { margin: 0; flex: 1; min-width: 200px; }

.cookie-strip a { color: var(--accent); }

.cookie-strip .btn-link {
  color: var(--bg);
  border: 1px solid var(--accent);
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

.cookie-strip .btn-link:hover {
  background: var(--accent);
  color: var(--primary);
}

body.cookie-active { padding-top: 52px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  box-shadow: 0 2px 12px rgba(35, 26, 20, 0.06);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  transition: padding var(--transition);
}

.site-header.is-shrunk .header-inner {
  padding: 0.65rem 1.5rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: font-size var(--transition);
}

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

.logo span { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-header.is-shrunk .main-nav { margin-top: 0.5rem; }

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

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

/* Hero — stacked headlines, no image */
.hero-stacked {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-stacked .eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-stacked h1 {
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.hero-stacked .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Layout: editorial columns + right rail */
.page-layout {
  padding: 3rem 0;
}

.content-main { grid-column: span 8; }
.sidebar-rail { grid-column: span 4; }

@media (max-width: 900px) {
  .content-main,
  .sidebar-rail { grid-column: span 12; }
}

/* Cards — bordered */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg);
  margin-bottom: var(--gap);
}

.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 700px) {
  .card-featured { grid-template-columns: 1fr; }
}

/* Magazine columns article list */
.magazine-columns {
  column-count: 2;
  column-gap: var(--gap);
}

@media (max-width: 700px) {
  .magazine-columns { column-count: 1; }
}

.article-card {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.article-card .card-body { padding: 1.25rem 1.5rem 1.5rem; }

.article-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

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

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

/* Image 3:2 editorial */
.img-editorial {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  background: var(--border);
}

/* Tags — bracket label */
.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tag::before { content: "["; }
.tag::after { content: "]"; }

/* Byline — inline */
.byline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.byline a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

.byline .sep { margin: 0 0.4em; }

/* Buttons — text link only */
.btn-text {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: inherit;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-text:hover { color: var(--accent); }

.read-more {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sidebar */
.sidebar-block { margin-bottom: 2.5rem; }

.sidebar-block h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

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

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

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

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

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

/* Article page — pull quote led */
.article-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  max-width: 20ch;
  margin-bottom: 1rem;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.article-body {
  padding: 2.5rem 0;
}

.article-body p { max-width: 65ch; }

.article-body h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-figure {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

/* About / legal pages */
.page-content {
  padding: 3rem 0 4rem;
}

.page-content .prose { max-width: 65ch; }

.page-content .prose-wide { max-width: 75ch; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

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

/* Footer — two column */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-footer {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 32ch;
}

.footer-nav h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

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

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

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

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Articles listing */
.articles-hero {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.articles-hero h1 { margin-bottom: 0.5rem; }

.articles-hero p { color: var(--muted); max-width: 50ch; }

/* Mobile nav */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle { display: block; }

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

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

  .main-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted { color: var(--muted); }

.section-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.updated-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-spaced { margin-top: 2rem; }
.text-small { font-size: 0.9375rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
