/* Vínculo — socialbr.digital
   Archetype: minimal-editorial | Palette: lavanda + grafite */

:root {
  --lav-50: #f6f4fb;
  --lav-100: #ebe6f7;
  --lav-200: #d4ccef;
  --lav-400: #9b8fd4;
  --lav-500: #7c6fbd;
  --lav-600: #6358a3;
  --lav-700: #4f4585;
  --graf-50: #f7f7f8;
  --graf-100: #ececee;
  --graf-200: #d5d6da;
  --graf-400: #8b8d96;
  --graf-600: #4a4d56;
  --graf-700: #35373f;
  --graf-800: #2b2d33;
  --graf-900: #1a1b1f;
  --white: #ffffff;
  --text: var(--graf-800);
  --text-muted: var(--graf-600);
  --border: var(--graf-200);
  --accent: var(--lav-600);
  --accent-soft: var(--lav-100);
  --font-serif: "Georgia", "Times New Roman", "Iowan Old Style", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
  --max-wide: 1080px;
  --max-read: 620px;
  --header-h: auto;
}

[data-theme="dark"] {
  --graf-50: #1e1f24;
  --graf-100: #282a30;
  --graf-200: #3a3d45;
  --graf-400: #9a9ca6;
  --graf-600: #c4c6cc;
  --graf-700: #dddde2;
  --graf-800: #ececf0;
  --graf-900: #f5f5f7;
  --white: #16171b;
  --text: var(--graf-800);
  --text-muted: var(--graf-400);
  --border: var(--graf-200);
  --accent-soft: #2a2640;
  --lav-100: #2a2640;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--graf-50);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--lav-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

a:hover { color: var(--lav-700); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--graf-900);
  line-height: 1.22;
  margin-top: 0;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.65rem); }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.65rem); margin-bottom: 0.65em; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }

.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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

.header-bar {
  border-bottom: 1px solid var(--border);
}

.header-bar__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--graf-900);
}

.brand:hover { color: var(--lav-600); }

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 640px) {
  .header-date { display: block; }
}

.theme-btn,
.menu-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.3;
}

.theme-btn:hover,
.menu-toggle:hover {
  border-color: var(--lav-400);
  color: var(--lav-600);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.45rem 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.split-nav {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.split-nav__cats,
.split-nav__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.split-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
}

.split-nav a:hover {
  color: var(--lav-600);
}

.split-nav a.is-active,
.split-nav a[aria-current="page"] {
  color: var(--graf-900);
  border-bottom-color: var(--lav-500);
}

.split-nav__cats a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

  .split-nav {
    display: none;
    flex-direction: column;
    padding-bottom: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .split-nav.is-open { display: flex; }

  .split-nav__cats,
  .split-nav__pages {
    flex-direction: column;
    width: 100%;
  }

  .split-nav a {
    padding: 0.55rem 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
  }

  .split-nav a.is-active,
  .split-nav a[aria-current="page"] {
    border-left-color: var(--lav-500);
    border-bottom-color: transparent;
  }
}

/* ——— Featured story homepage ——— */
.featured {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.featured__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.featured__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lav-600);
  margin-bottom: 1rem;
}

.featured__grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .featured__grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 2.25rem;
  }
}

.featured__visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--border);
}

.featured__title {
  margin-bottom: 0.75rem;
}

.featured__title a {
  color: var(--graf-900);
  text-decoration: none;
}

.featured__title a:hover { color: var(--lav-600); }

.featured__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.featured__meta strong { color: var(--text); font-weight: 600; }

.featured__deck {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.featured__cta {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--lav-600);
  border-bottom: 1px solid var(--lav-400);
  padding-bottom: 2px;
}

.featured__cta:hover { color: var(--lav-700); }

/* ——— Intro band ——— */
.intro-band {
  padding: 2rem 0;
}

.intro-band p {
  max-width: 42rem;
  font-size: 1.02rem;
}

