:root {
  --ink: #111713;
  --muted: #39443e;
  --paper: #f4f1e8;
  --cyan: #25b4c5;
  --green: #c8f135;
  --grid: rgba(30, 42, 36, 0.07);
  --watermark: #8c918d;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 4px;
}

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

.site-header,
.site-footer,
.home > section,
.prose {
  padding-inline: max(24px, calc((100vw - var(--content)) / 2));
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 10px solid var(--green);
  border-bottom: 3px solid var(--ink);
  background: rgba(244, 241, 232, 0.96);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.site-mark__brace {
  display: grid;
  place-items: center;
  width: 48px;
  height: 34px;
  background: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  font-weight: 600;
}

.site-footer__github {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--green);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.site-footer__github:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.site-footer__github svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.hero {
  min-height: min(540px, 66vh);
  display: grid;
  align-content: center;
  border-bottom: 3px solid var(--ink);
}

.hero__eyebrow,
.section-label,
.article-meta {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
  margin-top: 12px;
  padding: 0 12px 8px;
  background: var(--cyan);
}

.hero__lede {
  max-width: 720px;
  margin: 32px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.content-band {
  padding-block: 72px;
  border-bottom: 3px solid var(--ink);
  background: rgba(244, 241, 232, 0.92);
}

.content-band--ink {
  color: var(--paper);
  background: var(--ink);
}

.content-band--request {
  background: var(--cyan);
}

.content-band--request p:not(.section-label) {
  max-width: 680px;
  font-size: 1.1rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 40px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-list,
.example-grid {
  display: grid;
  gap: 18px;
}

.article-card,
.example-card {
  display: grid;
  min-height: 190px;
  padding: 28px;
  border: 2px solid currentColor;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  align-items: center;
  gap: 32px;
}

.article-card img,
.article-hero {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
}

.prose img {
  max-width: 100%;
  height: auto;
}

.article-hero {
  width: min(560px, calc(100% - 48px));
  margin: 32px auto 48px;
}

.article-card:hover,
.example-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 8px 8px 0 var(--cyan);
}

.article-card h3,
.example-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.article-card p,
.example-card p {
  margin: 18px 0 0;
}

.article-card__meta {
  align-self: end;
  margin-top: 26px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.prose {
  min-height: 70vh;
  padding-right: 0;
  padding-bottom: 96px;
  padding-left: 0;
  background: rgba(244, 241, 232, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.04rem;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

.prose h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1;
}

.prose h2 {
  margin-top: 64px;
  font-size: 2rem;
}

.prose > :not(.article-header) {
  width: min(760px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.prose p,
.prose li {
  max-width: 72ch;
}

.article-header {
  width: 100%;
  margin-bottom: 44px;
  padding: 56px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 3px solid var(--ink);
  background: rgba(37, 180, 197, 0.2);
}

.article-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: var(--content);
  margin: 0 auto;
}

.article-kicker,
.article-date {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article-kicker {
  grid-column: 1 / -1;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.article-deck {
  max-width: 52ch;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.article-date svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prose .article-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 44px;
  padding: 20px 24px;
  border-left: 6px solid var(--green);
  background: var(--ink);
  color: var(--paper);
  font-size: 1.12rem;
}

.article-summary svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prose blockquote {
  margin: 36px 0;
  padding: 18px 24px;
  border-left: 10px solid var(--green);
  background: var(--ink);
  color: var(--paper);
}

.prose pre {
  max-width: 100%;
  padding: 24px;
  overflow-x: auto;
  border: 3px solid var(--ink);
  background: var(--cyan);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prose code {
  font-family: "IBM Plex Mono", monospace;
}

.button {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 20px;
  border: 3px solid var(--ink);
  background: var(--green);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.request-notice {
  margin: 36px 0;
  padding: 22px 24px;
  border-left: 10px solid var(--green);
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: var(--green);
  font-weight: 600;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 600px;
  }

  .article-header {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .article-header__inner {
    grid-template-columns: 1fr;
  }

  .prose h1 {
    font-size: 2.75rem;
  }

  .article-deck {
    font-size: 1.1rem;
  }

  .prose pre {
    padding: 18px;
    font-size: 0.82rem;
  }

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

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card,
  .example-card {
    min-height: 170px;
  }
}
