@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121311;
  --muted: #5d6058;
  --paper: #f3f0e8;
  --paper-2: #ebe6da;
  --line: #cbc5b8;
  --acid: #d8ff5f;
  --acid-dark: #a9cf31;
  --white: #fffef9;
  --max: 1180px;
  --reading: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(18, 19, 17, .034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 19, 17, .034) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: .18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

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

.blog-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 240, 232, .92);
  backdrop-filter: blur(16px);
}

.blog-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -.03em;
}

.blog-brand svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 720;
}

.blog-nav-links a {
  text-decoration: none;
}

.blog-nav-links .blog-nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.blog-nav-links .blog-nav-cta:hover {
  background: var(--acid);
  color: var(--ink);
}

.blog-kicker,
.article-kicker,
.eyebrow,
.article-meta,
.card-meta,
.source-label,
.article-aside h2,
.blog-footer {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog-hero {
  padding: clamp(74px, 10vw, 138px) 0 76px;
  border-bottom: 1px solid var(--ink);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: end;
}

.blog-kicker,
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 700;
}

.blog-kicker::before,
.article-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid-dark);
  box-shadow: 0 0 0 5px rgba(169, 207, 49, .18);
  content: "";
}

.blog-hero h1,
.article-hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: .88;
  letter-spacing: -.075em;
}

.blog-hero h1 em,
.article-hero h1 em {
  display: block;
  font-family: "Newsreader", serif;
  font-weight: 400;
}

.blog-hero-copy {
  padding-left: 25px;
  border-left: 3px solid var(--acid-dark);
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.blog-hero-copy strong {
  display: block;
  margin-top: 20px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.blog-index {
  padding: 64px 0 100px;
}

.blog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.blog-section-head h2 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog-section-head span {
  color: var(--muted);
  font: 11px "IBM Plex Mono", monospace;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.post-card {
  grid-column: span 6;
  min-height: 430px;
  padding: clamp(25px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.post-card:nth-child(2),
.post-card:nth-child(3) {
  background: var(--ink);
  color: var(--white);
}

.post-card:hover {
  background: var(--acid);
  color: var(--ink);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 10px;
}

.post-card h2 {
  max-width: 620px;
  margin: auto 0 20px;
  font-family: "Newsreader", serif;
  font-size: clamp(35px, 5vw, 59px);
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.04em;
}

.post-card p {
  max-width: 560px;
  margin: 0;
  opacity: .76;
}

.post-card .card-arrow {
  align-self: flex-end;
  margin-top: 32px;
  font-size: 30px;
  line-height: 1;
}

.article-hero {
  padding: clamp(66px, 9vw, 122px) 0 58px;
  border-bottom: 1px solid var(--ink);
}

.article-hero h1 {
  max-width: 1060px;
  font-size: clamp(48px, 7.5vw, 98px);
}

.article-dek {
  max-width: 820px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 35px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.article-meta strong {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(220px, 300px);
  justify-content: space-between;
  gap: clamp(55px, 8vw, 110px);
  padding: 74px 0 110px;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 70px 0 20px;
  font-family: "Newsreader", serif;
  font-size: clamp(33px, 4.5vw, 47px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.article-body h3 {
  margin: 38px 0 12px;
  font-size: 20px;
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: #2e302c;
  font-size: 17px;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 27px;
  padding-left: 24px;
}

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

.article-body code {
  padding: .12em .3em;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font: .88em "IBM Plex Mono", monospace;
}

.article-body pre {
  overflow-x: auto;
  margin: 30px 0;
  padding: 25px;
  border-left: 6px solid var(--acid);
  background: var(--ink);
  color: var(--white);
  font: 13px/1.72 "IBM Plex Mono", monospace;
}

.article-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.callout {
  margin: 34px 0;
  padding: 25px 28px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--acid);
}

.callout strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

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

.comparison-scroll {
  overflow-x: auto;
  margin: 32px 0;
}

.comparison {
  width: 100%;
  border: 1px solid var(--ink);
  border-collapse: collapse;
  background: var(--white);
}

.comparison th,
.comparison td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison thead {
  background: var(--ink);
  color: var(--white);
  font: 10px "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.comparison thead th {
  border-color: #494b46;
}

.comparison tbody th {
  width: 22%;
  font-weight: 760;
}

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

.article-aside {
  position: sticky;
  top: 102px;
  align-self: start;
}

.article-aside section {
  padding: 22px 0;
  border-top: 1px solid var(--ink);
}

.article-aside section:last-child {
  border-bottom: 1px solid var(--ink);
}

.article-aside h2 {
  margin: 0 0 14px;
  font-size: 10px;
}

.article-aside a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.article-aside a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.source-list {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.source-list li {
  font-size: 14px;
}

.source-label {
  font-size: 10px;
}

.article-next {
  padding: 70px 0;
  border-top: 1px solid var(--ink);
  background: var(--acid);
}

.article-next a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.article-next span {
  font: 10px "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.article-next strong {
  font: 500 clamp(30px, 5vw, 55px)/1 "Newsreader", serif;
}

.article-next b {
  font-size: 40px;
}

.blog-footer {
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
}

.blog-footer .blog-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.blog-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.blog-footer a {
  color: var(--white);
}

@media (max-width: 800px) {
  .blog-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .blog-nav {
    min-height: 68px;
  }

  .blog-nav-links a:not(.blog-nav-cta) {
    display: none;
  }

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

  .blog-hero-copy {
    padding-left: 18px;
  }

  .post-card {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .article-layout {
    padding-top: 52px;
  }

  .article-aside {
    position: static;
    order: -1;
  }

  .comparison {
    min-width: 630px;
  }

  .article-next a {
    grid-template-columns: 1fr auto;
  }

  .article-next span {
    grid-column: 1 / -1;
  }

  .blog-footer .blog-shell {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
