:root {
  --ink: #060c14;
  --paper: #e6ebf2;
  --cyan: #24c8e9;
  --green: #6dc330;
  --pink: #fe589a;
  --yellow: #efb72b;
  --display: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --gh-font-heading: var(--display);
  --gh-font-body: var(--display);
  --container: 1344px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgb(6 12 20 / 8%) 1.5px, transparent 1.6px);
  background-size: 12px 12px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

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

.skip-link:focus {
  transform: translateY(0);
}

.site-container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  padding-block: 32px;
}

.site-header__inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 28px;
}

.site-logo {
  flex: 0 0 auto;
  line-height: 0;
}

.site-logo img {
  width: 168px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.mobile-nav nav > a:not(.button) {
  position: relative;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
}

.site-nav a:hover,
.mobile-nav nav > a:not(.button):hover {
  color: #126f82;
}

.site-nav a[aria-current='page']::after,
.mobile-nav a[aria-current='page']::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  background: var(--cyan);
  content: '';
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  transition: color 140ms ease-out, background-color 140ms ease-out, transform 140ms ease-out;
}

.button:hover {
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-2px);
}

.button--small {
  min-height: 48px;
  padding-inline: 14px;
  font-size: 13px;
}

.button--yellow {
  color: var(--ink);
  background: var(--yellow);
}

.button--yellow:hover {
  color: var(--yellow);
  background: var(--ink);
}

.button--dark {
  color: var(--yellow);
  background: var(--ink);
}

.button--outline {
  min-height: 48px;
  color: var(--ink);
  background: transparent;
}

.button--outline:hover {
  color: var(--ink);
  background: var(--yellow);
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav summary {
  display: flex;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav nav {
  position: absolute;
  z-index: 40;
  top: 92px;
  right: 32px;
  display: grid;
  width: min(320px, calc(100vw - 64px));
  gap: 4px;
  padding: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--ink);
}

.journal-hero,
.archive-header {
  color: var(--paper);
  background: var(--ink);
}

.journal-hero__inner {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 72px;
  padding-block: 80px;
}

.journal-hero__copy {
  display: grid;
  max-width: 860px;
  gap: 28px;
}

.eyebrow,
.kicker,
.article-meta,
.post-card__meta,
.pagination,
.site-footer {
  font-family: var(--mono);
}

.eyebrow,
.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  border-radius: 50%;
  content: '';
}

.eyebrow--dark {
  color: var(--ink);
}

.journal-hero h1,
.archive-header h1,
.article-header h1,
.error-page h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.journal-hero h1 {
  max-width: 850px;
  font-size: 76px;
  line-height: 0.98;
}

.journal-hero__intro {
  max-width: 720px;
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.journal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.text-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.text-link--light {
  color: var(--paper);
}

.journal-hero__index {
  display: grid;
  align-content: center;
  border-top: 2px solid var(--paper);
}

.journal-hero__index span {
  padding-block: 18px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--paper);
}

.journal-hero__index span:nth-child(1) {
  color: var(--cyan);
}

.journal-hero__index span:nth-child(2) {
  color: var(--yellow);
}

.journal-hero__index span:nth-child(3) {
  color: var(--green);
}

.journal-hero__index span:nth-child(4) {
  color: var(--pink);
}

.post-feed {
  padding-block: 112px;
}

.section-stack {
  display: grid;
  gap: 56px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 64px;
}

.section-heading > div {
  display: grid;
  gap: 12px;
}

.section-heading h2,
.empty-feed h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.kicker {
  width: max-content;
  padding: 5px 9px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 4px;
}

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

