:root {
  --paper: #f8f7f3;
  --ink: #1a2a31;
  --muted: #56656b;
  --line: #d8d8d1;
  --acid: #285f78;
  --coral: #a95637;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--ink);
  color: var(--acid);
}
.blog-wrap {
  width: min(1380px, calc(100% - 48px));
  margin: auto;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(18px);
}
.blog-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}
.blog-nav nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.blog-nav nav a:not(.nav-cta) {
  padding: 10px 0;
}
.blog-nav nav a:hover,
.blog-nav nav a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-cta {
  color: white;
  background: var(--ink);
  border-radius: 99px;
  padding: 13px 20px;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--coral);
}

.eyebrow,
.post-meta,
.list-label,
.blog-cta span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--coral);
  border-radius: 50%;
}
.blog-hero {
  padding: 110px 0 96px;
}
.blog-hero h1 {
  max-width: 1100px;
  margin: 42px 0 28px;
  font-size: clamp(72px, 11vw, 160px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.07em;
}
.blog-hero h1 em,
.blog-cta em,
.article-head h1 em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}
.blog-hero p {
  max-width: 560px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.post-list {
  padding-bottom: 140px;
}
.list-label {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
}
.list-label span {
  color: var(--muted);
}
.post-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 70px;
  gap: 24px;
  padding: 42px 0 48px;
  border-top: 1px solid var(--line);
}
.post-number {
  color: var(--muted);
  font-size: 13px;
}
.post-meta {
  color: var(--muted);
  letter-spacing: 0.08em;
}
.post-meta span {
  margin: 0 10px;
}
.post-row h2 {
  max-width: 850px;
  margin: 18px 0 15px;
  font:
    400 clamp(42px, 5.5vw, 78px)/0.95 "Instrument Serif",
    serif;
  letter-spacing: -0.025em;
}
.post-row h2 a:hover {
  color: #365d70;
}
.post-row p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.post-arrow {
  justify-self: end;
  align-self: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  transition:
    transform 0.3s,
    background 0.3s;
}
.post-arrow:hover {
  background: var(--acid);
  transform: rotate(45deg);
}

