@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("IBM Plex Mono"), local("IBMPlexMono"), url("../fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("IBM Plex Mono Medm"), local("IBMPlexMono-Medm"), url("../fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("../fonts/IBMPlexMono-Bold-Latin1.woff2") format("woff2");
}

:root {
  --pico-font-family: "Berkeley Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Noto Sans SC", "Microsoft YaHei", monospace;
  --pico-background-color: hsl(0 20% 99%);
  --pico-color: hsl(0 5% 26%);
  --pico-h1-color: hsl(0 5% 12%);
  --pico-h2-color: hsl(0 5% 12%);
  --pico-h3-color: hsl(0 5% 12%);
  --pico-primary: hsl(0 5% 12%);
  --pico-primary-hover: hsl(0 5% 18%);
  --pico-muted-color: hsl(0 4% 42%);
  --pico-muted-border-color: hsl(0 8% 88%);
  --pico-card-background-color: hsl(0 8% 97%);
  --pico-card-border-color: hsl(0 8% 88%);
  --oc-bg: hsl(0 20% 99%);
  --oc-weak: hsl(0 8% 97%);
  --oc-line: hsl(0 7% 84%);
  --oc-text: hsl(0 5% 26%);
  --oc-strong: hsl(0 5% 12%);
  --oc-soft: hsl(0 4% 52%);
  --oc-invert: hsl(0 15% 94%);
}

* {
  letter-spacing: 0;
}

html {
  background: var(--oc-bg);
}

body {
  min-height: 100vh;
  color: var(--oc-text);
  background: var(--oc-bg);
  font-weight: 500;
}

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

.container {
  width: min(100% - 32px, 1120px);
  padding-inline: 0;
}

.site-header {
  border-bottom: 1px solid var(--oc-line);
  background: color-mix(in srgb, var(--oc-bg) 92%, transparent);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--oc-strong);
  font-weight: 700;
  white-space: nowrap;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
}

.primary-menu a {
  color: var(--oc-soft);
  font-size: 14px;
  font-weight: 500;
}

.primary-menu a:hover,
.primary-menu a.active {
  color: var(--oc-strong);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--oc-strong);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

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

.page {
  padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 104px);
}

.hero {
  max-width: 820px;
  margin-bottom: clamp(44px, 8vw, 88px);
}

.label {
  margin-bottom: 20px;
  color: var(--oc-soft);
  font-size: 13px;
}

h1 {
  max-width: 980px;
  margin: 0 0 24px;
  color: var(--oc-strong);
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.98;
}

.lead {
  max-width: 700px;
  color: var(--oc-text);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.article-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--oc-line);
}

.article-item:first-child {
  padding-top: 0;
}

.article-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--oc-strong);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.35;
}

.article-item small,
.article-item time {
  color: var(--oc-soft);
  font-size: 14px;
  line-height: 1.7;
}

.article-item:hover strong {
  color: hsl(0 0% 0%);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.work-section + .work-section {
  margin-top: clamp(44px, 7vw, 80px);
}

.section-title {
  margin: 0 0 18px;
  color: var(--oc-strong);
  font-size: 18px;
  line-height: 1.35;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--oc-bg);
}

.work-card {
  display: block;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--oc-line);
  background: var(--oc-bg);
}

.work-card:hover {
  background: var(--oc-weak);
}

.work-card-body {
  margin: 0;
}

.work-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.work-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.work-meta {
  color: var(--oc-strong);
  font-size: 13px;
  white-space: nowrap;
}

.work-card p {
  margin: 0;
  color: var(--oc-soft);
  font-size: 14px;
  line-height: 1.8;
}

.article-page {
  max-width: 960px;
}

.article-page h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
}

.back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--oc-soft);
  font-size: 14px;
}

.back-link:hover {
  color: var(--oc-strong);
}

.article-meta {
  margin-bottom: 20px;
  color: var(--oc-soft);
  font-size: 14px;
}

.prose {
  padding-top: 40px;
  border-top: 1px solid var(--oc-line);
}

.prose p,
.prose li {
  color: var(--oc-text);
  font-size: 16px;
  line-height: 1.9;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: start;
  gap: clamp(36px, 7vw, 96px);
}

.about-box {
  max-width: 760px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-box.prose {
  padding-top: 0;
  border-top: 0;
}

.about-box p {
  max-width: 680px;
  margin-bottom: 26px;
}

.about-figure {
  justify-self: end;
}

.about-figure img {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-nav {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
  }

  .menu-toggle {
    display: block;
  }

  .primary-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 18px;
  }

  .primary-menu.open {
    display: flex;
  }

  .primary-menu a {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--oc-line);
    font-size: 16px;
  }

  .page {
    padding-block: 24px 72px;
  }

  .article-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-figure {
    justify-self: start;
    order: -1;
  }

  .about-figure img {
    width: min(72vw, 240px);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
