/* Pauta — longform-journal, ferrugem + salvía */
:root {
  --ferrugem: #B55233;
  --ferrugem-light: #D47A5C;
  --ferrugem-dark: #8F3D24;
  --salvia: #8FA68E;
  --salvia-light: #B0C4AF;
  --salvia-dark: #6B8570;
  --parchment: #F7F4EF;
  --ink: #2A2622;
  --ink-soft: #5C5650;
  --white: #ffffff;
  --gray-100: #EDE9E3;
  --gray-200: #D4CEC6;
  --gray-400: #8A837A;
  --gray-600: #6A635C;
  --shadow: 0 4px 24px rgba(42, 38, 34, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 38, 34, 0.14);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --max-width: 1180px;
  --article-width: 800px;
  --spacing: 1.5rem;
  --transition: 0.28s ease;
}

[data-theme="dark"] {
  --parchment: #1A1816;
  --white: #242120;
  --gray-100: #2E2B28;
  --gray-200: #3D3935;
  --gray-400: #A39E97;
  --gray-600: #C4BEB6;
  --ink: #EDE9E3;
  --ink-soft: #B8B2AA;
  --ferrugem: #D47A5C;
  --salvia: #A8BDA7;
  --shadow: 0 4px 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: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.55rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; }

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

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

/* Header — centered logo */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

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

.tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--salvia-dark);
  margin-bottom: 0.7rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid var(--gray-100);
  padding: 0.55rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.main-nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--gray-600);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

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

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

.btn-icon {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--ferrugem);
  color: var(--white);
  border-color: var(--ferrugem);
}

.menu-toggle { display: none; }

/* Mixed-magazine hero */
.magazine-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  padding: 2.25rem 0 1.5rem;
}

.magazine-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Cards — image-overlay */
.card-overlay {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-overlay:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(42, 38, 34, 0.18);
}

.card-overlay img,
.card-overlay svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 38, 34, 0.92) 0%, rgba(42, 38, 34, 0.35) 55%, rgba(42, 38, 34, 0.1) 100%);
}

.card-overlay-body {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem;
  color: var(--white);
  width: 100%;
}

.card-overlay-sm {
  min-height: 200px;
}

.card-overlay-lg {
  min-height: 420px;
}

.category {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--salvia-light);
  margin-bottom: 0.45rem;
}

.card-overlay h2,
.card-overlay h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.card-overlay h2 { font-size: 1.65rem; }
.card-overlay h3 { font-size: 1.15rem; }

.card-overlay h2 a,
.card-overlay h3 a {
  color: var(--white);
}

.card-overlay h2 a:hover,
.card-overlay h3 a:hover {
  color: var(--salvia-light);
}

.card-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.5rem;
  font-family: var(--font-sans);
}

/* Standard cards for grids */
.card {
  background: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

.card-body { padding: 1.2rem 1.4rem 1.4rem; }

.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--ferrugem); }

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

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

.section-header h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
}

.section-header a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--salvia-dark);
}

.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 band */
.editorial-picks {
  background: var(--salvia-dark);
  color: var(--white);
  padding: 2.75rem 0;
}

.editorial-picks .section-header { border-color: var(--ferrugem-light); }
.editorial-picks .section-header h2 { color: var(--white); }

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

.editorial-picks .card h3 a { color: var(--white); }
.editorial-picks .card h3 a:hover { color: var(--ferrugem-light); }
.editorial-picks .category { color: var(--ferrugem-light); }
.editorial-picks .card-meta { color: rgba(255, 255, 255, 0.65); }
.editorial-picks .card p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }

/* Story band */
.story-band {
  background: var(--ferrugem);
  color: var(--white);
  text-align: center;
  padding: 2.5rem var(--spacing);
}

.story-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.story-band p { opacity: 0.92; max-width: 520px; margin: 0 auto 1.1rem; }

/* Intro editorial */
.intro-editorial {
  max-width: 700px;
  margin: 1.5rem auto 0.5rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--ink-soft);
}

/* Page layouts */
.page-header {
  text-align: center;
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.75rem;
}

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

/* Image-heavy 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: 2rem;
}

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

.article-deck {
  font-size: 1.18rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.75rem;
  font-size: 0.82rem;
  color: var(--gray-400);
  padding: 0.85rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-sans);
}

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

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

.article-inline-img {
  margin: 2rem -1rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-inline-img figcaption {
  font-size: 0.78rem;
  color: var(--gray-400);
  padding: 0.65rem 0.5rem 0;
  font-family: var(--font-sans);
  font-style: italic;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.88;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.85rem;
}

.article-body blockquote {
  border-left: 4px solid var(--ferrugem);
  padding: 0.85rem 0 0.85rem 1.35rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.article-body .lead {
  font-size: 1.22rem;
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

/* Related stories */
.related-stories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.related-stories h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
  margin-bottom: 1.25rem;
}

/* Author boxes */
.author-box {
  margin-top: 2.5rem;
  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-minimal {
  text-align: center;
  padding: 1.75rem;
  background: var(--gray-100);
  border-radius: 2px;
  border-top: none;
}

.author-box.style-bordered {
  border: 2px solid var(--salvia);
  padding: 1.35rem;
  border-radius: 2px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: center;
  border-top: 2px solid var(--salvia);
}

.author-avatar {
  flex-shrink: 0;
  border-radius: 50%;
}

.author-box.style-classic .author-avatar { width: 78px; height: 78px; }
.author-box.style-minimal .author-avatar { width: 62px; height: 62px; margin: 0 auto 0.85rem; }
.author-box.style-bordered .author-avatar { width: 70px; height: 70px; border-radius: 4px; }

.author-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.76rem;
  color: var(--ferrugem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}

.author-bio {
  font-size: 0.88rem;
  line-height: 1.58;
  font-family: var(--font-sans);
}

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

.about-content p {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.82;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  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-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  margin-bottom: 1rem;
}

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

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

.legal-content h2 {
  font-size: 1.22rem;
  margin: 1.75rem 0 0.65rem;
}

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

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

.article-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 2px;
  overflow: hidden;
}

.article-row .card-overlay {
  min-height: 220px;
  box-shadow: none;
}

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

.article-row-text {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-row-text .category { color: var(--ferrugem); }
.article-row-text .card-meta { color: var(--gray-400); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  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.55rem;
  margin-bottom: 0.65rem;
}

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

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

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

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

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

.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 notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.9rem var(--spacing);
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.22);
}

.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.25rem;
  flex-wrap: wrap;
}

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

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

.btn {
  display: inline-block;
  padding: 0.58rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .magazine-hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .article-row-text { 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.95rem; }

  .menu-toggle { display: flex; }

  .nav-bar {
    flex-direction: column;
    position: relative;
  }

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

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

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

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-overlay-lg { min-height: 300px; }

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

  .article-inline-img { margin: 1.5rem 0; }
}