.article-head {
  padding: 72px 0 55px;
}
.back-link {
  display: inline-block;
  margin-bottom: 75px;
  font-size: 14px;
}
.back-link:hover {
  text-decoration: underline;
}
.article-head h1 {
  max-width: 1130px;
  margin: 30px 0 30px;
  font-size: clamp(64px, 9vw, 125px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.article-head > p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font:
    400 clamp(25px, 2.9vw, 38px)/1.15 "Instrument Serif",
    serif;
}
.article-rule {
  border-bottom: 1px solid var(--ink);
}
.article-body {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 90px;
  font-size: 18px;
  line-height: 1.78;
}
.article-body p {
  margin: 0 0 30px;
}
.article-body p:first-child::first-letter {
  float: left;
  margin: 5px 10px 0 0;
  font:
    400 72px/0.85 "Instrument Serif",
    serif;
}
.article-body h2 {
  margin: 65px 0 18px;
  font:
    400 clamp(38px, 4vw, 54px)/1 "Instrument Serif",
    serif;
  letter-spacing: -0.025em;
}
.article-body h3 {
  margin: 45px 0 16px;
  font-size: 24px;
  line-height: 1.2;
}
.article-body a {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}
.article-body a:hover {
  color: #365d70;
}
.article-body ul,
.article-body ol {
  margin: 0 0 30px;
  padding-left: 25px;
}
.article-body li {
  padding-left: 8px;
  margin-bottom: 10px;
}
.article-body blockquote {
  margin: 40px 0;
  padding: 8px 0 8px 25px;
  border-left: 3px solid var(--coral);
  font:
    400 32px/1.18 "Instrument Serif",
    serif;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.article-body pre {
  overflow-x: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  border-radius: 12px;
}
.article-body code {
  font-size: 0.85em;
}
.article-end {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto 120px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.article-end a {
  color: var(--ink);
}
.related {
  padding-bottom: 120px;
}
.related > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.related a {
  min-height: 200px;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.related a:hover {
  background: var(--acid);
}
.related span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.related strong {
  font:
    400 36px/1 "Instrument Serif",
    serif;
}
.related i {
  align-self: end;
  font-style: normal;
}

.blog-cta {
  background: var(--acid);
  padding: 110px 0;
}
.blog-cta h2 {
  max-width: 1000px;
  margin: 40px 0 55px;
  font-size: clamp(70px, 10vw, 140px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.blog-cta a {
  border-bottom: 2px solid;
  padding-bottom: 8px;
  font-size: 22px;
}
.blog-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  border-top: 1px solid rgba(243, 239, 229, 0.35);
  padding-top: 26px;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-grid > div:last-child {
  text-align: right;
}
.footer-grid a:hover {
  color: var(--acid);
}
.footer-brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.footer-grid p,
.footer-grid span {
  color: rgba(243, 239, 229, 0.55);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 800px) {
  .blog-wrap {
    width: min(100% - 28px, 720px);
  }
  .blog-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
    gap: 18px;
  }
  .blog-nav nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 24px;
    white-space: nowrap;
  }
  .blog-hero {
    padding: 90px 0 70px;
  }
  .blog-hero h1 {
    font-size: clamp(66px, 15vw, 110px);
  }
  .blog-hero p {
    margin-left: 0;
  }
  .post-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .post-arrow {
    grid-column: 2;
    justify-self: start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}
@media (max-width: 560px) {
  .post-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .post-arrow {
    grid-column: 1;
  }
  .post-row h2 {
    font-size: 48px;
  }
  .article-head {
    padding-top: 50px;
  }
  .article-head h1 {
    font-size: clamp(58px, 13vw, 78px);
  }
  .back-link {
    margin-bottom: 55px;
  }
  .article-body {
    font-size: 17px;
    padding-top: 55px;
  }
  .article-end {
    flex-direction: column;
  }
  .related > div {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Match the main site's straightforward software-company typography. */
body {
  background-color: var(--paper);
  background-image: none;
}

.blog-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 40, 48, 0.92);
  color: #f7fafb;
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  box-shadow: 0 6px 24px rgba(17, 36, 53, 0.12);
}

.blog-nav {
  min-height: 78px;
  border-bottom: 0;
}

.nav-cta {
  border-radius: 9px;
  background: var(--coral);
  color: #ffffff;
}

.nav-cta:hover {
  background: #8e452d;
}

.blog-hero {
  padding: 90px 0 76px;
}

.blog-hero h1,
.article-head h1 {
  max-width: 950px;
  font-size: clamp(45px, 5.3vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.blog-hero h1 em,
.blog-cta em,
.article-head h1 em {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: inherit;
}

.blog-hero p {
  margin-left: 0;
}

.post-row h2,
.article-body h2,
.related strong {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.post-row h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.article-head > p {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.article-body p:first-child::first-letter {
  float: none;
  margin: 0;
  font: inherit;
}

.article-body h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.article-body blockquote {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  line-height: 1.5;
}

.related strong {
  font-size: 24px;
}

.blog-cta {
  background: var(--ink);
  color: #ffffff;
}

.blog-cta h2 {
  max-width: 780px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.12;
}

.blog-cta a {
  display: inline-flex;
  padding: 13px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--coral);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.footer-grid a:hover {
  color: #a9d2df;
}

@media (max-width: 560px) {
  .blog-hero h1,
  .article-head h1 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .post-row h2 {
    font-size: 28px;
  }

  .blog-wrap {
    width: calc(100% - 32px);
  }

  .blog-nav {
    gap: 10px;
    padding: 14px 0;
  }

  .blog-brand {
    font-size: 17px;
  }

  .blog-nav nav {
    flex-wrap: wrap;
    gap: 4px 16px;
    overflow: visible;
    white-space: normal;
  }

  .blog-nav nav a:not(.nav-cta) {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .blog-nav .nav-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
  }

  .article-body pre {
    max-width: 100%;
    overflow-x: auto;
  }
}
