:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f0f3f7;
  --text: #20252d;
  --muted: #69717d;
  --faint: #969eaa;
  --line: #dfe4ea;
  --line-strong: #cfd6df;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8f0ff;
  --code: #303945;
  --shadow: 0 22px 60px rgb(24 39 75 / 12%);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191d;
  --surface: #1d2025;
  --surface-soft: #242830;
  --text: #eef1f5;
  --muted: #a5adb8;
  --faint: #737c88;
  --line: #30353d;
  --line-strong: #3c424c;
  --blue: #6d9eff;
  --blue-dark: #8ab2ff;
  --blue-soft: #202e49;
  --code: #d8dde5;
  --shadow: 0 24px 70px rgb(0 0 0 / 32%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  transform: translateY(-150%);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__text strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.menu-button {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: clamp(18px, 2.3vw, 34px);
}

.header-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  transition: color 150ms ease;
}

.header-nav__item::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 150ms ease, transform 150ms ease;
}

.header-nav__item:hover,
.header-nav__item.is-active {
  color: var(--blue);
}

.header-nav__item.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.topbar__actions {
  display: flex;
  align-items: center;
}

.topbar__actions {
  gap: 4px;
}

.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.hero {
  min-height: calc(100vh - 64px);
  padding: clamp(92px, 14vh, 150px) clamp(30px, 8vw, 132px) 90px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  position: relative;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--bg) 5%, color-mix(in srgb, var(--bg) 92%, transparent) 55%, var(--bg));
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(52px, 8vw, 106px);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.accent {
  color: var(--blue);
}

.hero__lede {
  max-width: 720px;
  margin: 42px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.highlight {
  background: linear-gradient(transparent 61%, var(--blue-soft) 61%);
}

.hero__copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 15px;
  height: 15px;
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button--quiet {
  background: var(--surface);
  color: var(--text);
}

.button--quiet:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(60px, 10vh, 110px);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 14px;
  height: 14px;
}

.content-column {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.note-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-heading__slash {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
}

.section-heading__link {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-heading__link:hover {
  color: var(--blue);
}

.section-heading__link span {
  font-size: 12px;
}

.prose {
  max-width: 720px;
}

.prose > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.prose > p:first-child {
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 36px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 7px 7px 0;
  background: var(--surface-soft);
}

.callout__icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.callout strong {
  color: var(--text);
}

.updated {
  margin: -19px 0 26px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.focus-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list > li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px dashed var(--line);
}

.focus-list > li:last-child {
  border-bottom: 0;
}

.focus-list > li > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.focus-list__body h3 {
  margin: -5px 0 9px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.focus-list p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.focus-list__body > .tech-list {
  margin-top: 17px;
}

.focus-groups {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.focus-groups > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.focus-groups dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.focus-groups dd {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  gap: 18px;
  align-items: start;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px rgb(24 39 75 / 6%);
  transform: translateY(-2px);
}

.project-card__number {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
}

.project-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-card h3 {
  margin: -4px 0 0;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.project-card p {
  max-width: 650px;
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin: 0;
  padding: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  list-style: none;
}

.tech-list li::before {
  margin-right: 6px;
  color: var(--blue);
  content: "#";
}

.project-card__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: var(--faint);
  font-size: 17px;
}

.project-card__arrow:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.article-list {
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 74px 1fr 48px;
  gap: 24px;
  align-items: baseline;
  padding: 25px 2px;
  border-bottom: 1px solid var(--line);
}

.article-row:hover h3 {
  color: var(--blue);
}

.article-row time,
.article-row__read {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.article-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 150ms ease;
}

.article-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.article-row__read {
  text-align: right;
}

.article-page {
  min-height: calc(100vh - 64px);
}

.article-header,
.article-content {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

.article-header {
  padding: clamp(72px, 11vw, 120px) 0 54px;
  border-bottom: 1px solid var(--line);
}

.article-header__back {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.article-header__back:hover {
  color: var(--blue);
}

.article-header h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.article-header__description {
  max-width: 680px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-header__meta {
  display: flex;
  gap: 20px;
  margin-top: 27px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-header__meta span::before {
  margin-right: 20px;
  color: var(--blue);
  content: "•";
}

.article-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  list-style: none;
}

.article-content {
  padding: 62px 0 110px;
  color: var(--muted);
  font-size: 17px;
}

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

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.025em;
  scroll-margin-top: 88px;
}

.article-content h2 {
  margin: 2.5em 0 0.75em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
}

.article-content h3 {
  margin: 2em 0 0.65em;
  font-size: 22px;
}

.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 1.8em 0 0.6em;
  font-size: 18px;
}

.article-content p {
  margin: 0 0 1.45em;
}

.article-content strong {
  color: var(--text);
  font-weight: 650;
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--blue);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.article-content li {
  margin: 0.35em 0;
  padding-left: 0.3em;
}

.article-content li::marker {
  color: var(--blue);
}

.article-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-style: italic;
}

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

.article-content code {
  padding: 0.15em 0.38em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--code);
  font-family: var(--mono);
  font-size: 0.84em;
}

.article-content pre {
  margin: 2em 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  line-height: 1.65;
}

.article-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-content hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-content .table-wrap {
  margin: 2em 0;
  overflow-x: auto;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.article-content th {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 650;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  margin: 100px 0;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.contact-card > div > p:last-child {
  max-width: 520px;
  margin: 15px 0 0;
  color: var(--muted);
}

.contact-card__actions {
  min-width: 160px;
}

.contact-card__actions .button {
  width: 100%;
}

.contact-card__email {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.contact-card__email:hover {
  color: var(--blue);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 13px;
}

.social-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.social-links a:hover {
  color: var(--blue);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.footer p {
  margin: 0;
}

.footer a {
  justify-self: end;
}

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

@media (max-width: 860px) {
  .menu-button {
    display: grid;
  }

  .menu-button__close {
    display: none;
  }

  body.menu-open .menu-button__open {
    display: none;
  }

  body.menu-open .menu-button__close {
    display: block;
  }

  .topbar {
    padding: 0 20px;
  }

  .header-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    box-shadow: 0 16px 32px rgb(24 39 75 / 10%);
    backdrop-filter: blur(16px);
  }

  body.menu-open .header-nav {
    display: flex;
  }

  .header-nav__item {
    height: auto;
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .header-nav__item:last-child {
    border-bottom: 0;
  }

  .header-nav__item::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 92px clamp(24px, 7vw, 72px) 72px;
  }

  .footer {
    padding-inline: 24px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    font-size: 15px;
  }

  .topbar {
    height: 58px;
  }

  .header-nav {
    top: 58px;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero__lede {
    margin-top: 32px;
  }

  .hero__copy {
    font-size: 15px;
  }

  .hero__meta {
    gap: 12px 20px;
    margin-top: 58px;
  }

  .content-column {
    width: min(100% - 36px, 900px);
  }

  .note-section {
    padding: 72px 0;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .prose > p:first-child {
    font-size: 18px;
  }

  .focus-list > li {
    grid-template-columns: 28px 1fr;
    gap: 8px;
  }

  .focus-groups > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-card {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 20px 17px;
  }

  .project-card__arrow {
    display: none;
  }

  .article-row {
    grid-template-columns: 58px 1fr;
    gap: 13px;
    padding: 21px 0;
  }

  .article-row__read {
    display: none;
  }

  .article-row p {
    margin-top: 7px;
    line-height: 1.5;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 72px 0;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer p:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
