/* Manchete do Dia — news-magazine, editorial (amarelo-verde palet). */

:root {
  --bg: #fdfbf3;
  --paper: #ffffff;
  --ink: #1f2914;
  --ink-soft: #4d5942;
  --ink-mute: #8b957e;
  --accent: #237a3e;
  --accent-light: #5aa876;
  --highlight: #f7c948;
  --divider: rgba(31, 41, 20, 0.09);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14170f;
    --paper: #1c2015;
    --ink: #e9ebe0;
    --ink-soft: #a8b09a;
    --ink-mute: #767c6b;
    --accent: #7abd93;
    --accent-light: #a3d0b3;
    --divider: rgba(233, 235, 224, 0.08);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.hdr {
  background: var(--paper);
  border-bottom: 4px solid var(--accent);
  padding: 20px 0;
  text-align: center;
  position: relative;
}
.hdr::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 4px;
  background: var(--highlight);
}
.masthead {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: 3px;
}
.tagline {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin: 6px 0 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.magazine { padding: 44px 24px; }
.lead {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 32px;
  margin-bottom: 40px;
}
.lead-badge, .story-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lead-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}
.lead-lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

.story {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}
.story:last-child { border-bottom: none; }
.story-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
}
.story-body p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.story-body p:last-child { margin-bottom: 0; }

.editor-box {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 4px;
  position: relative;
}
.editor-box::before {
  content: '';
  position: absolute;
  left: -4px; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent) 50%, var(--highlight) 50%);
}
.editor-note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 18px;
}
.editor-note strong { color: var(--ink); font-weight: 600; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cta:hover { opacity: 0.9; }

.foot {
  padding: 30px 0 0;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-mute);
}
.foot a { color: var(--ink-soft); text-decoration: none; margin-left: 4px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .masthead { font-size: 22px; letter-spacing: 2px; }
  .lead-title { font-size: 30px; }
  .lead-lede { font-size: 17px; }
  .story-title { font-size: 20px; }
}
