/* Pagode Digital — urban-slate editorial theme */
:root {
  --slate-900: #1a2332;
  --slate-800: #2d3a4f;
  --slate-700: #3d4f66;
  --slate-600: #5a6b7d;
  --slate-500: #7a8a9a;
  --concrete-100: #f4f5f6;
  --concrete-200: #e8eaed;
  --concrete-300: #d1d5db;
  --concrete-400: #b0b8c4;
  --amber-500: #d97706;
  --amber-600: #b45309;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.12);
  --shadow-lg: 0 8px 24px rgba(26, 35, 50, 0.14);
  --radius-soft: 6px;
  --radius-md: 10px;
  --container: 960px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --line-compact: 1.35;
  --gap: 1.25rem;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: var(--line-compact);
  color: var(--slate-800);
  background: var(--concrete-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--amber-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--amber-500); }

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

/* Header — centered logo */
.site-header {
  background: var(--slate-900);
  border-bottom: 3px solid var(--amber-500);
  padding: 1rem 0 0.75rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.site-logo:hover { color: var(--amber-100); }

.logo-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 0.35rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--concrete-400);
  margin-top: 0.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  color: var(--concrete-300);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--amber-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--concrete-400);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-soft);
  cursor: pointer;
  font-size: 0.8125rem;
}

/* Main layout */
main { flex: 1; padding: var(--gap) 0 2.5rem; }

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

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* Hero — split image text */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: calc(var(--gap) * 1.5);
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  display: inline-block;
  background: var(--amber-100);
  color: var(--amber-600);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-soft);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.hero-body h1 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.hero-body h1 a { color: inherit; }
.hero-body h1 a:hover { color: var(--amber-600); }

.hero-excerpt {
  color: var(--slate-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

.hero-meta strong { color: var(--slate-700); }

/* Cards — shadowed */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 1rem 1.1rem 1.15rem; }

.card-tag {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  margin-bottom: 0.4rem;
}

.card-body h2,
.card-body h3 {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.card-body h2 a,
.card-body h3 a { color: inherit; }
.card-body h2 a:hover,
.card-body h3 a:hover { color: var(--amber-600); }

.card-excerpt {
  font-size: 0.8125rem;
  color: var(--slate-600);
  margin-bottom: 0.6rem;
}

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

/* Card grid */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: calc(var(--gap) * 1.5);
}

/* Sidebar — right rail */
.sidebar { display: flex; flex-direction: column; gap: var(--gap); }

.widget {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.1rem;
}

.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-900);
  border-bottom: 2px solid var(--amber-500);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

.widget-list { list-style: none; }

.widget-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--concrete-200);
  font-size: 0.8125rem;
}

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

.widget-list a { color: var(--slate-800); font-weight: 600; }
.widget-list a:hover { color: var(--amber-600); }

.widget-list .w-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--concrete-300);
  border-radius: var(--radius-soft);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.newsletter-form button {
  width: 100%;
  padding: 0.55rem;
  background: var(--slate-800);
  color: var(--white);
  border: none;
  border-radius: var(--radius-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.newsletter-form button:hover { background: var(--amber-600); }

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

.section-head h2 {
  font-size: 1.125rem;
  color: var(--slate-900);
  font-weight: 700;
}

.section-head a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article — wide magazine */
.article-wide {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.article-header {
  padding: 2rem 2.5rem 1.25rem;
  max-width: 720px;
}

.article-header .article-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  margin-bottom: 0.6rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
}

.article-deck {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--concrete-200);
}

.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.byline-info { font-size: 0.8125rem; }
.byline-info strong { color: var(--slate-900); display: block; }
.byline-info span { color: var(--slate-500); font-size: 0.75rem; }

.article-hero-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 2rem 2.5rem 2.5rem;
  max-width: 720px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-700);
}

.article-content p { margin-bottom: 1.1rem; }

.article-content h2 {
  font-size: 1.25rem;
  color: var(--slate-900);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}

.article-content blockquote {
  border-left: 4px solid var(--amber-500);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--concrete-100);
  font-style: italic;
  color: var(--slate-600);
}

.article-content ul {
  margin: 0 0 1.1rem 1.25rem;
}

.article-content li { margin-bottom: 0.4rem; }

/* Articles listing */
.page-header {
  margin-bottom: calc(var(--gap) * 1.5);
  padding-bottom: var(--gap);
  border-bottom: 2px solid var(--slate-800);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--slate-600);
  font-size: 0.875rem;
}

.articles-list { display: flex; flex-direction: column; gap: var(--gap); }

.article-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-list-item:hover { box-shadow: var(--shadow-lg); }

.article-list-item .card-thumb { aspect-ratio: 16 / 9; }

.article-list-item .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

/* Static pages */
.static-page {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem 2.5rem;
}

.static-page h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.static-page .lead {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.static-page h2 {
  font-size: 1.125rem;
  color: var(--slate-900);
  margin: 1.5rem 0 0.6rem;
}

.static-page p,
.static-page li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-700);
  margin-bottom: 0.75rem;
}

.static-page ul { margin: 0 0 1rem 1.25rem; }

/* Contact form */
.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--concrete-300);
  border-radius: var(--radius-soft);
  font-size: 0.875rem;
  font-family: inherit;
  margin-bottom: 1rem;
}

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

.contact-form button {
  padding: 0.65rem 1.5rem;
  background: var(--amber-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius-soft);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form button:hover { background: var(--amber-500); }

.contact-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--concrete-200);
}

.contact-info p { font-size: 0.875rem; }

/* Footer — three column */
.site-footer {
  background: var(--slate-900);
  color: var(--concrete-300);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--amber-500);
  display: inline-block;
}

.footer-col p,
.footer-col li {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.footer-col ul { list-style: none; }

.footer-col a {
  color: var(--concrete-400);
}

.footer-col a:hover { color: var(--amber-100); }

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-700);
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Cookie — corner popup */
.cookie-popup {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 340px;
  background: var(--slate-900);
  color: var(--concrete-200);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  font-size: 0.8125rem;
  line-height: 1.45;
  border-left: 4px solid var(--amber-500);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-popup.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup p { margin-bottom: 0.85rem; }

.cookie-popup a { color: var(--amber-100); text-decoration: underline; }

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

.cookie-actions button {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: var(--radius-soft);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-accept {
  background: var(--amber-600);
  color: var(--white);
}

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

.cookie-decline {
  background: var(--slate-700);
  color: var(--concrete-300);
}

.cookie-decline:hover { background: var(--slate-600); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: var(--gap);
}

.breadcrumb a { color: var(--slate-600); }
.breadcrumb span { color: var(--slate-800); }

/* Responsive */
@media (max-width: 900px) {
  .grid-12 { display: block; }
  .col-8, .col-4 { grid-column: auto; }
  .sidebar { margin-top: calc(var(--gap) * 1.5); }
  .hero-split { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: 1fr; }
  .article-list-item { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 0.5rem; }
  .article-header,
  .article-content,
  .static-page { padding: 1.25rem; }
  .article-header h1 { font-size: 1.5rem; }
  .cookie-popup {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
