@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/geist-variable-latin.woff2") format("woff2");
}

:root {
  --font-neo-grotesk: "Geist", "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --bg-dark: #000000;
  --text: #151515;
  --muted: #666666;
  --line: #e5e7eb;
  --brand: #000000;
  --brand-2: #111111;
  --brand-dark: #000000;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-neo-grotesk);
  font-weight: 300;
  letter-spacing: -0.01em;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a:hover {
  color: #000000;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  background: #fff;
  z-index: 10;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
  background: transparent;
}

.logo img {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #000000;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  color: #fff;
  background: #000000;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: #000000;
}

.btn-dark {
  background: #000000;
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 56px;
  background:
    radial-gradient(circle at 14% 5%, rgba(0, 0, 0, 0.06), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(0, 0, 0, 0.05), transparent 34%),
    linear-gradient(180deg, #fff, #f8f8f8 76%, #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #000000;
  font-weight: 750;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000000;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.55rem, 5vw, 4.9rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric {
  padding: 18px;
  background: var(--bg-soft);
  border-radius: 18px;
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 24px 0 32px;
}

.category-pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.category-pill.active {
  color: #fff;
  background: #000000;
  border-color: #000000;
}

.featured {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-art {
  min-height: 360px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.18), transparent 31%),
    radial-gradient(circle at 66% 68%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #000000, #111111 52%, #333333);
  position: relative;
}

.featured-art::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
}

.featured-content {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.tag {
  color: #000000;
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.card-link {
  font-weight: 800;
  color: #000000;
}

.cta {
  border-radius: 34px;
  padding: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(135deg, #000000, #111111 58%, #333333);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 700px;
}

.article-hero {
  padding: 62px 0 34px;
  background: linear-gradient(180deg, #fff, #f8f8f8);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 46px;
  align-items: start;
  padding: 46px 0 80px;
}

.toc {
  position: sticky;
  top: 102px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 7px 0;
}

.toc a:hover {
  color: #000000;
}

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

.article-body p {
  color: #393939;
  margin: 0 0 20px;
}

.article-body h2 {
  margin-top: 44px;
}

.article-body h3 {
  margin-top: 28px;
}

.article-body ul {
  color: #393939;
  padding-left: 22px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 14px;
}

.insight-box,
.takeaway-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: var(--bg-soft);
  margin: 28px 0;
}

.takeaway-box {
  background: #000000;
  color: #fff;
}

.takeaway-box p,
.takeaway-box li {
  color: rgba(255, 255, 255, 0.82);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 26px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}

th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f3f4f6;
  font-size: 0.92rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Search modal */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
}

.search-overlay.open {
  display: flex;
}

.search-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  margin: 0 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.search-modal-header svg {
  color: #000000;
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #111827;
  background: transparent;
}

.search-modal-input::placeholder {
  color: #9ca3af;
}

.search-close {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-close:hover {
  background: #e5e7eb;
  color: #000000;
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 0.95rem 1rem;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.search-result-item + .search-result-item {
  margin-top: 0.25rem;
}

.search-result-item:hover,
.search-result-item.highlighted {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.search-result-body {
  min-width: 0;
}

.search-result-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.search-result-item:hover .search-result-title {
  color: #000000;
}

.search-result-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}

/* Extra black theme cleanup */
.hero-back,
.featured-label,
.article-body a,
.card-link {
  color: #000000;
}

.hero-back:hover,
.article-body a:hover,
.card-link:hover {
  color: #111111;
}

.filter-pill.active,
.filter-pill:hover,
.category-pill.active {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}

.blog-search-trigger:hover {
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

.search-modal-header svg,
.search-result-title {
  color: #000000;
}

.search-result-thumb,
.featured-wiz-img,
.author-avatar,
.blog-card-avatar,
.blog-card-img-placeholder {
  background: #000000 !important;
}

.nav .btn-primary,
.btn-primary {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

.nav .btn-primary:hover,
.btn-primary:hover {
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 920px) {
  .hero-grid,
  .featured,
  .cta,
  .article-shell {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .featured-content,
  .cta {
    padding: 26px;
  }

  h1 {
    font-size: 2.35rem;
  }
}
