@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --page: oklch(94.9% 0.006 260);
  --sheet: oklch(98.4% 0.004 260);
  --surface: oklch(99.2% 0.003 260);
  --well: oklch(96.7% 0.005 260);
  --ink: oklch(20.5% 0.012 260);
  --ink-2: oklch(39% 0.014 260);
  --muted: oklch(61% 0.012 260);
  --faint: oklch(76% 0.01 260);
  --line: oklch(88% 0.008 260);
  --blue: oklch(58% 0.2 263);
  --violet: oklch(57% 0.22 292);
  --cyan: oklch(72% 0.13 216);
  --magenta: oklch(61% 0.22 326);
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-sheet: inset 0 1px 0 oklch(100% 0 0 / 0.8), 0 18px 40px -18px oklch(23% 0.018 260 / 0.22), 0 2px 8px oklch(23% 0.018 260 / 0.05);
  --shadow-button: inset 0 1px 0 oklch(100% 0 0 / 0.85), 0 2px 4px oklch(23% 0.018 260 / 0.08), 0 12px 24px -14px oklch(23% 0.018 260 / 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid oklch(58% 0.2 263 / 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font: 600 12px/1 var(--mono);
  transform: translateY(-160%);
  transition-property: transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-button);
  color: var(--ink);
  font: 600 11px/1 var(--mono);
  letter-spacing: -0.025em;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition-property: color, transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  color: var(--blue);
  transform: translateY(-2px) scale(1);
}

.button:active {
  transform: translateY(0) scale(0.96);
  box-shadow: inset 0 1px 2px oklch(23% 0.018 260 / 0.13);
}

.container {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 40%, var(--violet) 72%, var(--magenta));
  box-shadow: 0 0 0 5px oklch(58% 0.2 263 / 0.08);
  content: "";
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
  padding-block: clamp(88px, 12vw, 164px) clamp(72px, 9vw, 124px);
}

.blog-hero h1,
.hub-hero h1,
.article-header h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(3.2rem, 7.7vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.91;
  text-wrap: balance;
}

.blog-hero__side {
  padding-bottom: 0.45em;
}

