/* Vector Brasil — vectorbr.click */
/* Editorial static site — coastal-blue palette, serif editorial */

:root {
  --primary: #144552;
  --accent: #2A9D8F;
  --bg: #F2FBFC;
  --text: #0B1F26;
  --muted: #6B9AA5;
  --white: #ffffff;
  --border: #c5dde3;
  --shadow: 0 2px 12px rgba(11, 31, 38, 0.08);
  --shadow-hover: 0 4px 20px rgba(11, 31, 38, 0.12);
  --radius-soft: 6px;
  --container: 1140px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --line-height: 1.65;
  --transition: 0.2s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: var(--line-height);
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-top: 0;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-16);
}

ul, ol {
  margin: 0 0 var(--space-16);
  padding-left: var(--space-24);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-16);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-16);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-8) var(--space-16);
  z-index: 1000;
  text-decoration: none;
  border-radius: var(--radius-soft);
}

.skip-link:focus {
  top: var(--space-8);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) 0;
  gap: var(--space-16);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.125rem;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  cursor: pointer;
  padding: var(--space-8);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-16);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.nav-list a {
  display: block;
  padding: var(--space-8) 0;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Hero — split image text */
.hero-split {
  display: grid;
  gap: var(--space-24);
  margin-bottom: var(--space-48);
}

.hero-image {
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-8);
}

.hero-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-16);
}

.hero-title a {
  color: var(--primary);
  text-decoration: none;
}

.hero-title a:hover {
  color: var(--accent);
}

.hero-excerpt {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: var(--space-16);
}

.hero-meta {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Tags */
.tag {
  display: inline;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Text link button */
.btn-link {
  display: inline;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  color: var(--accent);
}

/* Grid layout — 12 col classic */
.grid-12 {
  display: grid;
  gap: var(--space-32);
}

.col-main {
  grid-column: 1 / -1;
}

.col-sidebar {
  grid-column: 1 / -1;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--primary);
}

.section-title {
  font-size: 1.125rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

/* Article list — horizontal rows */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-16);
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.article-row:first-child {
  padding-top: 0;
}

.article-row-thumb {
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.article-row-thumb img,
.article-row-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row-content h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-8);
}

.article-row-content h3 a {
  color: var(--primary);
  text-decoration: none;
}

.article-row-content h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-row-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: var(--space-8);
}

.article-row-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Cards — shadowed */
.card {
  background: var(--white);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow);
  padding: var(--space-24);
  margin-bottom: var(--space-24);
}

.card-title {
  font-size: 1rem;
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

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

.card-list li {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.card-list li:last-child {
  border-bottom: none;
}

.card-list a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
}

.card-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-list .item-meta {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Sidebar */
.sidebar-block {
  margin-bottom: var(--space-32);
}

/* Article page — split content rail */
.article-layout {
  display: grid;
  gap: var(--space-32);
}

.article-header {
  margin-bottom: var(--space-32);
}

.article-header h1 {
  font-size: 1.75rem;
  margin-bottom: var(--space-16);
}

.article-deck {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: var(--space-16);
}

.article-meta-bar {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-featured-image {
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--space-32);
  aspect-ratio: 16 / 9;
}

.article-featured-image img,
.article-featured-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 1.0625rem;
}

.article-body h2 {
  margin-top: var(--space-32);
  margin-bottom: var(--space-16);
}

.article-body blockquote {
  margin: var(--space-24) 0;
  padding: var(--space-16) var(--space-24);
  border-left: 3px solid var(--accent);
  background: var(--white);
  font-style: italic;
  color: var(--muted);
}

.article-author-note {
  margin-top: var(--space-48);
  padding-top: var(--space-24);
  border-top: 2px solid var(--border);
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.author-avatar svg {
  width: 100%;
  height: 100%;
}

.author-info {
  font-size: 0.9375rem;
}

.author-info strong {
  display: block;
  color: var(--primary);
  margin-bottom: var(--space-8);
}

.author-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.related-articles {
  margin-top: var(--space-48);
}

.related-articles h2 {
  font-size: 1.125rem;
  margin-bottom: var(--space-24);
}

/* Page content */
.page-header {
  margin-bottom: var(--space-32);
  padding-bottom: var(--space-16);
  border-bottom: 2px solid var(--primary);
}

.page-header h1 {
  margin-bottom: var(--space-8);
}

.page-intro {
  color: var(--muted);
  font-size: 1.0625rem;
}

.page-content h2 {
  margin-top: var(--space-32);
  margin-bottom: var(--space-16);
}

.page-content h3 {
  margin-top: var(--space-24);
  margin-bottom: var(--space-8);
}

/* Contact form */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-24);
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-8);
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-8) var(--space-16);
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

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

.form-note {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-16);
}

/* Footer — three column */
.site-footer {
  background: var(--primary);
  color: var(--white);
  margin-top: var(--space-48);
  padding: var(--space-48) 0 var(--space-24);
}

.footer-grid {
  display: grid;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-16);
}

.footer-col p,
.footer-col address {
  font-size: 0.875rem;
  font-style: normal;
  color: #a8cdd4;
  margin: 0 0 var(--space-8);
  line-height: 1.6;
}

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

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  color: #a8cdd4;
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #a8cdd4;
  text-align: center;
}

/* Cookie notice — bottom bar */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-16);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 12px rgba(11, 31, 38, 0.15);
}

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

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: flex-start;
}

.cookie-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: #a8cdd4;
}

.cookie-actions {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.cookie-accept {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  border: none;
  padding: var(--space-8) var(--space-24);
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.cookie-accept:hover {
  background: var(--bg);
}

/* Main spacing */
main {
  padding: var(--space-32) 0 var(--space-48);
}

/* Articles index */
.articles-grid .article-row {
  grid-template-columns: 1fr;
}

/* Utility */
.text-muted {
  color: var(--muted);
}

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

.updated-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Responsive — 480px */
@media (min-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-title { font-size: 2rem; }
  .article-row {
    grid-template-columns: 160px 1fr;
  }
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Responsive — 768px */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-24);
  }

  .nav-list a {
    padding: var(--space-8) 0;
  }

  .hero-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-grid .article-row {
    grid-template-columns: 200px 1fr;
  }
}

/* Responsive — 1024px */
@media (min-width: 1024px) {
  h1 { font-size: 2.25rem; }
  .hero-title { font-size: 2.25rem; }
  .article-header h1 { font-size: 2.25rem; }

  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }

  .col-main {
    grid-column: 1 / 9;
  }

  .col-sidebar {
    grid-column: 9 / 13;
  }

  .article-layout .article-main {
    grid-column: 1 / 9;
  }

  .article-layout .article-rail {
    grid-column: 9 / 13;
  }

  .article-layout {
    grid-template-columns: repeat(12, 1fr);
  }

  .article-row {
    grid-template-columns: 200px 1fr;
  }
}
