/* =========================================================
   Termômetro — indicadorbr.click
   Research-note editorial stylesheet. Serif, academic teal.
   No frameworks. Slightly imperfect, human rhythm.
   ========================================================= */

:root {
  --teal: #0f4c5c;
  --teal-deep: #0a3540;
  --ochre: #c9871e;
  --ochre-soft: #e0a857;
  --offwhite: #f4f3ee;
  --paper: #fbfaf6;
  --ink: #1c1f26;
  --ink-soft: #3a3f4a;
  --muted: #6b7178;
  --rule: #d9d6cb;
  --rule-soft: #e7e4da;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;

  --maxw: 1180px;
  --reading: 38rem; /* narrow reading column */
  --radius: 3px;
}

/* ---------- reset-lite ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.62;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ochre); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: -0.005em; }
p { margin: 0 0 1.15rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
blockquote { margin: 1.6rem 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--ochre); color: var(--ink-soft); font-style: italic; font-size: 1.06rem; }
em, i { font-style: italic; }
strong, b { font-weight: 700; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
.reading { max-width: var(--reading); margin: 0 auto; padding: 0 1.4rem; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 700;
}
.kicker-teal { color: var(--teal); }

/* ---------- topbar ---------- */
.topbar {
  background: var(--offwhite);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--teal); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand-name .accent { color: var(--ochre); }
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: -2px;
}
nav.main-nav { margin-left: auto; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--teal); border-bottom-color: var(--ochre); }
.nav-list a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

/* theme + menu buttons */
.icon-btn {
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.icon-btn:hover { color: var(--teal); border-color: var(--teal); }
.menu-toggle { display: none; }

/* ---------- masthead strip ---------- */
.masthead-strip {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}
.masthead-strip .vol { letter-spacing: 0.05em; }
.masthead-strip .ind-block b { color: var(--teal); font-weight: 700; }

/* ---------- hero / lead ---------- */
.lead-section { padding: 2.6rem 0 1.4rem; }
.lead-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.lead-copy h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0.4rem 0 1rem;
}
.lead-copy h1 a { color: var(--ink); text-decoration: none; }
.lead-copy h1 a:hover { color: var(--teal); }
.lead-deck {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}
.byline {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.byline a { color: var(--teal); text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline .sep { opacity: 0.5; }
.lead-art {
  border: 1px solid var(--rule);
  background: var(--paper);
}
.lead-art svg { width: 100%; height: auto; display: block; }

/* ---------- columns layout ---------- */
.columns-section { padding: 2rem 0 3.4rem; }
.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.col {
  padding: 1.6rem 1.5rem 0.5rem;
  border-right: 1px solid var(--rule);
}
.col:last-child { border-right: 0; }
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; }
.col-head {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ---------- cards (flat) ---------- */
.card { margin-bottom: 1.6rem; }
.card a { text-decoration: none; color: var(--ink); }
.card-thumb { margin-bottom: 0.7rem; border: 1px solid var(--rule); }
.card h3 {
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
  line-height: 1.28;
}
.card h3 a:hover { color: var(--teal); }
.card .meta {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--muted);
}
.card-text-item {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1.2rem;
}
.card-text-item:last-child { border-bottom: 0; }
.card-text-item h3 { font-size: 1.18rem; margin-bottom: 0.35rem; }
.card-text-item .deck { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- featured analysis band ---------- */
.feature-band {
  background: var(--teal);
  color: var(--offwhite);
  padding: 3rem 0;
}
.feature-band .eyebrow { color: var(--ochre-soft); }
.feature-band h2 {
  color: var(--offwhite);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0.4rem 0 1rem;
}
.feature-band h2 a { color: var(--offwhite); text-decoration: none; }
.feature-band h2 a:hover { color: var(--ochre-soft); }
.feature-band p { color: rgba(244, 243, 238, 0.85); font-size: 1.08rem; max-width: 48rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ochre);
  color: var(--offwhite);
  text-decoration: none;
  border-radius: var(--radius);
  margin-top: 0.8rem;
}
.btn:hover { background: var(--ochre); color: var(--ink); }

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
  margin: 2.6rem 0 1.6rem;
}
.section-head h2 { font-size: 1.4rem; margin: 0; }
.section-head .more {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--teal);
  text-decoration: none;
}
.section-head .more:hover { color: var(--ochre); }

/* ---------- article grid (listing / related) ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.8rem;
  padding-bottom: 2rem;
}

/* ---------- narrow reading (article) ---------- */
.article-header { padding: 2.4rem 0 1.4rem; text-align: left; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.article-header .eyebrow { display: inline-block; }
.article-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 0.5rem 0 0.8rem;
}
.article-deck {
  font-size: 1.16rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.author-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); }
.author-meta { font-family: var(--font-sans); font-size: 0.82rem; color: var(--muted); }
.author-meta b { color: var(--ink); font-weight: 700; }

.article-body { font-size: 1.12rem; color: var(--ink); }
.article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; color: var(--teal); }
.article-body p { margin-bottom: 1.3rem; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule-soft);
}
.article-body .pullquote {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--teal);
  border-left: 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 2.2rem 0;
  font-style: normal;
  font-weight: 600;
  border-left: 4px solid var(--ochre);
}
.data-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.92rem; font-family: var(--font-sans); }
.data-table caption { text-align: left; color: var(--muted); font-size: 0.8rem; padding-bottom: 0.5rem; }
.data-table th, .data-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { border-bottom: 2px solid var(--ink); color: var(--teal); font-weight: 700; }
.note-source { font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); margin-top: 1.4rem; }

