:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f2f5f9;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0f172a;
  --blue: #2563eb;
  --green: #16a34a;
  --purple: #7c3aed;
  --max: 1180px;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100vw - 32px)); margin: 0 auto; }
.site-header {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.top-nav a:hover,
.story-card h3 a:hover,
.popular-list a:hover,
.cta-link:hover,
.subtle-link:hover,
.topic-card h3 a:hover,
.article-kicker a:hover,
.article-tags a:hover,
.directory-card a:hover {
  color: var(--blue);
}
.hero,
.section,
.directory,
.article-main {
  padding: 28px 0;
}
.hero-grid,
.latest-grid,
.footer-grid,
.article-layout {
  display: grid;
  gap: 24px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}
.hero-story,
.story-card,
.rail-box,
.topic-card,
.research-strip,
.directory-card,
.article-shell,
.site-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  overflow: hidden;
  border-radius: 24px;
}
.hero-story__content {
  padding: 28px;
}
.hero-story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-story h1,
.section-head h1,
.section-head h2,
.article-shell h1 {
  margin: 12px 0 14px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.hero-story h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 10ch; }
.hero-story p,
.story-card p,
.rail-box p,
.topic-card p,
.article-dek,
.article-body p,
.site-footer p,
.directory-card p,
.subtle-text {
  color: var(--muted);
  line-height: 1.78;
}
.hero-story__meta,
.story-card__meta,
.story-card__footer,
.article-kicker,
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.cta-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
}
.home-rail,
.latest-stack,
.article-rail {
  display: grid;
  gap: 18px;
}
.rail-box {
  padding: 22px;
  border-radius: 20px;
}
.popular-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.popular-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.popular-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-list span {
  color: var(--blue);
  font-weight: 800;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.subtle-link,
.subtle-text {
  font-size: 0.95rem;
}
.latest-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}
.story-card {
  overflow: hidden;
  border-radius: 20px;
}
.story-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}
.story-card__content {
  padding: 18px 18px 20px;
}
.story-card h3 {
  margin: 10px 0 10px;
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.story-card--featured h3 { font-size: 1.6rem; }
.story-card__meta a,
.article-kicker a,
.tag-row a,
.article-tags a,
.directory-card a,
.topic-count {
  color: var(--blue);
}
.story-card__footer {
  justify-content: space-between;
  margin-top: 14px;
}
.tag-row,
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-row a,
.article-tags a {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
}
.topics-grid,
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.topics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.topic-card {
  overflow: hidden;
  border-radius: 20px;
}
.topic-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.topic-card__body { padding: 16px 18px 20px; }
.topic-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}
.topic-count {
  display: inline-flex;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}
.section--research { padding-top: 18px; }
.research-strip {
  padding: 42px 34px;
  border-radius: 24px;
  background: #0f172a;
  color: #f8fafc;
}
.research-strip h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}
.research-strip p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: #cbd5e1;
}
.research-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.research-stats div {
  text-align: center;
}
.research-stats strong {
  display: block;
  font-size: 2.05rem;
  color: #22c55e;
  letter-spacing: -0.04em;
}
.research-stats span {
  display: block;
  color: #cbd5e1;
  margin-top: 6px;
}
.article-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr);
}
.article-shell {
  border-radius: 24px;
  padding: 28px;
}
.article-shell h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 12ch;
}
.article-author {
  margin: 12px 0 0;
  font-weight: 600;
}
.article-figure {
  margin: 24px 0;
}
.article-figure img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.article-body {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}
.article-body p {
  margin: 0;
  font-size: 1.06rem;
  color: #374151;
}
.mini-grid {
  display: grid;
  gap: 14px;
}
.mini-grid .story-card {
  box-shadow: none;
  border-color: var(--line);
}
.directory-card {
  border-radius: 18px;
  padding: 20px;
}
.directory-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.site-footer {
  margin-top: 32px;
  background: #0f172a;
  color: #e5e7eb;
  border: 0;
  box-shadow: none;
}
.footer-magazine {
  padding: 40px 0 26px;
}
.footer-magazine__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-magazine h3,
.footer-magazine h4 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.footer-brand-block h3 {
  color: #22c55e;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-links a,
.footer-brand-block p,
.footer-medical-disclaimer {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-medical-disclaimer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-medical-disclaimer strong {
  color: #cbd5e1;
  text-transform: uppercase;
}
.footer-copyright {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
}
@media (max-width: 1080px) {
  .hero-grid,
  .latest-grid,
  .article-layout,
  .topics-grid,
  .stories-grid,
  .footer-magazine__top,
  .research-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-story { grid-template-columns: 1fr; }
  .hero-story h1 { max-width: none; }
}
@media (max-width: 760px) {
  .site-header__inner,
  .section-head,
  .story-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-grid,
  .latest-grid,
  .article-layout,
  .topics-grid,
  .stories-grid,
  .footer-magazine__top,
  .research-stats {
    grid-template-columns: 1fr;
  }
  .hero-story__content,
  .rail-box,
  .article-shell,
  .research-strip {
    padding: 22px;
  }
}
