/* ============================================================
   EDITORIAL POLISH LAYER — 2026-04-26
   Layered on top of style.css to bring publication look closer
   to SemiAnalysis × Stratechery × The Verge tier.
   Drops loud glows, tightens typography, refines cards & hero.
   ============================================================ */

:root {
  /* Brand accent — semis blue (override in airevolution-site to violet) */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.20);
  --accent-glow-strong: rgba(59, 130, 246, 0.40);

  /* Cooler, calmer dark palette */
  --bg-primary: #0a0b0f;
  --bg-secondary: #0f1016;
  --bg-card: #14151c;
  --bg-card-hover: #1a1c25;
  --surface: #1d1f29;

  /* Tightened borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* Sharper text contrast */
  --text-primary: #f8f9fb;
  --text-secondary: #b8bfcc;
  --text-muted: #7e8694;

  /* Editorial type sizes */
  --reading-width: 65ch;
}

/* --- Typography refinements ----------------------------------- */
body { line-height: 1.65; }

.heading-xl {
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.heading-lg {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.heading-md {
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.body-lg {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* Kill multi-color gradient text — replace with solid editorial palette */
.text-gradient {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}

/* Article-body reading width when used inline */
.article-body, .news-list-item__text, .featured-card__text {
  max-width: var(--reading-width);
}

/* --- Background FX: drop the noise, keep one subtle accent halo --- */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
}
.glow-orb {
  opacity: 0.16;
  filter: blur(180px);
}
.glow-orb--violet {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -20%; right: -10%;
}
.glow-orb--cyan { display: none; }

/* --- Navigation: more editorial, less startup --------------- */
.nav { padding: 1.4rem 0; }
.nav.scrolled {
  background: rgba(10, 11, 15, 0.80);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__logo-mark {
  border-radius: 8px;
  background: var(--accent);
  width: 28px; height: 28px;
  font-size: 0.75rem;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.005em;
}
.nav__link:hover, .nav__link.active { color: var(--text-primary); }
.nav__link.active::after {
  height: 2px;
  background: var(--accent);
  box-shadow: none;
  bottom: -10px;
}

/* --- Hero: more whitespace, less density -------------------- */
.hero {
  min-height: 70vh;
  padding-top: 7rem;
  padding-bottom: 3rem;
}
.hero__badge { margin-bottom: 1.5rem; }
.hero__title { margin-bottom: 1.25rem; max-width: 18ch; }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- Eyebrow label: simpler dot, no glow ------------------- */
.label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  font-weight: 700;
}
.label::before {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: none;
}

/* --- Buttons: square > pill; subtle hover lift ------------- */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn--primary {
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 16px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 8px 24px var(--accent-glow-strong);
}
.btn--outline {
  border: 1px solid var(--border-hover);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
}

/* --- Cards: clean borders, accent stripe on hover ----------- */
.card {
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.card::before { display: none; }
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.card__icon {
  background: rgba(59,130,246,0.10);
  color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.card__title { font-size: 1.1rem; }
.card__text { font-size: 0.92rem; line-height: 1.6; }

/* --- Stats: drop gradient numbers, use solid color --------- */
.stats-bar { margin-top: 3rem; }
.stat__number {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat__label { font-size: 0.78rem; letter-spacing: 0.02em; }

/* --- Featured card: bigger image, cleaner typography ------- */
.featured-card { border-radius: 14px; }
.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 48px rgba(0,0,0,0.32);
}
.featured-card__content { padding: 2.5rem; }
.featured-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
}
.featured-card__title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.featured-card__text { font-size: 0.95rem; line-height: 1.65; }
.featured-card__meta { font-size: 0.78rem; letter-spacing: 0.01em; }

/* --- News list: bigger images, tighter typography ----------- */
.news-list-item {
  grid-template-columns: 320px 1fr;
  gap: 0;
  border-radius: 12px;
}
.news-list-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transform: none;
}
.news-list-item__content {
  padding: 1.75rem 2rem;
}
.news-list-item__tag {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}
.news-list-item__title {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.news-list-item__text {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

/* --- News card (homepage grid) ------------------------------ */
.news-card { border-radius: 12px; }
.news-card__body { padding: 1.5rem 1.75rem 1.75rem; }
.news-card__tag {
  background: transparent;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--accent-light);
  font-weight: 700;
}
.news-card__tag--ai,
.news-card__tag--semi { color: var(--accent-light); }

/* --- Section headers: tighter, more editorial -------------- */
.section-header { margin-bottom: 3rem; }

/* --- CTA section: subtler, no gradient orb behind --------- */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
}
.cta-section::before { display: none; }

/* --- Footer: better hierarchy ------------------------------ */
.footer { padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer__heading {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.footer__link { font-size: 0.88rem; padding: 0.25rem 0; }
.footer__link:hover { color: var(--text-primary); }
.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: none;
}

/* --- Page header (inner pages) ----------------------------- */
.page-header { padding: 8rem 0 3rem; }
.page-header::after {
  width: 60px;
  height: 2px;
  background: var(--accent);
}

/* --- Article cards on pillar pages ------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.article-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.article-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card__image img { transform: scale(1.04); }
.article-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-card__pillar {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  font-weight: 700;
}
.article-card h3 {
  font-size: 1.02rem;
  line-height: 1.32;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.article-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}
.article-card time {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 0.4rem;
}

/* --- Pillar page hero (narrow variant) --------------------- */
.hero-narrow {
  padding: 7rem 0 2rem;
  min-height: auto;
}

/* --- AdSense slot: tighter integration --------------------- */
.ad-slot, .ad-slot-inline {
  margin: 2.5rem auto;
  max-width: var(--container-max);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Article page body: editorial typography -------------- */
.article-content {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 2rem 0;
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.article-content h1, .article-content h2, .article-content h3 {
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}
.article-content h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.1; }
.article-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.7rem); line-height: 1.25; }
.article-content h3 { font-size: 1.2rem; line-height: 1.3; }
.article-content p { margin-bottom: 1.4rem; }
.article-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-content a:hover { color: var(--accent); text-decoration-thickness: 2px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--text-primary);
}
.article-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  border: 1px solid var(--border);
}

/* --- Brand-split announcement banner refinement ------------ */
[role="region"][aria-label="Brand split announcement"] {
  background: linear-gradient(90deg, var(--bg-secondary), var(--bg-card)) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.8rem 1rem !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.005em;
}

/* --- Subtle scroll-fade for hero on inner pages ------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero, .page-header, .hero-narrow {
    animation: fadeUp 0.6s ease-out;
  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile refinements ----------------------------------- */
@media (max-width: 768px) {
  .heading-xl { font-size: clamp(2rem, 8vw, 2.6rem); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__content { padding: 1.5rem; }
  .news-list-item { grid-template-columns: 1fr; }
  .news-list-item__content { padding: 1.25rem 1.5rem 1.5rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 1.25rem; }
}
