/* ==========================================================================
   Techy & Trendy — Responsive Modern Soft Warm Stylesheet
   Multi-Device Ergonomics: Mobile (320px-639px), Tablet (640px-1023px),
   Desktop (1024px-1919px), 2K Displays (1920px-2559px), & 4K (2560px+)
   Palette: Charcoal #161514, Cream Canvas #FAF8F5, Amber #F59E0B, Terracotta #E06D53, Teal #0D9488
   ========================================================================== */

:root {
  --bg-canvas: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-surface: #F3EFEA;
  --text-main: #161514;
  --text-muted: #57534E;
  --text-dim: #8E8880;
  
  --accent-amber: #F59E0B;
  --accent-amber-light: #FEF3C7;
  --accent-terracotta: #C2410C;
  --accent-terracotta-warm: #E06D53;
  --accent-terracotta-light: #FFEDD5;
  --accent-teal: #0D9488;
  --accent-teal-light: #CCFBF1;
  
  --border-light: #E6E2DB;
  --border-focus: #161514;
  --shadow-sm: 0 1px 3px rgba(22, 21, 20, 0.05);
  --shadow-md: 0 4px 16px rgba(22, 21, 20, 0.06);
  --shadow-lg: 0 10px 32px rgba(22, 21, 20, 0.08);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Root & Fluid Typography Across Display Resolutions
   ========================================================================== */
html {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* 2K Resolution Scaling (1440p / 1920px - 2559px) */
@media (min-width: 1920px) {
  html {
    font-size: 18px;
  }
}

/* 4K Resolution Scaling (2560px+) */
@media (min-width: 2560px) {
  html {
    font-size: 20px;
  }
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Fluid Adaptive Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
}

@media (min-width: 1920px) {
  .container {
    max-width: 1520px;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 1800px;
  }
}

/* Ergonomic Reading Container: Strict comfortable line length (65-80ch) */
.article-container {
  max-width: min(860px, 100%);
}

@media (min-width: 1920px) {
  .article-container {
    max-width: 1020px;
  }
}

/* ==========================================================================
   Header & Navigation (Mobile, Tablet, Desktop, 2K)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(64px, 8vh, 76px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  min-height: 44px;
}

.logo-icon {
  font-size: 1.35rem;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.highlight-techy { color: var(--accent-teal); }
.amp { color: var(--text-dim); font-size: 0.9em; margin: 0 1px; }
.highlight-trendy { color: var(--accent-terracotta); }

.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: background-color 0.15s;
}

.btn-search-icon:hover {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.btn-social-chip {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all 0.15s ease;
}

@media (min-width: 992px) {
  .btn-social-chip {
    display: inline-flex;
    align-items: center;
  }
}

.btn-social-chip:hover {
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0 14px;
  height: 38px;
  min-height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  outline: none;
}

.btn-lang-toggle:hover {
  background: #161514;
  color: #FFFFFF;
  border-color: #161514;
}

.btn-lang-toggle .lang-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.btn-lang-toggle:hover .lang-icon {
  color: #FFFFFF;
}

/* Article Audio Player (Web Speech API) */
.article-audio-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAF8F5;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin: 20px 0 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.article-audio-box.playing {
  border-color: var(--accent-terracotta);
  background: #FFF7ED;
}

.audio-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-audio-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #161514;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-audio-control:hover {
  background: var(--accent-terracotta);
}

.btn-audio-stop {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-audio-stop:hover {
  color: #DC2626;
  border-color: #DC2626;
}

.audio-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.audio-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-speed-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audio-speed-dropdown {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: var(--text-main);
  cursor: pointer;
}

.btn-social-chip.tiktok:hover { color: var(--accent-terracotta); }
.btn-social-chip.youtube:hover { color: #DC2626; }

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s;
}

.hamburger-btn:hover {
  background-color: var(--bg-surface);
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile Slide Drawer */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-canvas);
  border-bottom: 1.5px solid var(--border-light);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.mobile-social-pill {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  text-align: center;
}

/* ==========================================================================
   Buttons & Core Components
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--text-main);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-primary:hover {
  background-color: #27272A;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-main);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  min-height: 38px;
}

.category-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-teal, #0D9488);
  background-color: var(--accent-teal-light, rgba(13, 148, 136, 0.12));
  padding: 2px 7px;
  border-radius: var(--radius-full, 9999px);
  display: inline-block;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  vertical-align: middle;
}

.category-pill-lg {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-teal, #0D9488);
  background-color: var(--accent-teal-light, rgba(13, 148, 136, 0.12));
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  display: inline-block;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  vertical-align: middle;
}

.dot-separator {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.reading-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: clamp(40px, 8vw, 84px) 0 clamp(32px, 6vw, 60px);
  text-align: center;
}

.hero-container {
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: clamp(16px, 3vw, 28px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw + 0.4rem, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto clamp(24px, 4vw, 36px);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  margin-bottom: clamp(32px, 5vw, 54px);
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.channels-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
  padding-top: clamp(20px, 3vw, 30px);
}

@media (min-width: 640px) {
  .channels-strip {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.strip-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.strip-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.strip-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  transition: all 0.15s;
}

.strip-item:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* ==========================================================================
   Featured Spotlight Section
   ========================================================================== */
.featured-section {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 32px);
  gap: 16px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terracotta);
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw + 0.4rem, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.15s;
}

