:root {
  --wp-ink: #061e2e;
  --wp-deep: #08273a;
  --wp-violet: #5954dc;
  --wp-blue: #2f73df;
  --wp-cyan: #25cad1;
  --wp-paper: #ffffff;
  --wp-cloud: #f2f4f6;
  --wp-line: #d5dce2;
  --wp-wide: calc(100% - (var(--site-gutter) * 2));
  --wp-reading: 780px;
}

.web-push-magazine {
  background: var(--wp-paper);
  color: var(--wp-ink);
}

.web-push-magazine .site-footer {
  margin-top: 0;
}

.wp-page {
  overflow: hidden;
}

.wp-shell {
  width: var(--wp-wide);
  margin-inline: auto;
}

.wp-hero {
  min-height: 850px;
  padding: 112px 0 135px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(560px, 1.05fr);
  column-gap: clamp(58px, 6vw, 118px);
  row-gap: 54px;
  align-items: start;
}

.wp-hero > h1 {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(70px, 6.2vw, 108px);
  line-height: .96;
  letter-spacing: -.065em;
}

.wp-hero-copy > p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(20px, 1.55vw, 27px);
  line-height: 1.55;
  color: #304351;
}

.wp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.wp-actions .button {
  min-height: 58px;
  padding: 15px 26px;
  border-radius: 7px;
  font-size: 18px;
}

.wp-product-shot {
  margin: 0;
}

.wp-product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d9e0e5;
  border-radius: 18px;
  background: var(--wp-cloud);
}

.wp-product-shot figcaption {
  max-width: 700px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #5f6e78;
}

.wp-hero-shot {
  transform: translateY(36px);
}

.wp-hero-shot img {
  border-radius: 24px;
}

.wp-proof-band {
  min-height: 178px;
  padding: 36px max(32px, var(--site-gutter));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 34px;
  background: var(--wp-violet);
  color: #fff;
}

.wp-proof-band div {
  min-width: 0;
}

.wp-proof-band strong,
.wp-proof-band span {
  display: block;
}

