/* ═══════════════════════════════════════════════════════════════
   MERCURIO — Revista de E-commerce Latino
   Design System: shadcn/ui structure × Claude editorial warmth
   ═══════════════════════════════════════════════════════════════ */

/* ── shadcn-style CSS Custom Properties (HSL) ── */
:root {
  /* Background & Foreground */
  --background: 45 20% 96%;        /* parchment #f5f4ed */
  --foreground: 60 4% 8%;          /* near-black #141413 */

  /* Card */
  --card: 40 40% 98%;              /* ivory #faf9f5 */
  --card-foreground: 60 4% 8%;

  /* Primary — Terracotta */
  --primary: 14 55% 48%;           /* #c96442 */
  --primary-foreground: 40 40% 98%;

  /* Secondary */
  --secondary: 45 12% 90%;         /* warm sand #e8e6dc */
  --secondary-foreground: 45 8% 30%;

  /* Muted */
  --muted: 43 10% 93%;             /* border cream #f0eee6 */
  --muted-foreground: 40 4% 42%;   /* olive gray #5e5d59 */

  /* Accent */
  --accent: 14 55% 48%;            /* terracotta */
  --accent-foreground: 40 40% 98%;

  /* Destructive */
  --destructive: 0 55% 42%;
  --destructive-foreground: 40 40% 98%;

  /* Surface dark */
  --surface-dark: 60 3% 18%;       /* #30302e */
  --surface-dark-foreground: 40 30% 88%;

  /* Border & Input */
  --border: 45 12% 88%;
  --input: 45 12% 88%;
  --ring: 14 55% 48%;

  /* Radius */
  --radius: 0.5rem;
  --radius-card: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

/* ── Typography ── */
h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.35rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: hsl(14 55% 38%); }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: hsl(var(--card));
}

/* ── Grid System ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── shadcn-style Components ── */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
  background-color: hsl(14 55% 40%);
  color: hsl(var(--primary-foreground));
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: 0 0 0 1px hsl(45 12% 82%);
}
.btn-secondary:hover {
  background-color: hsl(45 12% 85%);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-ghost:hover {
  background-color: hsl(var(--muted));
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  box-shadow: 0 0 0 1px hsl(var(--border));
}
.btn-outline:hover {
  background-color: hsl(var(--muted));
}

.btn-sm { font-size: 0.8125rem; padding: 0.375rem 0.875rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.75rem; }

/* Card */
.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow:
    0 0 0 1px hsla(45, 12%, 80%, 0.5),
    0 1px 3px hsla(0, 0%, 0%, 0.04),
    0 4px 12px hsla(0, 0%, 0%, 0.03);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px hsla(45, 12%, 75%, 0.6),
    0 2px 6px hsla(0, 0%, 0%, 0.05),
    0 8px 24px hsla(0, 0%, 0%, 0.04);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-tag {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(14 55% 48%);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.card-title a { color: inherit; }
.card-title a:hover { color: hsl(var(--primary)); }

.card-excerpt {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.75rem;
  color: hsl(40 4% 55%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  background-color: hsl(14 55% 48% / 0.12);
  color: hsl(14 55% 48%);
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* Input */
.input {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: none;
  box-shadow: 0 0 0 1px hsl(var(--border));
  outline: none;
  transition: box-shadow 0.2s ease;
  width: 100%;
}
.input:focus {
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
}
.input::placeholder {
  color: hsl(40 4% 55%);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 hsl(var(--border) / 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-brand span {
  color: hsl(var(--primary));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--foreground));
}

.nav-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-search-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pagination */
.pagination a[aria-current="page"] {
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  background-color: hsl(var(--background));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-tag {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground));
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  box-shadow:
    0 0 0 1px hsla(45, 12%, 80%, 0.5),
    0 4px 24px hsla(0, 0%, 0%, 0.06);
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

.section-title-line {
  position: relative;
  padding-bottom: 1rem;
}
.section-title-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 3px;
}

.section-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Featured Article (large card) ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: hsl(var(--card));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px hsla(45, 12%, 80%, 0.5),
    0 2px 8px hsla(0, 0%, 0%, 0.04),
    0 8px 32px hsla(0, 0%, 0%, 0.04);
}

.featured-card-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.featured-card-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-card-excerpt {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Country Section Cards ── */
.country-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.country-card:hover {
  transform: translateY(-3px);
}

.country-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsla(0, 0%, 0%, 0.75) 0%,
    hsla(0, 0%, 0%, 0.2) 50%,
    hsla(0, 0%, 0%, 0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.country-card-flag {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.country-card-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.country-card-count {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Newsletter ── */
.newsletter {
  background-color: hsl(var(--surface-dark));
  color: hsl(var(--surface-dark-foreground));
  padding: 4rem 0;
  text-align: center;
}

.newsletter-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.newsletter-subtitle {
  color: hsl(40 15% 70%);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form .input {
  background: hsla(0, 0%, 100%, 0.1);
  color: white;
  box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.15);
}
.newsletter-form .input::placeholder {
  color: hsl(40 15% 60%);
}
.newsletter-form .input:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.5);
}

.newsletter-form .btn-primary {
  flex-shrink: 0;
}

/* ── Footer ── */
.footer {
  background-color: hsl(var(--foreground));
  color: hsl(40 10% 65%);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(40 10% 55%);
  max-width: 300px;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: hsl(40 10% 60%);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(40 10% 45%);
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 0;
}

/* ── Article Page ── */
.article-hero {
  padding: 4rem 0 2rem;
  background-color: hsl(var(--card));
}

.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Imagen de portada del artículo ── */
.article-hero-image {
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.08);
}

.article-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.article-headline {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground));
}

.article-dek {
  font-size: 1.15rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(40 4% 48%);
  padding-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
}

.article-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.article-featured-image {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.article-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px hsla(45, 12%, 80%, 0.5),
    0 4px 24px hsla(0, 0%, 0%, 0.06);
}

.article-body {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--foreground));
}

