:root {
  --background: #f8f8f6;
  --foreground: #111111;
  --muted: #5f5f5f;
  --line: rgba(17, 17, 17, 0.16);
  --line-strong: rgba(17, 17, 17, 0.34);
  --card: rgba(255, 255, 255, 0.94);
  --note: #f2efe8;
  --primary: #4f555c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

.content-shell {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.content-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.content-brand img {
  display: block;
  width: 3.25rem;
  height: auto;
}

.content-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--line-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(15rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.article-main {
  min-width: 0;
}

.article-kicker {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  text-wrap: balance;
}

h1 {
  max-width: 21ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0.8rem;
  padding-top: 1.4rem;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.5rem;
  padding-top: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.article-deck {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.article-body p,
.article-body li {
  font-size: 1rem;
  line-height: 1.82;
}

.article-body p {
  margin: 0.8rem 0;
}

.article-body ul,
.article-body ol {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.answer-box,
.health-note,
.cta-box {
  margin: 1.7rem 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.25rem 1.35rem;
  background: var(--note);
}

.answer-box p:first-child,
.health-note p:first-child {
  margin-top: 0;
}

.answer-box p:last-child,
.health-note p:last-child,
.cta-box p:last-child {
  margin-bottom: 0;
}

.health-note {
  background: rgba(255, 255, 255, 0.72);
}

.health-note strong {
  color: var(--foreground);
}

.article-aside {
  position: sticky;
  top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.2rem;
  background: var(--card);
}

.article-aside h2 {
  padding-top: 0;
  font-size: 1.05rem;
}

.article-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-aside li + li {
  margin-top: 0.8rem;
}

.article-aside a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.source-list {
  padding-left: 1.2rem;
  overflow-wrap: anywhere;
}

.source-list li {
  font-size: 0.88rem;
  line-height: 1.65;
}

.cta-box {
  display: grid;
  gap: 0.8rem;
  background: var(--foreground);
  color: #fff;
}

.cta-box h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.button-link {
  display: inline-flex;
  width: fit-content;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.knowledge-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}

.knowledge-hero h1 {
  max-width: 15ch;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0 4rem;
}

.knowledge-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--card);
}

.knowledge-card h2 {
  padding-top: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.knowledge-card p {
  color: var(--muted);
  line-height: 1.7;
}

.knowledge-card a {
  margin-top: auto;
  font-weight: 700;
}

.video-frame {
  margin: 2rem 0;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #111;
}

.transcript {
  border-left: 3px solid var(--line-strong);
  padding-left: 1.1rem;
}

.content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.content-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

@media (max-width: 820px) {
  .content-header,
  .content-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-nav {
    justify-content: flex-start;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .content-shell {
    width: min(100% - 1.4rem, 76rem);
  }

  .content-header {
    gap: 0.7rem;
  }

  .content-nav {
    gap: 0 0.85rem;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }
}
