:root {
  --paper: #fbfaf7;
  --canvas: #f5f3ef;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5d6470;
  --line: rgba(17, 17, 17, 0.11);
  --blue: #007aff;
  --blue-dark: #005fc7;
  --green: #2ea76d;
  --purple: #8754ff;
  --orange: #ff8a3d;
  --max: 1120px;
  --reading: 760px;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

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

.reading-shell {
  width: min(calc(100% - 28px), var(--reading));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #245f95;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.article-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.article-label-row .eyebrow {
  margin-bottom: 0;
}

.content-type-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(0, 95, 199, 0.12);
  border-radius: 999px;
  color: #0757a6;
  background: rgba(0, 122, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  line-height: 1;
  text-transform: uppercase;
}

.article-hero,
.pillar-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 8%, rgba(0, 122, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, var(--paper));
}

.article-hero { padding: 82px 0 58px; }
.pillar-hero { padding: 76px 0 58px; }

.article-hero-grid,
.pillar-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 52px;
  align-items: center;
}

.article-hero h1,
.pillar-hero h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7.5vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.article-dek,
.pillar-dek {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.author-link:hover { text-decoration: underline; }

.author-link img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.hero-proof {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.11);
}

.hero-proof img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.hero-proof figcaption {
  padding: 12px 5px 1px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 830;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(0, 122, 255, 0.22);
}

.button.primary:hover { background: #006ee6; }

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.button:focus-visible,
.article-body a:focus-visible,
.card a:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
}

.article-main,
.pillar-main { padding: 66px 0 84px; }

.article-body {
  color: #24272b;
  font-size: 1.08rem;
}

.article-body > p:first-child {
  color: var(--ink);
  font-size: 1.26rem;
  line-height: 1.55;
}

.article-body h2 {
  margin: 54px 0 16px;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-body h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.25;
}

.article-body p,
.article-body ul,
.article-body ol { margin-bottom: 22px; }

.article-body li { margin-bottom: 9px; }

.article-body a {
  color: #005fc7;
  text-underline-offset: 3px;
}

.answer-box,
.example-box,
.limits-box,
.source-box {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(17, 17, 17, 0.05);
}

.answer-box {
  border-color: rgba(0, 122, 255, 0.22);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), #ffffff 70%);
}

.example-box {
  border-left: 5px solid var(--green);
}

.limits-box {
  border-left: 5px solid var(--orange);
}

.source-box {
  color: var(--muted);
  font-size: 0.94rem;
}

.answer-box h2,
.example-box h2,
.limits-box h2,
.source-box h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 34px;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 64px;
  margin: 0;
  padding: 18px 18px 18px 68px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 16px;
  left: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
  content: counter(steps);
}

.proof-section,
.related-section,
.author-section,
.cta-section,
.hub-section {
  padding: 66px 0;
  border-top: 1px solid var(--line);
}

.proof-section { background: var(--canvas); }

.proof-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
}

.proof-copy h2,
.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.7vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.proof-copy p,
.section-heading p { color: var(--muted); }

.proof-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
}

.proof-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--green);
  font-weight: 900;
  content: "✓";
}

.proof-media {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(17, 17, 17, 0.09);
}

.proof-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 19px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 15px 44px rgba(17, 17, 17, 0.05);
}

.card h3 {
  margin-bottom: 9px;
  font-size: 1.25rem;
  line-height: 1.22;
}

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

.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  color: #245f95;
  font-size: 0.77rem;
  font-weight: 820;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.card-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f5661;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  line-height: 1;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.card-details > * + *::before {
  margin-right: 6px;
  color: rgba(93, 100, 112, 0.55);
  content: "·";
}

.capability-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #164d34;
  background: rgba(46, 167, 109, 0.11);
  font-size: 0.79rem;
  font-weight: 780;
}

.author-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
}

.author-card img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card p { margin-bottom: 0; color: var(--muted); }

.cta-band {
  padding: clamp(30px, 6vw, 58px);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 0%, rgba(135, 84, 255, 0.6), transparent 40%),
    linear-gradient(120deg, #052852, #0068d7);
  box-shadow: 0 26px 80px rgba(0, 71, 150, 0.24);
}

.cta-band h2 {
  max-width: 16ch;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cta-band p {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .button.primary {
  color: #073a70;
  background: #ffffff;
  box-shadow: none;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.faq-list summary {
  padding: 19px 21px;
  cursor: pointer;
  font-weight: 820;
}

.faq-answer {
  padding: 0 21px 21px;
  color: var(--muted);
}

.hub-hero {
  padding: 92px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, rgba(135, 84, 255, 0.14), transparent 31%),
    radial-gradient(circle at 18% 2%, rgba(0, 122, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff, var(--paper));
}

.hub-hero h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hub-hero p {
  max-width: 750px;
  color: var(--muted);
  font-size: 1.2rem;
}

.cluster-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.cluster-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 780;
}

.cluster-section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.cluster-section:nth-of-type(even) { background: var(--canvas); }

.cluster-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  margin-bottom: 28px;
}

.cluster-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cluster-intro p { color: var(--muted); }

.article-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.article-card p { flex: 1; }

.read-link {
  display: inline-flex;
  margin-top: 19px;
  color: #005fc7;
  font-weight: 820;
}

.editorial-note {
  padding: 28px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), #ffffff 75%);
}

.editorial-note p:last-child { margin-bottom: 0; }

.policy-footer-note {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.policy-footer-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.policy-footer-note a {
  color: #005fc7;
  font-weight: 780;
  text-decoration: none;
}

.policy-footer-note a:hover { text-decoration: underline; }

.author-profile-heading {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  width: min(calc(100% - 28px), 900px);
  margin: 0 auto;
}

.author-profile-heading h1 {
  max-width: none;
}

.author-profile-photo {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

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

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer p { margin-bottom: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .article-hero-grid,
  .pillar-hero-grid,
  .proof-grid,
  .split-grid,
  .cluster-intro {
    grid-template-columns: 1fr;
  }

  .article-hero,
  .pillar-hero { padding-top: 58px; }

  .article-hero h1,
  .pillar-hero h1,
  .hub-hero h1 { max-width: none; }

  .hero-proof { width: min(100%, 330px); }
  .card-grid { grid-template-columns: 1fr; }
  .cluster-intro { gap: 8px; }

  .author-profile-heading {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .author-profile-photo {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 620px) {
  .article-hero h1,
  .pillar-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }

  .button-row { display: grid; }
  .button { width: 100%; }

  .author-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .author-profile-heading {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .author-profile-photo {
    width: 64px;
    height: 64px;
  }

  .footer-grid { display: grid; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