.article-body h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: hsl(var(--foreground));
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

/* ── Imágenes dentro del artículo ── */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  display: block;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  margin: 0 0 0.5rem;
}

.article-body figcaption {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.article-body blockquote {
  border-left: 3px solid hsl(var(--primary));
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: hsl(var(--card));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}

.article-body .highlight-box {
  background-color: hsl(var(--surface-dark));
  color: hsl(var(--surface-dark-foreground));
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.article-body .highlight-box h3 {
  color: white;
  margin-top: 0;
}

.article-body .data-point {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.article-body .data-point-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: hsl(var(--card));
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px hsl(var(--border) / 0.6);
}
.article-body .data-point-value {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
.article-body .data-point-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* ── Related Articles ── */
.related-articles {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.related-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

/* ── CSS-only image placeholders (decorative gradient backgrounds) ── */
.img-placeholder {
  background: linear-gradient(135deg,
    hsl(var(--primary)) 0%,
    hsl(20 50% 55%) 30%,
    hsl(30 40% 65%) 60%,
    hsl(15 45% 50%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

.img-placeholder-arg {
  background: linear-gradient(135deg, #75aadb 0%, #5b8ec9 40%, #4194d9 100%);
}
.img-placeholder-col {
  background: linear-gradient(135deg, #f4c542 0%, #e8b730 40%, #d4a520 100%);
}
.img-placeholder-mex {
  background: linear-gradient(135deg, #2d8c4a 0%, #1a7a38 40%, #0d6b2c 100%);
}
.img-placeholder-dark {
  background: linear-gradient(135deg, #2a2a28 0%, #3d3d3a 60%, #4a4a47 100%);
}
.img-placeholder-warm {
  background: linear-gradient(135deg, #d4956b 0%, #c96442 50%, #b85432 100%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > * { min-width: 0; }
  .hero .img-placeholder { display: none; }
  .hero-image { order: -1; margin-bottom: 0.5rem; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-image { aspect-ratio: 16/9; min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .article-body .data-point { grid-template-columns: 1fr; }
  .featured-card-body { padding: 1.5rem; }

  .nav-brand { font-size: 1.15rem; white-space: nowrap; }
  .nav-inner { padding: 0 1rem; gap: 0.5rem; }
  .nav-cta { gap: 0.25rem; }

  /* Trending / latest → horizontal scroll on mobile */
  .grid-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* bleed to screen edges for an immersive carousel feel */
    margin: 0 -1.5rem;
    padding: 0.25rem 1.5rem 1rem;
  }
  .grid-scroll::-webkit-scrollbar { display: none; }
  .grid-scroll > * { scroll-snap-align: start; }
  .grid-scroll .card-title { font-size: 1.1rem; }
  .grid-scroll .card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ── Animations ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease forwards;
  }
  .fade-in:nth-child(2) { animation-delay: 0.1s; }
  .fade-in:nth-child(3) { animation-delay: 0.2s; }
  .fade-in:nth-child(4) { animation-delay: 0.3s; }
  .fade-in:nth-child(5) { animation-delay: 0.4s; }
  .fade-in:nth-child(6) { animation-delay: 0.5s; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ═══════════ Design polish ═══════════ */

/* Selection color on-brand */
::selection {
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--foreground));
}

/* Smooth focus rings for keyboard users only */
:focus-visible {
  outline: 2px solid hsl(var(--ring) / 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nav: subtle brand accent on hover */
.nav-brand { transition: color 0.2s ease; }
.nav-brand:hover { color: hsl(var(--primary)); }

/* Hero: refined title with optical accent line under the tag */
.hero-tag {
  position: relative;
  padding-left: 1.75rem;
}
.hero-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 2px;
  background: hsl(var(--primary));
}

/* Cards: smoother lift + image zoom on hover */
.card {
  display: flex;
  flex-direction: column;
}
.card .card-image {
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover .card-image {
  transform: scale(1.03);
}
.card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card .card-meta {
  margin-top: auto;
}

/* Card tag → refined pill look */
.card-tag, .featured-card-tag, .article-category {
  display: inline-flex;
  align-items: center;
}

/* Card title links: animated underline */
.card-title a {
  background-image: linear-gradient(hsl(var(--primary)), hsl(var(--primary)));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.2s ease;
  padding-bottom: 1px;
}
.card-title a:hover {
  background-size: 100% 1.5px;
}

/* Country cards: gentle zoom of the gradient block */
.country-card .img-placeholder {
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.country-card:hover .img-placeholder {
  transform: scale(1.05);
}
.country-card-name {
  transition: transform 0.3s ease;
}
.country-card:hover .country-card-name {
  transform: translateY(-2px);
}

/* Buttons: micro-interaction */
.btn { transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.btn-primary {
  box-shadow: 0 1px 2px hsl(14 55% 30% / 0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 14px hsl(14 55% 40% / 0.3);
  transform: translateY(-1px);
}
.btn-lg:active, .btn:active { transform: translateY(0); }

/* Featured card: image subtle zoom container */
.featured-card { transition: box-shadow 0.3s ease; }
.featured-card:hover {
  box-shadow:
    0 0 0 1px hsla(45, 12%, 75%, 0.6),
    0 4px 14px hsla(0, 0%, 0%, 0.06),
    0 16px 48px hsla(0, 0%, 0%, 0.06);
}

/* Section title accent line: animated width */
.section-title-line::after {
  transition: width 0.4s ease;
}
.section-header:hover .section-title-line::after {
  width: 4.5rem;
}

/* Section link arrow nudge */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.section-link:hover {
  gap: 0.5rem;
}

/* Newsletter: soft radial glow */
.newsletter {
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, hsl(14 55% 48% / 0.18), transparent 70%);
  pointer-events: none;
}
.newsletter .container { position: relative; }

/* Article body: drop cap on first paragraph */
.article-body > p:first-of-type::first-letter {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 3.2rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.35rem 0.6rem 0 0;
  color: hsl(var(--primary));
}

/* Article links underline */
.article-body p a {
  border-bottom: 1px solid hsl(var(--primary) / 0.35);
  transition: border-color 0.2s ease;
}
.article-body p a:hover {
  border-color: hsl(var(--primary));
}

/* Reading progress feel: heading anchor accent */
.article-body h2 {
  position: relative;
}

/* Pagination polish */
.pagination .btn { min-width: 2.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-padding-top: 5rem; }
}