.intro-band strong {
  font-family: var(--font-serif);
  color: var(--graf-900);
}

/* ——— Flat cards ——— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-size: 1.15rem;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.section-head a {
  font-size: 0.82rem;
  text-decoration: none;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card-flat {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card-flat__thumb {
  display: block;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-flat__thumb img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: opacity 0.2s;
}

.card-flat__thumb:hover img { opacity: 0.88; }

.card-flat__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-flat__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lav-600);
  margin-bottom: 0.45rem;
}

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

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

.card-flat h3 a:hover { color: var(--lav-600); }

.card-flat__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.65rem;
}

.card-flat__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ——— Narrow reading article ——— */
.article-read {
  background: var(--white);
  padding: 2rem 0 3rem;
}

.article-read__wrap {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-read__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-read__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--lav-600);
  margin-bottom: 0.75rem;
}

.article-read__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.article-read__updated {
  font-style: italic;
}

.article-read__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-read__hero {
  margin: 0 0 1.75rem;
  border: 1px solid var(--border);
}

.article-read__content h2 {
  font-size: 1.28rem;
  margin-top: 2rem;
}

.article-read__content blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 0 0.85rem 1.15rem;
  border-left: 3px solid var(--lav-400);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--graf-700);
}

.note-inline {
  background: var(--accent-soft);
  border-left: 3px solid var(--lav-500);
  padding: 0.9rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.94rem;
}

.note-inline strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lav-700);
}

/* ——— Author box ——— */
.author-box {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: var(--graf-900);
}

.author-box__role {
  font-size: 0.8rem;
  color: var(--lav-600);
  margin: 0 0 0.45rem;
}

.author-box__bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ——— Related ——— */
.related {
  background: var(--graf-50);
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.related-list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--graf-900);
}

.related-list a:hover { color: var(--lav-600); }

.related-list span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ——— Page header / prose ——— */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.page-hero h1 { margin-bottom: 0.5rem; }

.page-hero p {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.prose {
  padding: 2rem 0 3rem;
}

.prose__inner {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

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

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

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  background: var(--graf-800);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn:hover { background: var(--lav-600); }

.form-success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--lav-200);
  font-size: 0.9rem;
}

/* ——— Authors grid ——— */
.author-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 560px) {
  .author-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 800px) {
  .author-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.author-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 0.65rem;
}

.author-card h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-card .role {
  font-size: 0.78rem;
  color: var(--lav-600);
  margin-bottom: 0.4rem;
}

.author-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--graf-800);
  color: #c8c9cf;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

[data-theme="dark"] .site-footer {
  background: #0f1013;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  max-width: 28rem;
}

.footer-nav h3,
.footer-legal h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--lav-400);
  margin-bottom: 0.75rem;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li,
.footer-legal li { margin-bottom: 0.4rem; }

.footer-nav a,
.footer-legal a {
  color: #c8c9cf;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover,
.footer-legal a:hover { color: var(--lav-200); }

.footer-bottom {
  border-top: 1px solid #3a3d45;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: #8b8d96;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer a { color: var(--lav-200); }

/* ——— Cookie notice ——— */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--graf-800);
  color: #dddde2;
  padding: 1rem 1.25rem;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 2px solid var(--lav-500);
}

.cookie-notice.is-visible { transform: translateY(0); }

.cookie-notice__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

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

.cookie-notice__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-notice button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-notice [data-cookie-accept] {
  background: var(--lav-500);
  color: var(--white);
  border-color: var(--lav-500);
}

.cookie-notice [data-cookie-decline] {
  background: transparent;
  color: #c8c9cf;
  border-color: #4a4d56;
}

/* ——— Filter tags on articles page ——— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-bar a {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  background: var(--white);
}

.filter-bar a:hover,
.filter-bar a.is-active {
  border-color: var(--lav-500);
  color: var(--lav-600);
}
