@font-face {
  font-family: "Open Sans";
  src: url("./open-sans-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/blog/open-sans-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/blog/open-sans-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --ink: #212322;
  --paper: #f5f5f1;
  --khaki: #d6c4a4;
  --muted: #535651;
  --border: #b7b7ab;
  --surface: #eeeee7;
  --mast-height: 4.125rem;
  --page-gutter: clamp(1.2rem, 7.8vw, 10rem);
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mast-height) + 1rem); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 "Open Sans", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: .5rem;
  left: .5rem;
  padding: .55rem .85rem;
  transform: translateY(-150%);
  color: var(--ink);
  background: var(--paper);
}
.skip-link:focus { transform: translateY(0); }
.article-mast {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--mast-height);
  padding: .5rem clamp(1.2rem, 5vw, 5rem);
  color: #212322;
  background: var(--khaki);
}
.article-brand {
  font-size: clamp(1.03rem, 2vw, 1.33rem);
  font-weight: 700;
  text-decoration: none;
}
.menu-toggle {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .45rem;
  padding: .25rem;
}
.menu-toggle:hover { border-color: currentColor; }
.menu-toggle img { width: 1.9rem; height: 1.9rem; object-fit: contain; }
.reading-progress {
  position: absolute;
  inset: auto 0 0;
  height: .18rem;
  overflow: hidden;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  background: #212322;
}
.article-menu {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(1.2rem, 7vw, 6.5rem);
  border: 0;
  color: #212322;
  background: var(--khaki);
}
.article-menu::backdrop { background: #212322; }
.article-menu[open] { display: flex; flex-direction: column; justify-content: safe center; }
body:has(.article-menu[open]) { overflow: hidden; }
.menu-close {
  align-self: end;
  border: 1px solid currentColor;
  border-radius: .45rem;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  background: transparent;
}
.article-menu nav { display: grid; gap: clamp(.4rem, 1.4vh, 1.2rem); }
.article-menu a {
  padding-block: .25rem;
  font-size: clamp(2rem, 7.8vw, 7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-decoration: none;
}
.article-menu a:hover, .article-menu a:focus-visible { text-decoration: underline; }
.article-shell { padding: clamp(3rem, 7.6vw, 7.25rem) var(--page-gutter) 0; }
.article-intro { max-width: 76rem; }
.blog-back { display: inline-block; margin-bottom: .9rem; }
.case-study-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .65rem;
  margin-bottom: .9rem;
}
.case-study-nav .blog-back { margin: 0; font-weight: 700; }

.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin: 0 0 .95rem;
  font-size: .81rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.categories a { text-decoration: none; }
.categories a:hover { color: var(--muted); }
.categories [aria-hidden] { color: var(--muted); }
.article-intro h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.65rem, 6.5vw, 7.5rem);
  font-weight: 700;
  line-height: 1.035;
  letter-spacing: -.061em;
  overflow-wrap: anywhere;
}
.article-intro .subtitle {
  max-width: 55ch;
  margin: clamp(.85rem, 2vw, 1.45rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.155rem, 2.15vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
}
.article-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.45rem;
  margin: 1.05rem 0 0;
}
.byline strong { font-weight: 700; }
.editors { color: var(--muted); }
.editors .credit-dot { padding-inline: .22rem; }
.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .55rem;
  margin: .38rem 0 0;
  font-size: .83rem;
}
.updated, .date-dot { color: var(--muted); }
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 45rem) minmax(13rem, 18.5rem);
  gap: clamp(2rem, 6.4vw, 8rem);
  align-items: start;
  margin-top: clamp(2.1rem, 4.2vw, 4rem);
}
.reading-column { min-width: 0; }
.article-body { font-size: clamp(1rem, 1.25vw, 1.17rem); line-height: 1.75; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3, .article-body h4 {
  margin: 1.6em 0 .55em;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: -.025em;
}
.article-body h2 { font-size: clamp(1.51rem, 2.2vw, 2rem); }
.article-body h3 { font-size: 1.28em; }
.article-body ul, .article-body ol { margin: .4em 0 1.25em; padding-left: 1.55em; }
.article-body li + li { margin-top: .52em; }
.article-body a { text-decoration-thickness: .075em; }
.article-body a:hover { text-decoration-thickness: .14em; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.article-body img { max-width: 100%; height: auto; }
.article-body mark { background: #f4d988; color: #212322; }
.sticky-ad { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--mast-height) + clamp(2.5rem, 8vh, 5rem)); }
.ad-card {
  display: block;
  padding: clamp(1.1rem, 2.05vw, 1.7rem);
  border-radius: 1rem;
  color: #212322;
  background: var(--khaki);
}
.ad-card img { display: block; width: 100%; height: auto; margin: 0 auto .65rem; }
.ad-title {
  margin: 0 0 .45rem;
  font-size: clamp(1.28rem, 1.6vw, 1.67rem);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -.044em;
}
.ad-summary { margin: 0 0 .9rem; font-size: .94rem; line-height: 1.5; }
.article-body .ad-title { margin: 0 0 .42rem; }
.article-body .ad-summary { margin: 0 0 .9rem; }
.ad-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .36rem .85rem;
  border: 1px solid #212322;
  border-radius: .45rem;
  font-weight: 700;
  text-decoration: none;
}
.ad-cta:hover, .ad-cta:focus-visible { background: #212322; color: #f5f5f1; }
.mobile-ad { display: none; }
.article-disclaimer {
  margin: 2.5rem 0 1.1rem;
  color: var(--muted);
  font-size: .825rem;
  line-height: 1.65;
}
.article-sources {
  border: 1px solid var(--ink);
  border-radius: .78rem;
  background: var(--paper);
  color: var(--ink);
}
.article-sources[open] { background: var(--ink); color: var(--paper); }
.article-sources summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.2rem;
  padding: .8rem 1.05rem;
  border-radius: calc(.78rem - 1px);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}
.article-sources summary::-webkit-details-marker { display: none; }
.article-sources summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: .31rem solid transparent;
  border-bottom: .31rem solid transparent;
  border-left: .42rem solid currentColor;
  margin-right: .17rem;
}
.article-sources[open] summary::before { transform: rotate(90deg); }
.article-sources:not([open]) summary:hover { background: var(--ink); color: var(--paper); }
.article-sources summary:focus-visible { outline-offset: -4px; }
.source-list { margin: 0; padding: 0 1.1rem .45rem; list-style: none; }
.source-list li { padding: .75rem 0 .85rem; border-top: 1px solid currentColor; }
.source-list p { margin: 0 0 .2rem; }
.source-list .source-claim { font-weight: 600; }
.source-list a { font-size: .94rem; }
.related-posts { margin: clamp(3rem, 6.5vw, 6rem) 0; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.related-posts h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 2.8vw, 2.3rem); line-height: 1.18; letter-spacing: -.035em; }
.related-posts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.related-posts a {
  display: block;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--surface);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.related-posts a:hover { text-decoration: underline; }
.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1.2rem;
  padding: 1.18rem var(--page-gutter);
  border-top: 1px solid var(--border);
  font-size: .855rem;
}
.article-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
@media (max-width: 55rem) {
  .article-intro h1 { max-width: 19ch; }
  .reading-layout { display: block; }
  .sticky-ad { display: none; }
  .mobile-ad { display: block; margin: 1.8rem 0; }
  .mobile-ad .ad-card img { max-width: 15rem; }
  .related-posts ul { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f1;
    --paper: #212322;
    --muted: #c5c7be;
    --border: #74776d;
    --surface: #2c2f2b;
  }
}
