/* Bold Brasil — modern magazine, lime-cream */
:root {
  --primary: #2D6A4F;
  --accent: #95D5B2;
  --bg: #F8FFF6;
  --text: #1B4332;
  --muted: #74A57F;
  --white: #FFFFFF;
  --border: #D8E8DC;
  --overlay: rgba(27, 67, 50, 0.72);
  --container: 1140px;
  --radius-pill: 999px;
  --radius-card: 1.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --transition: 0.22s ease;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

.stacked-header .header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) 0 var(--space-sm);
  gap: var(--space-xs);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
}

.header-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Horizontal underline nav */
.underline-nav {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.underline-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}

.underline-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

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

.nav-toggle {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.site-header .container {
  position: relative;
}

/* Hero full-width overlay */
.hero-full {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

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

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(to top, var(--overlay) 0%, transparent 100%);
}

.hero-overlay .container {
  max-width: 780px;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

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

/* Tags underline */
.tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--accent);
}

.tag:hover {
  color: var(--muted);
}

/* Magazine breakout grid */
.magazine-breakout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.breakout-feature {
  grid-column: 1 / -1;
}

.breakout-side {
  grid-column: span 5;
}

.breakout-main {
  grid-column: span 7;
}

.breakout-half {
  grid-column: span 6;
}

.breakout-third {
  grid-column: span 4;
}

/* Image overlay cards */
.card-overlay {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.card-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-overlay:hover img {
  transform: scale(1.04);
}

.card-overlay-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(27, 67, 50, 0.88) 0%, transparent 100%);
}

.card-overlay-body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0.5rem 0;
}

.card-overlay-body h3 a {
  color: inherit;
}

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

.card-meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-excerpt {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  line-height: 1.55;
}

/* Magazine columns list */
.magazine-columns {
  column-count: 2;
  column-gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.magazine-columns .column-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.column-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.5rem 0;
}

.column-item h3 a {
  color: var(--text);
}

.column-item h3 a:hover {
  color: var(--primary);
}

.column-thumb {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

/* Section headings */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

/* Spacious typography */
.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: var(--space-md) 0 var(--space-xs);
}

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

.prose ul,
.prose ol {
  margin: var(--space-sm) 0 var(--space-sm) 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: rgba(149, 213, 178, 0.15);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

/* Author card with avatar */
.author-card {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin: var(--space-lg) 0;
}

.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-card-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.author-card-info p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Wide magazine article */
.article-wide {
  padding: var(--space-lg) 0 var(--space-xl);
}

.article-header {
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.article-header .tag {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.article-meta {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.article-updated {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
}

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

/* Full bleed image */
.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.full-bleed img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.pull-quote {
  max-width: 900px;
  margin: var(--space-lg) auto;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--primary);
  line-height: 1.45;
}

/* Page layouts */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
}

.content-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

.content-mid {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--text);
}

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

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

/* Two-column footer */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-two-col .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 360px;
}

.footer-links h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cookie corner popup */
.cookie-corner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  max-width: 360px;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.12);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-corner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-corner p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}

.cookie-corner a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

/* Editorial picks row */
.picks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pick-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  border: 1px solid var(--border);
}

.pick-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  line-height: 1.35;
}

.pick-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .magazine-breakout .breakout-side,
  .magazine-breakout .breakout-main,
  .magazine-breakout .breakout-half,
  .magazine-breakout .breakout-third {
    grid-column: 1 / -1;
  }

  .picks-row {
    grid-template-columns: 1fr;
  }

  .magazine-columns {
    column-count: 1;
  }

  .footer-two-col .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .underline-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .underline-nav.is-open {
    max-height: 320px;
    padding: var(--space-sm) 0;
  }

  .underline-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .underline-nav li {
    width: 100%;
    text-align: center;
  }

  .underline-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .hero-full {
    min-height: 50vh;
  }

  .cookie-corner {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