.blog-hero__side p,
.hub-hero__dek,
.article-dek {
  margin: 0;
  max-width: 57ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.blog-hero__note {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.01em;
}

.section {
  padding-block: clamp(72px, 10vw, 132px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: clamp(44px, 7vw, 84px);
}

.section-heading h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading p {
  justify-self: end;
  margin: 0;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

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

.desk-link {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.72fr) minmax(260px, 1.28fr) 40px;
  gap: 28px;
  align-items: center;
  min-height: 164px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.desk-link > * {
  transition-property: color, transform;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.desk-link:hover .desk-link__title,
.desk-link:hover .desk-link__arrow {
  color: var(--blue);
}

.desk-link:hover .desk-link__arrow {
  transform: translateX(5px);
}

.desk-link__number,
.desk-link__status {
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
}

.desk-link__number {
  font-variant-numeric: tabular-nums;
}

.desk-link__title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.desk-link__copy {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.desk-link__status {
  display: block;
  margin-top: 8px;
}

.desk-link__arrow {
  justify-self: end;
  font: 500 24px/1 var(--mono);
}

.empty-state {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: end;
  padding: clamp(38px, 6vw, 74px);
  border-radius: 24px;
  background: var(--well);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.85), inset 0 0 0 1px oklch(23% 0.018 260 / 0.035);
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.empty-state__copy {
  justify-self: end;
}

.empty-state p {
  margin: 0 0 22px;
  max-width: 45ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hub-hero {
  padding-block: clamp(82px, 11vw, 144px) clamp(62px, 8vw, 108px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  color: var(--muted);
  font: 500 10px/1.5 var(--mono);
}

.breadcrumbs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.hub-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
}

.hub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: end;
}

.hub-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.hub-topic {
  min-height: 220px;
  padding: 28px 32px 34px 0;
  border-bottom: 1px solid var(--line);
}

.hub-topic + .hub-topic {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.hub-topic span {
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}

.hub-topic h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hub-topic p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.article-header {
  width: min(920px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(72px, 10vw, 126px) clamp(48px, 7vw, 82px);
}

.article-header h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.article-dek {
  margin-top: 34px;
  max-width: 65ch;
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  color: var(--muted);
  font: 500 10px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
}

.article-lead-media {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto clamp(24px, 4vw, 52px);
}

.article-lead-media img,
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px oklch(23% 0.018 260 / 0.05), 0 18px 40px -24px oklch(23% 0.018 260 / 0.24);
}

.article-lead-media figcaption,
.article-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font: 500 10px/1.6 var(--mono);
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 700px);
  gap: clamp(48px, 8vw, 110px);
  justify-content: center;
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.article-toc {
  position: sticky;
  top: 28px;
  align-self: start;
}

.article-toc strong {
  display: block;
  margin-bottom: 16px;
  font: 600 10px/1.4 var(--mono);
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  min-height: 40px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--ink);
}

.article-body {
  min-width: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.82;
}

.article-body > * {
  max-width: 70ch;
}

.article-body h2,
.article-body h3 {
  color: var(--ink);
  text-wrap: balance;
  scroll-margin-top: 40px;
}

.article-body h2 {
  margin: 2.8em 0 0.8em;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.article-body h3 {
  margin: 2.2em 0 0.65em;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-block: 0 1.35em;
  text-wrap: pretty;
}

.article-body li + li {
  margin-top: 0.45em;
}

.article-body a {
  color: var(--blue);
}

.article-figure {
  margin: 2.6em 0;
}

.article-figure a {
  display: block;
  border-radius: 20px;
  cursor: zoom-in;
}

.article-table-wrap {
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-2);
  font-size: 15px;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-table-wrap th:last-child,
.article-table-wrap td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.article-table-wrap th {
  color: var(--ink);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-table-wrap tr:last-child td {
  border-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.article-pullquote {
  margin: 2.5em 0;
  padding: 28px 30px;
  border-left: 4px solid var(--blue);
  border-radius: 0 18px 18px 0;
  background: var(--well);
  color: var(--ink);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

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

.article-summary {
  margin-bottom: 48px;
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--well);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.8), inset 0 0 0 1px oklch(23% 0.018 260 / 0.04);
}

.article-summary strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font: 600 10px/1.4 var(--mono);
  text-transform: uppercase;
}

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

.article-cta {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--ink);
}

.article-cta h2 {
  margin-top: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-top: clamp(72px, 10vw, 130px);
  padding: 44px clamp(24px, 5vw, 72px);
  background: var(--ink);
  color: var(--surface);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.site-footer p {
  margin: 0;
  max-width: 56ch;
  color: oklch(81% 0.008 260);
  font-size: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: oklch(81% 0.008 260);
  font: 500 10px/1.4 var(--mono);
}

.footer-links a:hover {
  color: var(--surface);
}

@media (max-width: 900px) {
  .blog-hero,
  .hub-hero__grid,
  .section-heading,
  .empty-state {
    grid-template-columns: 1fr;
  }

  .section-heading p,
  .empty-state__copy {
    justify-self: start;
  }

  .desk-link {
    grid-template-columns: 48px 1fr 32px;
  }

  .desk-link__copy {
    grid-column: 2 / 3;
  }

  .desk-link__arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .hub-topics {
    grid-template-columns: 1fr;
  }

  .hub-topic + .hub-topic {
    padding-left: 0;
    border-left: 0;
  }

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

  .article-toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .container,
  .article-header,
  .article-layout,
  .article-lead-media {
    width: calc(100% - 40px);
  }

  .blog-hero h1,
  .hub-hero h1,
  .article-header h1 {
    letter-spacing: -0.065em;
  }

  .desk-link {
    grid-template-columns: 36px 1fr 24px;
    gap: 14px;
  }

  .desk-link__copy {
    font-size: 13px;
  }

  .empty-state {
    gap: 36px;
    padding: 30px 24px;
  }

  .article-body {
    font-size: 16px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
