:root {
  --background: #ffffff;
  --foreground: #151515;
  --gutter: 26px;
  --sidebar-width: 305px;
  --content-gap: 44px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.24;
  text-rendering: optimizeLegibility;
}

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

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

p,
h1,
h2,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.desktop-sidebar {
  position: fixed;
  inset: var(--gutter) auto var(--gutter) var(--gutter);
  z-index: 20;
  width: calc(var(--sidebar-width) - var(--gutter) * 2);
  overflow-y: auto;
}

.site-title {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-identity {
  margin-bottom: 22px;
}

.registered-site-name {
  margin: 3px 0 0;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.intro-copy {
  max-width: 285px;
  margin-bottom: 23px;
  font-weight: 600;
}

.project-nav {
  display: grid;
  gap: 22px;
}

.nav-heading {
  margin-bottom: 18px;
  font-weight: 600;
}

.project-nav li {
  line-height: 1.2;
}

.project-nav a,
.contact a {
  font-weight: 600;
}

.contact {
  margin-top: 22px;
  font-weight: 600;
}

.contact p {
  margin-bottom: 2px;
}

.mobile-header {
  display: none;
}

.project-list {
  margin-left: var(--sidebar-width);
  padding: var(--gutter) var(--gutter) 100px var(--content-gap);
}

.project {
  display: grid;
  grid-template-columns: minmax(265px, 0.58fr) minmax(480px, 1.42fr);
  gap: 44px;
  min-height: 100vh;
  padding-bottom: 120px;
  scroll-margin-top: var(--gutter);
}

.project:last-child {
  padding-bottom: 24px;
}

.site-footer {
  margin-left: var(--sidebar-width);
  padding: 0 var(--gutter) 34px var(--content-gap);
  color: #666666;
  font-size: 12px;
}

.project h2,
.project-meta {
  min-height: 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.24;
}

.project h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

.copy-block {
  margin-top: 12px;
}

.copy-block p + p {
  margin-top: 18px;
}

.chinese-copy {
  margin-top: 28px;
  line-height: 1.45;
}

.project-visuals {
  min-width: 0;
}

.project-meta {
  padding-bottom: 154px;
}

.media-stack {
  display: grid;
  gap: 24px;
}

.media-stack img,
.media-stack video {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: #f1f1ef;
}

.media-stack video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 1020px) {
  :root {
    --sidebar-width: 265px;
    --content-gap: 30px;
  }

  .project {
    grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.3fr);
    gap: 30px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 14px;
    line-height: 1.3;
  }

  .desktop-sidebar {
    display: none;
  }

  .mobile-header {
    display: block;
    padding: var(--gutter);
  }

  .mobile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .mobile-title-row .site-identity {
    margin-bottom: 18px;
  }

  .mobile-header .intro-copy {
    max-width: 440px;
  }

  .mobile-menu {
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }

  .mobile-menu summary {
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
  }

  .mobile-menu .project-nav {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 7px 0 16px;
  }

  .mobile-menu .nav-heading {
    margin-bottom: 8px;
  }

  .mobile-menu li {
    margin-top: 5px;
  }

  .project-list {
    margin-left: 0;
    padding: 34px var(--gutter) 72px;
  }

  .site-footer {
    margin-left: 0;
    padding: 0 var(--gutter) 24px;
  }

  .project {
    display: block;
    min-height: 0;
    padding-bottom: 92px;
    scroll-margin-top: 16px;
  }

  .project-copy {
    max-width: 620px;
  }

  .project h2,
  .project-meta {
    min-height: 0;
    font-size: 14px;
  }

  .project-meta {
    padding: 0;
    margin: 30px 0 14px;
  }

  .media-stack {
    gap: 12px;
  }
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.site-footer a {
  color: inherit;
}

.police-filing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.police-filing img {
  width: 20px;
  height: 20px;
  flex: none;
}