.view-all-link:hover {
  color: var(--text-main);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.featured-media-col {
  background-color: #121214;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 35vw, 420px);
}

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

.featured-info-col {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.badge-featured {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-amber);
  background-color: var(--accent-amber-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.featured-title {
  font-size: clamp(1.35rem, 2vw + 0.4rem, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

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

.featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   Responsive Articles Grid (Mobile, Tablet, Desktop, 2K/4K)
   ========================================================================== */
.latest-section, .catalogue-section {
  padding: clamp(32px, 5vw, 64px) 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}

/* Tablet (iPad / 640px - 1023px) */
@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px - 1599px) */
@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2K Ultrawide (1600px+) */
@media (min-width: 1600px) {
  .catalogue-section .articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D6D1C7;
}

.article-card-cover-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.article-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-cover {
  transform: scale(1.03);
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bg-surface), #E5E0D8);
}

.placeholder-icon {
  font-size: 2rem;
}

.placeholder-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.media-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(24, 24, 27, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media-type-badge.youtube { background-color: #DC2626; }
.media-type-badge.tiktok { background-color: #111827; }
.media-type-badge.instagram { background-color: #C026D3; }
.media-type-badge.twitter { background-color: #0284C7; }

.article-card-content {
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.article-card-title {
  font-size: clamp(1.05rem, 1.2vw + 0.4rem, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.article-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-card-title a:hover {
  color: var(--accent-terracotta);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.article-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.article-card-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  min-height: 36px;
  transition: gap 0.15s ease;
}

.btn-read-more:hover {
  gap: 7px;
  color: var(--accent-terracotta);
}

/* ==========================================================================
   Connect Banner
   ========================================================================== */
.connect-banner-section {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
}

.connect-banner-card {
  background: linear-gradient(135deg, #18181B, #27272A);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px);
  text-align: center;
}

.connect-banner-content {
  max-width: 640px;
  margin: 0 auto;
}

.connect-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  background-color: rgba(245, 158, 11, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.connect-banner-card h2 {
  font-size: clamp(1.5rem, 3vw + 0.3rem, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.connect-banner-card p {
  color: #A1A1AA;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 28px;
}

.connect-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
}

@media (min-width: 480px) {
  .connect-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.connect-links .btn-secondary {
  color: #FFFFFF;
  border-color: #52525B;
}

.connect-links .btn-secondary:hover {
  background-color: #3F3F46;
}

/* ==========================================================================
   Article Detail Page & Responsive Media Embeds
   ========================================================================== */
.article-detail-header {
  padding: clamp(32px, 6vw, 60px) 0 clamp(20px, 4vw, 36px);
  text-align: left;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-headline {
  font-size: clamp(1.8rem, 4vw + 0.4rem, 2.85rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.article-lead-excerpt {
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Embed Box */
.article-media-showcase {
  margin: clamp(20px, 3vw, 36px) 0 clamp(32px, 5vw, 48px);
}

.media-box-container {
  background-color: #18181B;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.media-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(14px, 2.5vw, 20px);
  background-color: #242428;
  border-bottom: 1px solid #333338;
  gap: 10px;
}

.media-source-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: #F4F4F5;
}

.media-external-link {
  font-size: 0.8rem;
  color: var(--accent-amber);
  font-weight: 600;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.media-box-body {
  padding: clamp(12px, 2.5vw, 24px);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #121214;
}

.video-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.video-aspect-16-9 {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
}

/* Vertical Shorts / TikTok / Reels: Perfect Fit for Mobile & Desktop */
.shorts-aspect, .tiktok-aspect, .instagram-aspect {
  width: 100%;
  max-width: min(380px, 90vw);
  max-height: min(680px, 75vh);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.embed-iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  border: none;
}

.article-hero-cover-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Markdown Body (Prose Ergonomics)
   ========================================================================== */
.markdown-body {
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.15rem);
  line-height: 1.8;
  color: #27272A;
  word-break: break-word;
}

.markdown-body h2 {
  font-size: clamp(1.35rem, 2vw + 0.4rem, 1.85rem);
  font-weight: 800;
  margin: clamp(28px, 4vw, 44px) 0 16px;
  letter-spacing: -0.02em;
}

.markdown-body h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.3rem, 1.45rem);
  font-weight: 700;
  margin: clamp(22px, 3vw, 32px) 0 12px;
}

.markdown-body p {
  margin-bottom: 22px;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 24px;
  padding-left: clamp(20px, 3vw, 32px);
}

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body blockquote {
  border-left: 4px solid var(--accent-amber);
  background-color: var(--bg-surface);
  padding: 16px clamp(16px, 3vw, 24px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-main);
}

.markdown-body pre {
  background-color: #18181B;
  color: #E4E4E7;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 24px 0;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--bg-surface);
  padding: 3px 6px;
  border-radius: 4px;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-body a {
  color: var(--accent-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Markdown Tables (Modern Soft Warm Theme)
   ========================================================================== */
.markdown-body table {
  width: 100%;
  margin: clamp(28px, 4vw, 40px) 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-subtle, #E6E2DB);
  background-color: var(--bg-card, #FFFFFF);
  box-shadow: 0 4px 16px rgba(36, 30, 28, 0.04);
  overflow: hidden;
}

.markdown-body thead {
  background-color: #F7F5F0;
}

.markdown-body th {
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #161514);
  text-align: left;
  letter-spacing: -0.01em;
  border-bottom: 2px solid #E2DDD4;
  background-color: #F7F5F0;
  white-space: nowrap;
}

.markdown-body td {
  padding: 14px 20px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #3F3F46;
  border-bottom: 1px solid #ECE8E1;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}

/* First Column: Fixed width, bolder text, clean spacing */
.markdown-body th:first-child,
.markdown-body td:first-child {
  width: 28%;
  min-width: 190px;
  font-weight: 700;
  color: var(--text-main, #161514);
  background-color: rgba(247, 245, 240, 0.5);
  border-right: 1px solid #ECE8E1;
  white-space: nowrap;
}

/* Alternating subtle warm row background */
.markdown-body tbody tr:nth-child(even) td {
  background-color: #FCFBF9;
}

.markdown-body tbody tr:nth-child(even) td:first-child {
  background-color: #F4F1EA;
}

/* Hover highlight */
.markdown-body tbody tr:hover td {
  background-color: rgba(194, 65, 12, 0.035);
}

.markdown-body tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive horizontal scroll for smaller mobile screens */
@media (max-width: 640px) {
  .markdown-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm, 8px);
  }

  .markdown-body th,
  .markdown-body td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .markdown-body th:first-child,
  .markdown-body td:first-child {
    min-width: 140px;
    white-space: normal;
  }
}

/* Tags & Share */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(32px, 4vw, 48px) 0 24px;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-item {
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.share-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 28px);
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .share-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.share-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.share-btn:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-main);
}

/* Related section */
.related-section {
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
}

.related-heading {
  font-size: clamp(1.25rem, 2vw + 0.3rem, 1.55rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.related-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.related-card-cover-link {
  display: block;
  width: 100%;
  height: 135px;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.related-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-cover {
  transform: scale(1.04);
}

.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5EBE1 0%, #E8DFD8 100%);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.related-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 8px;
  height: 2.7em;
  max-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.related-card h4 a {
  color: var(--text-main);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.related-card h4 a:hover {
  color: var(--accent-terracotta);
}

.related-card p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  height: 2.9em;
  max-height: 2.9em;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.related-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.related-read-more:hover {
  color: var(--accent-terracotta);
}
  font-weight: 700;
  color: var(--accent-teal);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Articles Page Search & Filter Controls (Mobile to 2K)
   ========================================================================== */
.page-header-section {
  padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}

.page-header-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  background-color: var(--accent-terracotta-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(1.8rem, 4vw + 0.4rem, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto clamp(24px, 3vw, 36px);
}

.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .search-filter-bar {
    flex-direction: row;
    align-items: center;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 46px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-card);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--text-main);
}

.clear-search-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .filter-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}

.filter-select {
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.btn-search-submit {
  height: 48px;
  padding: 0 24px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s;
}

.pagination-btn:hover:not(.disabled) {
  border-color: var(--text-main);
  background-color: var(--bg-surface);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About Page & Mascots
   ========================================================================== */
.about-hero-section {
  padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 36px);
}

.mascot-intro-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

@media (min-width: 640px) {
  .mascot-intro-box {
    grid-template-columns: 1fr 1fr;
  }
}

.mascot-card {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mascot-card.techy { border-left: 4px solid var(--accent-teal); }
.mascot-card.trendy { border-left: 4px solid var(--accent-terracotta); }

.mascot-avatar {
  font-size: 2rem;
}

.mascot-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mascot-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 28px);
  margin-top: 16px;
}

.contact-box p {
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #161514;
  color: #D4D4D8;
  padding: clamp(48px, 7vw, 76px) 0 28px;
  margin-top: clamp(48px, 7vw, 84px);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 54px);
  border-bottom: 1px solid #27272A;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

.footer-logo {
  color: #FFFFFF;
}

.footer-tagline {
  color: #A1A1AA;
  font-size: 0.9rem;
  max-width: 380px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-links-group h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group a {
  color: #A1A1AA;
  font-size: 0.9rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-links-group a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #71717A;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    text-align: left;
  }
}

.built-with {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ==========================================================================
   Public Form Styling (Unslopped & Soft-Warm Design Tokens)
   ========================================================================== */
.contact-form-card {
  margin-top: 36px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(22, 21, 20, 0.04);
}

.contact-form-title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.contact-form-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.mt-3 {
  margin-top: 0;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label.required::after {
  content: " *";
  color: var(--accent-terracotta);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text-main);
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

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

.btn-form-submit {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  background-color: var(--text-main);
  color: #FFFFFF;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-form-submit:hover:not(:disabled) {
  background-color: #27272A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.15);
}

.btn-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mascot Intro Box on About Page */
.mascot-intro-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 36px;
}

@media (max-width: 640px) {
  .mascot-intro-box {
    grid-template-columns: 1fr;
  }
}

.mascot-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FAF8F5;
  transition: border-color 0.15s ease;
}

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

.mascot-card.techy {
  border-left: 4px solid var(--accent-teal);
}

.mascot-card.trendy {
  border-left: 4px solid var(--accent-terracotta);
}

.mascot-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.mascot-card.techy .mascot-badge-icon {
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-teal);
}

.mascot-card.trendy .mascot-badge-icon {
  background: rgba(194, 65, 12, 0.12);
  color: var(--accent-terracotta);
}

.mascot-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.mascot-text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   Live Article Draft Preview Banner
   ========================================================================== */
.preview-mode-banner {
  background-color: #18181B;
  color: #FFFFFF;
  border-bottom: 2px solid var(--accent-terracotta);
  padding: 12px 0;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.preview-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.preview-badge {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.preview-hint {
  color: #E4E4E7;
}
