/* Fluxo — finabr.digital | minimal-editorial, slate + accent teal */
:root {
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-soft: #ecfdf5;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --read: 36rem;
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 0.9375rem;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Minimal header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo em {
  font-style: normal;
  color: var(--teal);
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  color: var(--slate-700);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] { color: var(--teal-dark); }

.menu-toggle {
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--slate-700);
}

main { flex: 1; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* Article stream homepage */
.stream-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--slate-900);
}

.stream-hero img { margin-bottom: 1rem; }

.stream-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stream-hero h1 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stream-hero h1 a { color: var(--slate-900); text-decoration: none; }
.stream-hero h1 a:hover { color: var(--teal-dark); }

.stream-deck {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 42rem;
  margin-bottom: 0.5rem;
}

.stream-meta {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Dense article stream */
.article-stream { border-top: 1px solid var(--border); }

.stream-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.stream-item img { width: 100%; }

.stream-item h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.stream-item h2 a { color: var(--slate-900); text-decoration: none; }
.stream-item h2 a:hover { color: var(--teal-dark); }

.stream-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.stream-tag {
  display: inline-block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Flat cards on articles listing */
.flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.flat-card {
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--white);
}

.flat-card:hover { border-color: var(--teal); }

.flat-card img { margin-bottom: 0.75rem; }

.flat-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.flat-card h3 a { color: var(--slate-900); text-decoration: none; }

.flat-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* Minimalist reading */
.article-read {
  width: min(100% - 2rem, var(--read));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.article-read h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.article-read .deck {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.article-read .byline {
  font-size: 0.75rem;
  color: var(--slate-500);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-read .byline img { border-radius: 50%; }

.article-read .body p { margin-bottom: 1rem; line-height: 1.65; }

.article-read .body h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--slate-900);
}

.article-read .body ul {
  margin: 0 0 1rem 1.25rem;
  font-size: 0.9375rem;
}

.article-read .hero-img { margin-bottom: 1.5rem; }

/* Institutional */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal);
  letter-spacing: -0.02em;
}

.prose-narrow {
  max-width: var(--read);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.prose-narrow h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.prose-narrow p, .prose-narrow ul { margin-bottom: 0.85rem; }
.prose-narrow ul { padding-left: 1.25rem; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  max-width: var(--max);
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: var(--slate-500);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.contact-form button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.25rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover { background: var(--teal-dark); }

.form-status { font-size: 0.875rem; color: var(--teal-dark); margin-top: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--slate-100);
  padding: 2rem 0 1rem;
  margin-top: auto;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.8125rem;
}

.footer-inner h3 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 0.3rem; }
.footer-inner a { color: var(--slate-700); }

.footer-copy {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--slate-500);
  text-align: center;
}

/* Cookie */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--slate-900);
  color: var(--slate-100);
  padding: 0.85rem 1rem;
  display: none;
  z-index: 100;
}

.cookie-notice.is-visible { display: block; }

.cookie-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-wrap p { font-size: 0.8125rem; max-width: 40rem; }
.cookie-wrap a { color: var(--teal); }

#cookie-accept {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.45rem 1rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 700px) {
  .menu-toggle { display: block; }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .header-nav.is-open { display: flex; }
  .site-header { position: relative; }

  .stream-item { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
