:root {
  color-scheme: light;
  --ink: #192322;
  --subtle: #52615d;
  --paper: #fdfcf8;
  --line: #dadcd4;
  --green: #164d45;
  --rust: #9e412d;
  --serif: "Playfair Display", Georgia, serif;
  font: 100%/1.55 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.14; margin: 0; }
p { margin: .65rem 0; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem; z-index: 2; }
.skip:focus { top: 1rem; }
.masthead { background: var(--green); color: #fffdf6; }
.top { display: flex; justify-content: space-between; padding-top: .9rem; font-size: .875rem; }
.top time::first-letter { text-transform: uppercase; }
.brand { font-family: "UnifrakturMaguntia", Georgia, serif; text-align: center; display: block; width: fit-content; margin: 0 auto; padding: .15rem 0 1.3rem; font-size: clamp(2.45rem, 7.8vw, 5.65rem); font-weight: 400; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.navigation { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.menu { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 2.25rem); overflow-x: auto; }
.menu a { white-space: nowrap; padding: .8rem .2rem .7rem; min-height: 44px; font-weight: 700; border-bottom: 3px solid transparent; }
.menu a[aria-current] { color: var(--green); border-color: var(--green); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin: 1.65rem 0 1.1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); border-top: 3px solid var(--green); }
.section-head h1, .section-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.section-head a, .section-head span { font-size: .875rem; color: var(--green); font-weight: 700; }
.front { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.cover-story { min-width: 0; border-bottom: 1px solid var(--line); }
.cover-story figure { margin: 0; }
.cover-story img { width: 100%; height: auto; aspect-ratio: 1.68; object-fit: cover; background: #243932; }
.cover-story figcaption { margin-top: .3rem; min-height: 1.4em; }
.cover-story h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.lead { grid-row: span 2; }
.lead img { aspect-ratio: 1.55; }
.lead h2 { font-size: clamp(1.8rem, 4vw, 3.05rem); max-width: 28ch; }
.kicker { display: block; color: var(--rust); font-size: .875rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: .75rem 0 .35rem; }
.credit, small { color: var(--subtle); font-size: .8125rem; }
.credit a { text-decoration: underline; }
.feed h3, .flamengo article h3 { font-size: 1.22rem; }
.flamengo { margin-top: 2rem; background: #faf1ed; border: 1px solid #e4d3cd; border-top: 4px solid #a62632; }
.flamengo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; padding: .85rem 1.15rem; background: #272121; color: white; }
.flamengo-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.flamengo-head a, .flamengo .text-link { font-weight: 700; }
.flamengo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flamengo-grid > section { padding: 1rem 1.15rem; min-width: 0; }
.flamengo-grid > section + section { border-left: 1px solid #e4d3cd; }
.flamengo-grid section > h3 { color: #8f202c; font-size: 1.5rem; }
.flamengo article { border-bottom: 1px solid #e4d3cd; padding: .7rem 0 .2rem; }
.text-link { display: inline-block; margin-top: .9rem; color: var(--green); font-weight: 700; }
.directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin: 1.7rem 0 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.feature { padding: .65rem .85rem 1rem; border-top: 2px solid var(--green); background: #f0f1ea; }
.feature img { aspect-ratio: 2.1; width: 100%; height: auto; object-fit: cover; }
.feature h3 { font-size: 1.2rem; }
.topics, .market-controls, .sources { display: flex; gap: .5rem; flex-wrap: wrap; }
.topics a, button, .sources a { border: 1px solid var(--line); color: var(--ink); background: white; font: inherit; padding: .4rem .7rem; border-radius: .25rem; }
.topics a, .market-controls button { min-height: 44px; display: inline-flex; align-items: center; }
button { cursor: pointer; }
.topics a[aria-current], button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; }
.feed article { padding: 1rem 0 .4rem; border-bottom: 1px solid var(--line); }
.feed button { justify-self: start; }
#chart { margin-top: .85rem; min-height: 390px; }
.market-guide { margin: .8rem 0 0; color: var(--subtle); }
.tradingview-widget-container { height: 390px; }
.tradingview-widget-container__widget { height: calc(100% - 2rem); }
.tradingview-widget-copyright { font-size: .875rem; padding: .3rem; }
#fontes { margin-top: 2.3rem; }
#photo-credits a { text-decoration: underline; }
footer { display: flex; justify-content: space-between; gap: .75rem; padding-block: 1.25rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
footer a { font-family: var(--serif); font-weight: 800; }
footer span { color: var(--subtle); }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .menu { justify-content: flex-start; }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 28px); }
  .menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .menu a { white-space: normal; display: grid; place-items: center; text-align: center; padding: .3rem .2rem; font-size: .875rem; line-height: 1.15; }
  .front, .feed, .flamengo-grid { grid-template-columns: 1fr; }
  .flamengo-grid > section + section { border-left: 0; border-top: 1px solid #e4d3cd; }
  .feature { padding-inline: .55rem; overflow-wrap: anywhere; }
  .tradingview-widget-container, #chart { height: 340px; min-height: 340px; }
  .top { font-size: .8125rem; }
  .brand { padding-top: .6rem; }
}