.post-card {
  display: grid;
  min-width: 0;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.post-card__media {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: var(--paper);
  text-decoration: none;
  background: var(--cyan);
  border-bottom: 2px solid var(--ink);
}

.post-card:nth-child(3n + 2) .post-card__media {
  background: var(--yellow);
}

.post-card:nth-child(3n + 3) .post-card__media {
  background: var(--pink);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease-out;
}

.post-card:hover .post-card__media img {
  transform: scale(1.025);
}

.post-card__monogram {
  color: var(--ink);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
}

.post-card__content {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.post-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

.post-card__meta a,
.article-meta a {
  text-underline-offset: 4px;
}

.post-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.post-card__content > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.post-card__read {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.empty-feed {
  grid-column: 1 / -1;
  display: grid;
  min-height: 300px;
  align-content: center;
  gap: 18px;
  padding: 48px;
  border-block: 2px solid var(--ink);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
}

.pagination .button:last-child {
  justify-self: end;
}

.archive-header .site-container {
  display: grid;
  max-width: 1120px;
  gap: 20px;
  padding-block: 88px;
}

.archive-header h1 {
  font-size: 68px;
  line-height: 1;
}

.archive-header p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.archive-header__author {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
}

.archive-header__author > img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.marketing-page {
  --page-accent: var(--cyan);
}

.marketing-page--green {
  --page-accent: var(--green);
}

.marketing-page--pink {
  --page-accent: var(--pink);
}

.marketing-page--yellow {
  --page-accent: var(--yellow);
}

.marketing-page__hero {
  color: var(--paper);
  background: var(--ink);
  border-top: 8px solid var(--page-accent);
}

.marketing-page__hero-inner {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 72px;
  padding-block: 80px;
}

.marketing-page__hero-copy {
  display: grid;
  max-width: 860px;
  gap: 28px;
}

.marketing-page__hero-inner--compact {
  min-height: auto;
  grid-template-columns: minmax(0, 900px);
  padding-block: 72px;
}

.marketing-page__hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0;
}

.marketing-page__deck {
  max-width: 780px;
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
}

.marketing-page__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-page__signal {
  display: grid;
  border-block: 2px solid var(--paper);
}

.marketing-page__signal span {
  padding: 20px 0;
  color: var(--page-accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--paper);
}

.marketing-page__signal span:last-child {
  border-bottom: 0;
}

.marketing-page__feature {
  margin: 0;
}

.marketing-page__feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--paper);
  border-radius: 8px;
}

.marketing-page__feature figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
}

.marketing-page__content.article-content {
  width: min(calc(100% - 64px), 1040px);
  margin-block: 96px 120px;
}

.marketing-page__content > h2 {
  max-width: 900px;
  margin-top: 2.2em;
  font-size: 52px;
  line-height: 1.04;
}

.marketing-page__content > h2:first-child {
  margin-top: 0;
}

.marketing-page__content > h3 {
  margin-top: 2em;
  padding-left: 18px;
  font-size: 28px;
  border-left: 8px solid var(--page-accent);
}

.marketing-page__content > p,
.marketing-page__content > ul,
.marketing-page__content > ol,
.marketing-page__content > blockquote {
  max-width: 800px;
}