.wp-proof-band strong {
  margin-bottom: 10px;
  font-size: clamp(27px, 2.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.wp-proof-band span {
  max-width: 290px;
  color: #eeeefe;
  font-size: 16px;
  line-height: 1.45;
}

.wp-editorial-intro {
  min-height: 0;
  padding: 140px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.wp-editorial-intro h2,
.wp-section-heading h2,
.wp-feature-copy h2,
.wp-sources h2,
.wp-cta h2 {
  margin: 0;
  letter-spacing: -.055em;
  color: var(--wp-ink);
}

.wp-editorial-intro h2 {
  max-width: 720px;
  font-size: clamp(58px, 5.7vw, 94px);
  line-height: .98;
}

.wp-editorial-intro p {
  max-width: 760px;
  margin: 0 0 30px;
  font-size: clamp(22px, 1.75vw, 29px);
  line-height: 1.55;
  color: #283a47;
}

.wp-standards,
.wp-use-cases,
.wp-compatibility,
.wp-failure,
.wp-faq {
  padding: 130px 0;
}

.wp-section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 74px;
}

.wp-section-heading h2 {
  max-width: 850px;
  font-size: clamp(52px, 4.7vw, 82px);
  line-height: 1;
}

.wp-section-heading > p {
  max-width: 640px;
  margin: 0;
  font-size: clamp(19px, 1.4vw, 24px);
  line-height: 1.55;
  color: #334653;
}

.wp-heading-wide {
  grid-template-columns: 1fr;
}

.wp-source-grid,
.wp-compat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wp-source-grid article,
.wp-compat-grid article,
.wp-use-case-grid article,
.wp-failure-grid article {
  border: 1px solid var(--wp-line);
  border-radius: 15px;
  background: #fff;
}

.wp-source-grid article {
  min-height: 330px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.wp-source-grid h3,
.wp-compat-grid h3,
.wp-use-case-grid h3,
.wp-failure-grid h3,
.wp-flow h3 {
  margin: 0;
  color: var(--wp-ink);
  letter-spacing: -.025em;
}

.wp-source-grid h3 {
  font-size: 28px;
}

.wp-source-grid p {
  margin: 24px 0 30px;
  font-size: 17px;
  line-height: 1.65;
  color: #3d4e59;
}

.wp-source-grid a,
.wp-sources a {
  color: #3f48ca;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.wp-source-grid a {
  margin-top: auto;
  font-weight: 750;
}

.wp-architecture {
  padding: 145px 0;
  background: var(--wp-cloud);
}

.wp-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.wp-flow article {
  min-height: 370px;
  padding: 34px 30px;
  border-radius: 16px;
  background: #fff;
}

.wp-flow h3 {
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.12;
}

.wp-flow p {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: #43545f;
}

.wp-honesty-note {
  margin-top: 22px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  border-radius: 15px;
  background: var(--wp-deep);
  color: #fff;
}

.wp-honesty-note strong {
  font-size: 20px;
}

.wp-honesty-note p {
  max-width: 920px;
  margin: 0;
  color: #d8e5eb;
  font-size: 17px;
  line-height: 1.6;
}

.wp-use-case-grid,
.wp-failure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wp-use-case-grid article {
  min-height: 330px;
  padding: 42px;
}

.wp-use-case-grid h3 {
  margin-bottom: 28px;
  font-size: clamp(29px, 2.4vw, 42px);
}

.wp-use-case-grid p {
  margin: 12px 0;
  font-size: 17px;
  line-height: 1.58;
  color: #3a4a55;
}

.wp-use-case-grid p strong {
  color: var(--wp-ink);
}

.wp-feature-story {
  min-height: 920px;
  padding: 145px 0;
}

.wp-feature-soft {
  background: var(--wp-cloud);
}

.wp-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  gap: clamp(70px, 8vw, 150px);
  align-items: center;
}

.wp-feature-reverse .wp-feature-copy {
  order: 2;
}

.wp-feature-reverse .wp-product-shot {
  order: 1;
}

.wp-feature-copy h2 {
  max-width: 690px;
  font-size: clamp(54px, 5vw, 86px);
  line-height: 1;
}

.wp-feature-copy > p {
  max-width: 700px;
  margin: 35px 0 0;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.58;
  color: #2f414d;
}

.wp-feature-copy ul {
  max-width: 700px;
  margin: 34px 0 0;
  padding-left: 24px;
}

.wp-feature-copy li {
  margin: 13px 0;
  padding-left: 5px;
  font-size: 17px;
  line-height: 1.55;
  color: #354752;
}

.wp-outline-link {
  display: inline-flex;
  min-height: 54px;
  margin-top: 30px;
  padding: 13px 21px;
  align-items: center;
  border: 2px solid var(--wp-ink);
  border-radius: 7px;
  color: var(--wp-ink);
  font-weight: 800;
  text-decoration: none;
}

.wp-outline-link:hover {
  background: var(--wp-ink);
  color: #fff;
}

.wp-compatibility {
  min-height: 720px;
}

.wp-compat-grid article {
  min-height: 330px;
  padding: 42px;
}

.wp-compat-grid h3 {
  font-size: clamp(30px, 2.5vw, 42px);
}

.wp-compat-grid p {
  margin: 25px 0;
  font-size: 18px;
  line-height: 1.62;
  color: #354752;
}

.wp-compat-grid span {
  display: block;
  color: #596a75;
  font-size: 15px;
  line-height: 1.55;
}

.wp-metric-list {
  margin: 34px 0 0;
}

.wp-metric-list div {
  margin-bottom: 20px;
}

.wp-metric-list dt {
  color: var(--wp-ink);
  font-size: 18px;
  font-weight: 850;
}

.wp-metric-list dd {
  margin: 5px 0 0;
  color: #4a5a64;
  font-size: 16px;
  line-height: 1.52;
}

.wp-failure {
  min-height: 760px;
}

.wp-failure-grid article {
  min-height: 230px;
  padding: 38px;
}

.wp-failure-grid h3 {
  font-size: 27px;
}

.wp-failure-grid p {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: #40515d;
}

.wp-faq {
  min-height: 1020px;
  background: #fff;
}

.wp-faq-list {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.wp-faq-list details {
  margin-bottom: 18px;
  border: 2px solid #7679e5;
  border-radius: 15px;
  background: #fff;
}

.wp-faq-list summary {
  padding: 30px 36px;
  cursor: pointer;
  color: #4149cf;
  font-size: clamp(19px, 1.65vw, 26px);
  font-weight: 800;
  line-height: 1.3;
}

.wp-faq-list details p {
  max-width: 930px;
  margin: 0;
  padding: 0 36px 34px;
  color: #354752;
  font-size: 17px;
  line-height: 1.65;
}

.wp-sources {
  margin-bottom: 140px;
  padding: 72px;
  border-radius: 22px;
  background: var(--wp-cloud);
}

.wp-sources h2 {
  max-width: 900px;
  font-size: clamp(44px, 4vw, 70px);
  line-height: 1;
}

.wp-sources > p {
  max-width: 960px;
  margin: 30px 0 0;
  color: #334651;
  font-size: 19px;
  line-height: 1.65;
}

.wp-sources ul {
  margin: 30px 0 0;
  padding-left: 22px;
}

.wp-sources li {
  margin: 13px 0;
  color: #3b4d58;
  font-size: 16px;
  line-height: 1.55;
}

.wp-cta {
  padding: 78px max(32px, var(--site-gutter));
  background: linear-gradient(105deg, #5c56dc 0%, #537ee0 48%, #25cbd1 100%);
}

.wp-cta > div {
  min-height: 470px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.wp-cta h2 {
  max-width: 1050px;
  font-size: clamp(54px, 5.4vw, 90px);
  line-height: 1;
}

.wp-cta p {
  max-width: 870px;
  margin: 30px 0 0;
  color: #30434f;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.55;
}

.wp-cta .wp-actions {
  justify-content: center;
}

@media (max-width: 1180px) {
  .wp-hero {
    min-height: 0;
    padding: 90px 0 110px;
    grid-template-columns: 1fr;
  }

  .wp-hero > h1 {
    max-width: none;
  }

  .wp-hero-shot {
    width: min(950px, 100%);
    transform: none;
  }

  .wp-editorial-intro,
  .wp-section-heading,
  .wp-heading-wide {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .wp-editorial-intro {
    min-height: 0;
  }

  .wp-source-grid,
  .wp-compat-grid {
    grid-template-columns: 1fr;
  }

  .wp-source-grid article,
  .wp-compat-grid article {
    min-height: 0;
  }

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

  .wp-feature-grid {
    grid-template-columns: 1fr;
  }

  .wp-feature-reverse .wp-feature-copy,
  .wp-feature-reverse .wp-product-shot {
    order: initial;
  }

  .wp-feature-copy h2,
  .wp-feature-copy > p {
    max-width: 920px;
  }
}

@media (max-width: 820px) {
  :root {
    --wp-wide: min(100% - 36px, 1460px);
  }

  .wp-hero {
    padding: 66px 0 78px;
  }

  .wp-hero > h1 {
    font-size: clamp(48px, 14vw, 74px);
  }

  .wp-hero-copy > p {
    font-size: 19px;
  }

  .wp-proof-band {
    padding: 52px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 22px;
  }

  .wp-editorial-intro,
  .wp-standards,
  .wp-use-cases,
  .wp-compatibility,
  .wp-failure,
  .wp-faq,
  .wp-architecture,
  .wp-feature-story {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .wp-editorial-intro h2,
  .wp-section-heading h2,
  .wp-feature-copy h2 {
    font-size: clamp(43px, 12vw, 66px);
  }

  .wp-editorial-intro p,
  .wp-feature-copy > p {
    font-size: 19px;
  }

  .wp-section-heading {
    margin-bottom: 46px;
  }

  .wp-use-case-grid,
  .wp-failure-grid,
  .wp-flow {
    grid-template-columns: 1fr;
  }

  .wp-flow article,
  .wp-use-case-grid article,
  .wp-failure-grid article {
    min-height: 0;
  }

  .wp-honesty-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wp-sources {
    width: var(--wp-wide);
    margin-bottom: 86px;
    padding: 42px 30px;
  }

  .wp-cta {
    padding: 28px 18px;
  }

  .wp-cta > div {
    min-height: 420px;
    padding: 56px 25px;
  }
}

@media (max-width: 520px) {
  .wp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wp-actions .button {
    width: 100%;
  }

  .wp-proof-band {
    grid-template-columns: 1fr;
  }

  .wp-proof-band span {
    max-width: none;
  }

  .wp-source-grid article,
  .wp-use-case-grid article,
  .wp-compat-grid article,
  .wp-failure-grid article,
  .wp-flow article {
    padding: 30px 25px;
  }

  .wp-faq-list summary {
    padding: 24px;
  }

  .wp-faq-list details p {
    padding: 0 24px 28px;
  }
}

/* Compact product typography and spacing. */
.wp-hero {
  padding-top: 28px;
  padding-bottom: 64px;
  row-gap: 34px;
}

.wp-hero > h1 {
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1;
  letter-spacing: -.052em;
}

.wp-hero-copy > p,
.wp-editorial-intro p,
.wp-section-heading > p,
.wp-feature-copy > p,
.wp-cta p {
  font-size: clamp(17px, 1.35vw, 20px);
}

.wp-editorial-intro h2,
.wp-section-heading h2,
.wp-feature-copy h2,
.wp-sources h2,
.wp-cta h2 {
  font-size: clamp(31px, 3.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.wp-editorial-intro,
.wp-standards,
.wp-use-cases,
.wp-compatibility,
.wp-failure,
.wp-faq,
.wp-architecture,
.wp-feature-story {
  min-height: 0;
  padding-top: 72px;
  padding-bottom: 72px;
}

.wp-section-heading {
  margin-bottom: 42px;
}

.wp-source-grid article,
.wp-flow article,
.wp-use-case-grid article,
.wp-compat-grid article,
.wp-failure-grid article {
  padding: 30px;
}

.wp-sources {
  margin-bottom: 72px;
  padding: 46px;
}

.wp-cta {
  padding-top: 42px;
  padding-bottom: 42px;
}

.wp-cta > div {
  min-height: 360px;
  padding: 54px;
}

@media (max-width: 640px) {
  .wp-hero > h1 {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  .wp-editorial-intro,
  .wp-standards,
  .wp-use-cases,
  .wp-compatibility,
  .wp-failure,
  .wp-faq,
  .wp-architecture,
  .wp-feature-story {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}

/* Match the guide library's single-column reading flow. Comparisons are
   stacked; the content shell stays aligned with the global navigation. */
.wp-hero,
.wp-proof-band,
.wp-source-grid,
.wp-flow,
.wp-honesty-note,
.wp-use-case-grid,
.wp-feature-grid,
.wp-compat-grid,
.wp-failure-grid {
  grid-template-columns: minmax(0, 1fr);
}

.wp-hero {
  min-height: 0;
  width: var(--shell);
  padding-top: 38px;
  column-gap: 0;
}

.wp-hero > h1 {
  grid-column: auto;
}

.wp-hero-shot {
  transform: none;
}

.wp-proof-band {
  gap: 22px;
}

.wp-proof-band span {
  max-width: none;
}

.wp-feature-reverse .wp-feature-copy,
.wp-feature-reverse .wp-product-shot {
  order: initial;
}

.wp-source-grid article,
.wp-flow article,
.wp-use-case-grid article,
.wp-compat-grid article,
.wp-failure-grid article {
  min-height: 0;
}

@media (max-width: 640px) {
  .wp-hero {
    padding-top: 28px;
  }
}

/* Web Push headings and introductions use their full editorial column. */
.wp-hero > h1,
.wp-hero-copy > p,
.wp-editorial-intro h2,
.wp-editorial-intro p,
.wp-section-heading h2,
.wp-section-heading > p,
.wp-feature-copy h2,
.wp-feature-copy > p,
.wp-sources h2,
.wp-sources > p,
.wp-cta h2,
.wp-cta p {
  max-width: none;
}

/* Section introductions keep the headline and copy aligned to the full content row. */
.wp-editorial-intro > div:last-child,
.wp-section-heading > p {
  max-width: none;
}

/* The editorial hero keeps its title and copy on full-width rows whenever a
   side-by-side product image would make the text column feel constrained. */
.wp-hero > h1 {
  text-wrap: wrap;
  overflow-wrap: normal;
  hyphens: none;
}

.wp-hero-copy,
.wp-hero-copy > p,
.wp-hero-shot {
  width: 100%;
  max-width: none;
  min-width: 0;
}

@media (max-width: 1280px) {
  .wp-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .wp-hero > h1 {
    grid-column: auto;
  }

  .wp-hero-shot {
    transform: none;
  }
}

@media (max-width: 520px) {
  :root {
    --wp-wide: calc(100% - 28px);
  }

  .wp-hero {
    row-gap: 34px;
  }

  .wp-hero > h1 {
    font-size: clamp(42px, 12.5vw, 60px);
    line-height: .98;
    letter-spacing: -.055em;
  }
}

/* Final compact overrides stay last so legacy responsive rules cannot restore
   the former oversized hero. */
.wp-hero {
  padding-top: 28px;
  padding-bottom: 64px;
  row-gap: 34px;
}

@media (max-width: 520px) {
  .wp-hero > h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1;
    letter-spacing: -.052em;
  }
}
