/* Ginga — youth-media, verde + amarelo, modern-sans */
:root {
  --verde: #1B6B4A;
  --verde-light: #2a8a62;
  --verde-dark: #124832;
  --amarelo: #F5D76E;
  --amarelo-light: #fae9a8;
  --amarelo-dark: #d4b84a;
  --off-white: #fafaf7;
  --white: #ffffff;
  --gray-100: #f0f0ec;
  --gray-200: #d8d8d2;
  --gray-400: #8a8a82;
  --gray-600: #5a5a54;
  --text: #1a1a18;
  --shadow: 0 6px 24px rgba(27, 107, 74, 0.12);
  --shadow-lg: 0 12px 40px rgba(27, 107, 74, 0.18);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1180px;
  --article-width: 820px;
  --spacing: 1.25rem;
  --transition: 0.22s ease;
  --radius: 12px;
}

[data-theme="dark"] {
  --off-white: #121614;
  --white: #1a211e;
  --gray-100: #242b28;
  --gray-200: #3a4440;
  --gray-400: #9aa39e;
  --gray-600: #c4cbc7;
  --text: #eef0ee;
  --verde: #3daa7a;
  --verde-light: #5cc49a;
  --amarelo: #f5d76e;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { color: var(--verde-dark); }

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: 2.5rem; margin-bottom: 0.85rem; }
h2 { font-size: 1.65rem; margin-bottom: 0.65rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }

p { margin-bottom: 1.1rem; }

ul, ol { margin: 0 0 1.1rem 1.4rem; }
li { margin-bottom: 0.35rem; }

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

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

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem var(--spacing) 0;
}

.logo {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--verde);
  letter-spacing: -0.04em;
  margin-bottom: 0.15rem;
  text-transform: lowercase;
}

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

.tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 0.85rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--verde);
  padding: 0.55rem var(--spacing);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav {
  display: flex;
  gap: 0.2rem 1.75rem;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--amarelo);
  border-bottom-color: var(--amarelo);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-left: 1rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--amarelo);
  color: var(--verde-dark);
  border-color: var(--amarelo);
}

.menu-toggle { display: none; }

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.35rem;
  padding: 2.25rem 0;
}

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.hero-main img,
.hero-main svg {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-main .card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Cards — shadowed */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card img,
.card svg.card-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-body { padding: 1.15rem 1.35rem 1.35rem; }

.card-sm .card-body { padding: 0.9rem 1.15rem; }

.category {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--verde);
  background: var(--amarelo-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}

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

.card-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.65rem;
  font-weight: 500;
}

/* Sections */
.section { padding: 2.25rem 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--amarelo);
}

.section-header h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--verde);
}

.section-header a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

/* Editorial picks */
.editorial-picks {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-dark) 100%);
  color: var(--white);
  padding: 2.75rem 0;
}

.editorial-picks h2 { color: var(--amarelo); }

.editorial-picks .section-header { border-color: rgba(245, 215, 110, 0.4); }

.editorial-picks .card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.editorial-picks .card h3 a { color: var(--white); }
.editorial-picks .card h3 a:hover { color: var(--amarelo); }
.editorial-picks .category { background: rgba(245, 215, 110, 0.2); color: var(--amarelo); }
.editorial-picks .card-meta { color: rgba(255, 255, 255, 0.55); }

/* CTA band */
.cta-band {
  background: var(--amarelo);
  color: var(--verde-dark);
  text-align: center;
  padding: 2.25rem var(--spacing);
}

.cta-band h2 { color: var(--verde-dark); margin-bottom: 0.45rem; }
.cta-band p { max-width: 480px; margin: 0 auto 1rem; font-weight: 500; }

/* Page layouts */
.page-header {
  text-align: center;
  padding: 2.75rem 0 1.75rem;
  margin-bottom: 1.75rem;
}

.page-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--amarelo);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.page-header p {
  color: var(--gray-600);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0.5rem auto 0;
}

/* Wide magazine article */
.article-wide {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 1.75rem var(--spacing) 3.5rem;
}

.article-wide .article-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.article-wide .article-header h1 {
  font-size: 2.35rem;
  margin-bottom: 0.85rem;
}

.article-deck {
  font-size: 1.15rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 1.35rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  font-size: 0.82rem;
  color: var(--gray-400);
  padding: 0.85rem 0;
  border-top: 2px solid var(--gray-100);
  border-bottom: 2px solid var(--gray-100);
  font-weight: 500;
}

.article-hero-img {
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero-img svg,
.article-hero-img img {
  width: 100%;
  height: auto;
}

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

.article-body h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.85rem;
  color: var(--verde);
}

.article-body blockquote {
  border-left: 4px solid var(--amarelo);
  padding: 0.85rem 0 0.85rem 1.35rem;
  margin: 1.75rem 0;
  font-weight: 600;
  color: var(--verde-dark);
  font-size: 1.08rem;
  background: var(--amarelo-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme="dark"] .article-body blockquote {
  background: rgba(245, 215, 110, 0.1);
  color: var(--amarelo);
}

.article-body .lead {
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 1.75rem;
}

/* Author boxes */
.author-box {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--gray-200);
}

.author-box.style-classic {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}

.author-box.style-classic .author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--amarelo);
}

.author-box.style-minimal {
  text-align: center;
  padding: 1.75rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-top: none;
}

.author-box.style-minimal .author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  border: 3px solid var(--verde);
}

.author-box.style-accent {
  background: var(--verde);
  color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-top: none;
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.author-box.style-accent .author-avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  border: 3px solid var(--amarelo);
  flex-shrink: 0;
}

.author-box.style-accent .author-name { color: var(--white); }
.author-box.style-accent .author-bio { color: rgba(255, 255, 255, 0.82); }
.author-box.style-accent .author-role { color: var(--amarelo); }

.author-name {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.author-bio {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* About */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 2.75rem;
}

.about-content p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 2.75rem;
}

.contact-info h3 { margin-bottom: 0.85rem; color: var(--verde); }
.contact-info p { margin-bottom: 0.45rem; }

/* Legal */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 2.75rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--verde);
}

.legal-content p,
.legal-content li {
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Articles listing */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 2.75rem;
}

.article-list-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.35rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-list-item svg,
.article-list-item img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.article-list-item .card-body {
  padding: 1.35rem 1.35rem 1.35rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Intro */
.intro-editorial {
  max-width: 660px;
  margin: 0 auto 0.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
}

/* Footer */
.site-footer {
  background: var(--verde-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.75rem 0 1.35rem;
  margin-top: 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.footer-brand .logo {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--amarelo);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.78rem;
}

/* Cookie */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--verde-dark);
  color: var(--white);
  padding: 0.9rem var(--spacing);
  z-index: 200;
  display: none;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

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

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

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

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

.btn {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--verde-dark);
  border: 2px solid var(--verde-dark);
}

.btn-outline:hover {
  background: var(--verde-dark);
  color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-list-item { grid-template-columns: 1fr; }
  .article-list-item .card-body { padding: 1.35rem; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  h1 { font-size: 1.85rem; }

  .menu-toggle { display: flex; }

  .nav-bar {
    flex-direction: column;
    position: relative;
    padding: 0.5rem var(--spacing);
  }

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

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

  .header-actions {
    position: absolute;
    right: var(--spacing);
    top: 0.45rem;
    margin: 0;
  }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-main svg { height: 220px; }

  .author-box.style-classic,
  .author-box.style-accent {
    flex-direction: column;
    text-align: center;
  }
}