.marketing-page__content > hr {
  margin: 80px 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.marketing-page__content > ul,
.marketing-page__content > ol {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.marketing-page__content > ul li,
.marketing-page__content > ol li {
  padding: 18px 20px;
  background: rgb(255 255 255 / 45%);
  border: 1px solid rgb(6 12 20 / 28%);
  border-left: 6px solid var(--page-accent);
  border-radius: 6px;
}

.marketing-page__content .kg-callout-card {
  padding: 24px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.marketing-page__content .kg-button-card a.kg-btn {
  min-height: 52px;
  padding: 14px 20px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  border-radius: 8px;
}

.article-header {
  color: var(--paper);
  background: var(--ink);
}

.article-header__copy {
  display: grid;
  width: min(100%, 1040px);
  gap: 28px;
  margin-inline: auto;
  padding: 96px 32px;
}

.article-header h1 {
  font-size: 68px;
  line-height: 1.02;
}

.article-deck {
  max-width: 820px;
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.article-author {
  width: max-content;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.article-feature {
  width: min(calc(100% - 64px), 1280px);
  margin: 64px auto 0;
}

.article-feature img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.article-feature figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.article-content {
  width: min(calc(100% - 64px), 760px);
  margin: 72px auto;
  font-size: 19px;
  line-height: 1.72;
}

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

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2em 0 0.65em;
  line-height: 1.15;
  letter-spacing: 0;
}

.article-content h2 {
  font-size: 38px;
}

.article-content h3 {
  font-size: 28px;
}

.article-content h4 {
  font-size: 22px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content figure {
  margin: 0 0 1.5em;
}

.article-content a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-content blockquote {
  padding: 24px 0 24px 28px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  border-left: 6px solid var(--yellow);
}

.article-content code {
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgb(6 12 20 / 8%);
  border-radius: 4px;
}

.article-content pre {
  padding: 24px;
  overflow-x: auto;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
}

.article-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  border-radius: 8px;
}

.article-content table {
  display: block;
  width: 100%;
  margin-block: 28px;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--ink);
}

.article-content th {
  background: var(--yellow);
}

.article-content .kg-width-wide {
  width: min(1040px, calc(100vw - 64px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-footer {
  display: flex;
  width: min(calc(100% - 64px), 1040px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 96px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags a {
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 4px;
}

.article--page .article-content {
  margin-bottom: 112px;
}

.error-page__inner {
  display: grid;
  min-height: 620px;
  align-content: center;
  justify-items: start;
  gap: 24px;
}

.error-page h1 {
  max-width: 900px;
  font-size: 68px;
  line-height: 1.03;
}

.site-footer {
  color: var(--ink);
  background: var(--yellow);
  background-image: radial-gradient(circle, rgb(6 12 20 / 16%) 1.5px, transparent 1.6px);
  background-size: 12px 12px;
}

.site-footer__inner {
  display: grid;
  min-height: 132px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  line-height: 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.site-footer nav:last-child {
  justify-content: flex-end;
}

.site-footer a {
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-nav,
  .site-header__signin {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .journal-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .marketing-page__hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .journal-hero__index span:nth-child(odd) {
    border-right: 2px solid var(--paper);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 32px;
  }

  .site-footer nav:last-child {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    padding-block: 20px;
  }

  .site-logo img {
    width: auto;
    height: 48px;
  }

  .mobile-nav nav {
    top: 80px;
    right: 20px;
    width: calc(100vw - 40px);
  }

  .journal-hero__inner {
    min-height: 620px;
    padding-block: 64px;
  }

  .journal-hero h1 {
    font-size: 48px;
    line-height: 1;
  }

  .journal-hero__intro {
    font-size: 18px;
  }

  .journal-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-page__hero-inner {
    min-height: auto;
    gap: 48px;
    padding-block: 64px;
  }

  .marketing-page__hero h1 {
    font-size: 46px;
  }

  .marketing-page__deck {
    font-size: 18px;
  }

  .marketing-page__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-page__actions .text-link {
    text-align: center;
  }

  .marketing-page__content.article-content {
    width: calc(100% - 40px);
    margin-block: 64px 80px;
    font-size: 17px;
  }

  .marketing-page__content > h2 {
    font-size: 38px;
  }

  .marketing-page__content > h3 {
    font-size: 24px;
  }

  .marketing-page__content > hr {
    margin-block: 56px;
  }

  .journal-hero__actions .text-link {
    text-align: center;
  }

  .journal-hero__index {
    grid-template-columns: 1fr;
  }

  .journal-hero__index span:nth-child(odd) {
    border-right: 0;
  }

  .post-feed {
    padding-block: 72px;
  }

  .section-stack {
    gap: 40px;
  }

  .section-heading {
    text-align: center;
  }

  .section-heading > div {
    justify-items: center;
  }

  .section-heading h2,
  .empty-feed h2 {
    font-size: 36px;
  }

  .section-heading > p {
    font-size: 16px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-rows: 200px 1fr;
  }

  .post-card__content {
    min-height: 300px;
    padding: 24px;
  }

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

  .pagination {
    grid-template-columns: 1fr 1fr;
  }

  .pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .archive-header .site-container {
    padding-block: 64px;
  }

  .archive-header h1,
  .article-header h1,
  .error-page h1 {
    font-size: 44px;
  }

  .archive-header__author {
    grid-template-columns: 1fr;
  }

  .article-header__copy {
    padding: 64px 20px;
  }

  .article-deck {
    font-size: 18px;
  }

  .article-feature {
    width: calc(100% - 40px);
    margin-top: 32px;
  }

  .article-content {
    width: calc(100% - 40px);
    margin-block: 48px;
    font-size: 17px;
  }

  .article-content h2 {
    font-size: 32px;
  }

  .article-content h3 {
    font-size: 25px;
  }

  .article-content .kg-width-wide,
  .article-content .kg-width-full {
    width: 100vw;
  }

  .article-footer {
    width: calc(100% - 40px);
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 72px;
  }

  .empty-feed {
    min-height: 260px;
    padding: 32px 0;
    text-align: center;
  }
}
