/* Amazora — amazora.click | regional-press, forest + river + sand */
:root {
  --forest-dark: #1b4332;
  --forest-mid: #2d6a4f;
  --forest-light: #52b788;
  --river-deep: #1d3557;
  --river-mid: #457b9d;
  --river-light: #a8dadc;
  --sand: #f4ebe0;
  --sand-dark: #e0d4c4;
  --ink: #1a2e28;
  --ink-muted: #4a5f58;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(27, 67, 50, 0.1);
  --shadow-lg: 0 10px 32px rgba(27, 67, 50, 0.14);
  --radius: 6px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1140px;
  --prose-width: 760px;
  --line: 1.65;
}

*, *::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(--sand);
  color: var(--ink);
  line-height: var(--line);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--river-mid); text-decoration: none; }
a:hover { color: var(--forest-mid); }

/* Compact topbar */
.compact-topbar {
  background: var(--forest-dark);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.38rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.compact-topbar a { color: var(--river-light); }
.compact-topbar .region-tags { opacity: 0.88; letter-spacing: 0.02em; }

.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--forest-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.site-logo span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--river-mid);
  margin-top: 0.12rem;
}
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--forest-mid); }
.menu-toggle {
  display: none;
  background: var(--forest-mid);
  color: var(--white);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }

/* Featured-story homepage */
.magazine-hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.4rem;
  padding: 2rem 0;
}
.hero-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-featured img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem;
  background: linear-gradient(transparent, rgba(27, 67, 50, 0.93));
  color: var(--white);
}
.hero-overlay .tag {
  display: inline-block;
  background: var(--river-mid);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.hero-overlay h1 { font-size: 1.5rem; line-height: 1.28; margin-bottom: 0.5rem; }
.hero-overlay h1 a { color: var(--white); }
.hero-overlay h1 a:hover { color: var(--river-light); }
.hero-excerpt { font-size: 0.87rem; opacity: 0.92; margin-bottom: 0.4rem; }
.hero-meta { font-size: 0.74rem; opacity: 0.78; }

.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.shadow-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.shadow-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.shadow-card img { width: 100%; height: 130px; object-fit: cover; }
.shadow-card-body { padding: 0.95rem 1rem; }
.region-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest-mid);
  margin-bottom: 0.3rem;
}
.shadow-card h3 { font-size: 0.92rem; line-height: 1.35; margin-bottom: 0.3rem; }
.shadow-card h3 a { color: var(--ink); }
.shadow-card h3 a:hover { color: var(--river-mid); }
.card-meta { font-size: 0.7rem; color: var(--ink-muted); }

.redacao-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 0.5rem 0 2.5rem;
}
.redacao-block h2 {
  font-size: 1.12rem;
  color: var(--forest-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--river-mid);
  display: inline-block;
}
.redacao-block p { margin-bottom: 0.85rem; color: var(--ink-muted); font-size: 0.91rem; }

.section-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest-mid);
  margin-bottom: 0.35rem;
}
.section-title { font-size: 1.3rem; color: var(--forest-dark); margin-bottom: 1.2rem; }

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Wide-magazine article */
.article-wide {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.article-wide .article-header { margin-bottom: 1.5rem; }
.article-wide h1 { font-size: 1.95rem; line-height: 1.22; color: var(--forest-dark); margin: 0.5rem 0 0.75rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tag-pill {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.58rem;
  border-radius: 20px;
  background: var(--sand-dark);
  color: var(--river-deep);
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sand-dark);
}
.author-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.author-chip img { border-radius: 50%; border: 2px solid var(--forest-light); }
.article-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 1.5rem 0;
}

.prose p { margin-bottom: 1rem; font-size: 1.02rem; }
.prose h2 { font-size: 1.28rem; color: var(--forest-dark); margin: 1.75rem 0 0.75rem; }
.prose h3 { font-size: 1.05rem; color: var(--river-deep); margin: 1.25rem 0 0.5rem; }
.prose .lead { font-size: 1.1rem; color: var(--ink-muted); line-height: 1.7; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--river-mid);
  background: var(--white);
  box-shadow: var(--shadow);
  font-style: italic;
  color: var(--ink-muted);
}
.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--ink-muted);
}
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose em.update-note { font-size: 0.88rem; color: var(--ink-muted); }

.related-stories {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--sand-dark);
}
.related-stories h2 { font-size: 1rem; color: var(--forest-dark); margin-bottom: 1rem; }
.related-list { list-style: none; }
.related-list li { margin-bottom: 0.65rem; font-size: 0.92rem; }

/* Institutional pages */
.page-wrap {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.85rem; color: var(--forest-dark); margin-bottom: 0.5rem; }
.page-header p { color: var(--ink-muted); font-size: 0.95rem; }

.page-wrap .prose h2 { font-size: 1.15rem; margin-top: 1.5rem; }

/* Articles listing */
.articles-list { margin-bottom: 2rem; }
.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s;
}
.article-row:hover { box-shadow: var(--shadow-lg); }
.article-row img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; }
.article-row-body { padding: 1.1rem 1.1rem 1.1rem 0; }
.article-row h2 { font-size: 1.1rem; line-height: 1.35; margin: 0.35rem 0; }
.article-row h2 a { color: var(--ink); }
.article-row h2 a:hover { color: var(--river-mid); }
.article-row .excerpt { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.5rem; }

/* About authors */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
.author-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}
.author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--forest-light);
}
.author-card h3 { font-size: 0.95rem; color: var(--forest-dark); margin-bottom: 0.35rem; }
.author-card p { font-size: 0.82rem; color: var(--ink-muted); }

.contact-form { margin-top: 1.5rem; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: var(--white);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  padding: 0.65rem 1.4rem;
  background: var(--forest-mid);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--forest-dark); }

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: var(--sand);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; color: var(--river-light); }
.site-footer p, .site-footer a { font-size: 0.85rem; color: var(--sand); opacity: 0.9; }
.site-footer a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
  font-size: 0.75rem;
  opacity: 0.65;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--river-deep);
  color: var(--white);
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.82rem;
}
.cookie-notice.is-visible { transform: translateY(0); }
.cookie-notice a { color: var(--river-light); }
.cookie-accept {
  padding: 0.45rem 1rem;
  background: var(--forest-light);
  color: var(--forest-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept:hover { background: var(--white); }

@media (max-width: 900px) {
  .magazine-hero { grid-template-columns: 1fr; }
  .magazine-grid { grid-template-columns: 1fr 1fr; }
  .authors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-row img { min-height: 180px; }
  .article-row-body { padding: 1rem; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    gap: 0.75rem;
  }
  .main-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; }
  .magazine-grid { grid-template-columns: 1fr; }
}