.tags-row { margin: 2.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); }
.tag { color: var(--teal); }

.share-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2rem;
}
.share-note a { color: var(--teal); }

/* ---------- related ---------- */
.related { padding: 2.4rem 0 3.4rem; background: var(--paper); border-top: 1px solid var(--rule); }
.related .story-grid { padding-bottom: 0; }

/* ---------- page intro (static pages) ---------- */
.page-intro { padding: 2.6rem 0 0.5rem; }
.page-intro h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0.3rem 0 0.6rem; }
.page-intro .deck { font-size: 1.1rem; color: var(--ink-soft); max-width: 44rem; }
.prose { max-width: 46rem; padding: 0.5rem 0 3rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.prose ul { color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

/* ---------- team / authors ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin: 1.6rem 0; }
.team-card { border: 1px solid var(--rule); padding: 1.2rem; background: var(--paper); }
.team-card .author-avatar { width: 52px; height: 52px; margin-bottom: 0.6rem; }
.team-card h3 { font-size: 1.05rem; margin: 0 0 0.2rem; }
.team-card .role { font-family: var(--font-sans); font-size: 0.76rem; color: var(--ochre); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- category pills ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.cat-pills a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper);
}
.cat-pills a:hover, .cat-pills a.active { background: var(--teal); color: var(--offwhite); border-color: var(--teal); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; margin-top: 1.4rem; }
.contact-box { border: 1px solid var(--rule); padding: 1.4rem; background: var(--paper); }
.contact-box h2 { font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--teal); }
.contact-box .big { font-size: 1.05rem; word-break: break-all; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-family: var(--font-sans); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 0.95rem; padding: 0.55rem 0.6rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--offwhite); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--ochre-soft); border-color: var(--ochre); }
button.submit {
  font-family: var(--font-sans); font-size: 0.9rem; background: var(--teal); color: var(--offwhite);
  border: 0; padding: 0.6rem 1.3rem; border-radius: var(--radius); cursor: pointer;
}
button.submit:hover { background: var(--teal-deep); }
.form-note { font-family: var(--font-sans); font-size: 0.76rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--offwhite);
  padding: 3rem 0 1.6rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 243, 238, 0.15);
}
.site-footer h4 {
  color: var(--offwhite);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(244, 243, 238, 0.78); text-decoration: none; font-family: var(--font-sans); font-size: 0.86rem; }
.site-footer a:hover { color: var(--ochre-soft); }
.footer-brand .brand-name { color: var(--offwhite); font-size: 1.2rem; }
.footer-about { font-family: var(--font-sans); font-size: 0.86rem; color: rgba(244, 243, 238, 0.7); margin-top: 0.5rem; max-width: 22rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.4rem; font-family: var(--font-sans); font-size: 0.78rem; color: rgba(244, 243, 238, 0.55);
}

/* ---------- cookie notice ---------- */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--ink); color: var(--offwhite);
  padding: 0.9rem 1.4rem; display: none;
  font-family: var(--font-sans); font-size: 0.84rem;
  border-top: 2px solid var(--ochre);
}
.cookie-notice.show { display: block; }
.cookie-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-inner a { color: var(--ochre-soft); }
.cookie-inner button {
  font-family: var(--font-sans); font-size: 0.82rem; cursor: pointer;
  background: var(--ochre); color: var(--ink); border: 0; padding: 0.45rem 0.9rem; border-radius: var(--radius); font-weight: 700;
}
.cookie-inner button.link { background: none; color: var(--offwhite); text-decoration: underline; font-weight: 400; }

/* ---------- mobile menu drawer ---------- */
.mobile-menu {
  display: none;
  position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
  background: var(--paper); border-left: 1px solid var(--rule);
  transform: translateX(100%); transition: transform 0.22s ease;
  z-index: 90; padding: 1.4rem; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); display: block; }
.mobile-menu .close-x {
  position: absolute; top: 0.8rem; right: 1rem; background: none; border: 0;
  font-size: 1.5rem; color: var(--ink-soft); cursor: pointer;
}
.mobile-menu h4 { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 0.5rem; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin-bottom: 0.3rem; }
.mobile-menu a { font-family: var(--font-serif); font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.mobile-menu a:hover { color: var(--teal); }
.scrim { display: none; position: fixed; inset: 0; background: rgba(28,31,38,0.4); z-index: 85; }
.scrim.show { display: block; }

/* dark theme */
body.dark { --offwhite: #14171c; --paper: #1b1f26; --ink: #ece9e1; --ink-soft: #c9c5ba; --muted: #9a958a; --rule: #2c313a; --rule-soft: #262b33; background: var(--offwhite); }
body.dark .feature-band { background: var(--teal-deep); }
body.dark .icon-btn { border-color: var(--rule); color: var(--ink-soft); }
body.dark .topbar { background: var(--offwhite); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .lead-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .columns { grid-template-columns: 1fr; border-top: 0; }
  .col { border-right: 0; border-bottom: 1px solid var(--rule); padding: 1.6rem 0; }
  .col:first-child { padding-top: 0; }
  .col:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .masthead-strip .wrap { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .masthead-strip .ind-block { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
