:root {
  color-scheme: dark;
  background: #0a0b0b;
  color: #f0f0ea;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #0a0b0b;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: #0a0b0b;
  color: #f0f0ea;
}

button,
summary {
  font: inherit;
}

a {
  color: inherit;
}

.works-skip {
  position: fixed;
  z-index: 1200;
  top: 82px;
  left: 18px;
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: #f2f2eb;
  color: #111313;
  text-decoration: none;
  transform: translateY(-160px);
  transition: transform 180ms ease;
}

.works-skip:focus {
  transform: none;
}

[data-works-root] {
  --ink: #111313;
  --night: #0a0b0b;
  --night-2: #141615;
  --paper: #efefe7;
  --paper-2: #d9dad2;
  --quiet: #858983;
  --line-dark: rgba(242, 242, 235, 0.18);
  --line-light: rgba(17, 19, 19, 0.2);
  --signal: #f04d22;
  min-height: 100svh;
  opacity: 0;
  transition: opacity 220ms ease;
}

[data-works-root].is-ready {
  opacity: 1;
}

[data-works-root] *,
[data-works-root] *::before,
[data-works-root] *::after {
  box-sizing: border-box;
}

.project-mast {
  position: relative;
  min-height: 82svh;
  padding: 132px 6vw 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  grid-template-rows: 1fr auto;
  gap: 72px 7vw;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #0a0b0b;
  background-size: 100% 92px, 14.285% 100%, auto;
  border-bottom: 1px solid var(--line-dark);
}

.project-back {
  position: absolute;
  top: 96px;
  left: 6vw;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #858983;
  font: 500 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-decoration: none;
}

.project-back:hover,
.project-back:focus-visible {
  color: #f0f0ea;
}

.project-kicker,
.section-kicker,
.delivery-status,
.section-label,
.project-proof dt,
.delivery-facts dt,
.overview-facts dt {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0;
}

.project-kicker {
  margin: 0 0 32px;
  color: #858983;
  font-size: 10px;
  line-height: 1;
}

.project-mast h1 {
  max-width: 9ch;
  margin: 0;
  font-size: 112px;
  font-weight: 520;
  line-height: 0.9;
  letter-spacing: 0;
}

.project-mast h1 span {
  display: block;
}

.project-mast h1 span + span {
  color: #7f837e;
}

.project-summary {
  max-width: 40em;
  margin: 42px 0 0;
  color: #b9bcb6;
  font-size: 17px;
  line-height: 1.85;
}

.project-proof {
  align-self: end;
  margin: 0 0 4px;
}

.project-proof > p {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #858983;
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.project-proof > p span {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--signal);
}

.project-proof > strong {
  display: block;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
  color: #f0f0ea;
  font-size: 32px;
  font-weight: 520;
  line-height: 1;
}

.project-proof dl {
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.project-proof dl div,
.delivery-facts div,
.overview-facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.project-proof dt,
.delivery-facts dt,
.overview-facts dt {
  color: #747873;
  font-size: 9px;
  line-height: 1.5;
}

.project-proof dd {
  margin: 0;
  color: #d6d7d1;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.project-proof > a {
  min-height: 54px;
  margin-top: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #3a3d3b;
  color: #e3e4de;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.project-proof > a:hover,
.project-proof > a:focus-visible {
  border-color: #f0f0ea;
  background: #f0f0ea;
  color: #111313;
}

.chapter-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dark);
}

.chapter-nav a,
.overview-map a {
  min-height: 88px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line-dark);
  color: #777b76;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.chapter-nav a:last-child,
.overview-map a:last-child {
  border-right: 0;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible,
.chapter-nav a[aria-current="true"],
.overview-map a:hover,
.overview-map a:focus-visible {
  color: #f1f1eb;
  background: rgba(255, 255, 255, 0.035);
}

.chapter-nav small,
.overview-map small {
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.chapter-nav span,
.overview-map span {
  font-size: 13px;
}

.work-section {
  position: relative;
  scroll-margin-top: 82px;
  padding: 124px 6vw 112px;
  overflow: clip;
}

.section-label {
  position: absolute;
  top: 34px;
  left: 6vw;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 10px;
}

.section-label small {
  opacity: 0.48;
  font-size: 9px;
}

.delivery-section {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px 7vw;
  align-content: center;
  background:
    linear-gradient(90deg, var(--signal) 0 10px, transparent 10px),
    #111313;
}

.delivery-lead {
  align-self: end;
}

.delivery-status {
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a6aaa4;
  font-size: 10px;
}

.delivery-status span {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--signal);
}

.delivery-lead h2 {
  max-width: 12ch;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f0f0e9;
  font-size: 104px;
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: 0;
}

.delivery-lead > p:last-child {
  max-width: 39em;
  margin: 42px 0 0;
  color: #aeb2ac;
  font-size: 15px;
  line-height: 1.85;
}

.delivery-facts {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.delivery-facts dd {
  margin: 0;
  color: #f0f0ea;
  font-size: 15px;
  text-align: right;
}

.package-download {
  grid-column: 2;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f1f1eb;
  background: #f1f1eb;
  color: #111313;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.package-download:hover,
.package-download:focus-visible {
  background: var(--signal);
  color: #fff;
}

.package-manifest {
  grid-column: 1 / -1;
  margin-top: 16px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.package-manifest summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 44px;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.package-manifest summary::-webkit-details-marker {
  display: none;
}

.package-manifest summary small {
  color: #7b7f79;
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.package-manifest summary i {
  font-style: normal;
  font-size: 20px;
  text-align: right;
  transition: transform 160ms ease;
}

.package-manifest[open] summary i {
  transform: rotate(45deg);
}

.package-manifest ul,
.delivery-limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-manifest ul {
  padding-bottom: 28px;
  columns: 2;
  column-gap: 48px;
}

.package-manifest li {
  break-inside: avoid;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #b9bcb6;
  font: 500 11px/1.7 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.delivery-limits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) 1fr;
  gap: 7vw;
  padding-top: 44px;
}

.delivery-limits h3 {
  max-width: 12ch;
  margin: 0;
  font-size: 40px;
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: 0;
}

.delivery-limits li {
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
  color: #b9bcb6;
  font-size: 13px;
  line-height: 1.75;
}

.problem-section {
  min-height: 90svh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 7vw;
  align-content: center;
  background: var(--paper);
  color: var(--ink);
}

.section-kicker {
  margin: 0 0 28px;
  color: #a13d21;
  font-size: 10px;
  line-height: 1;
}

.problem-copy h2,
.section-head h2,
.overview-copy h2 {
  margin: 0;
  font-weight: 520;
  letter-spacing: 0;
}

.problem-copy h2 {
  max-width: 12ch;
  font-size: 72px;
  line-height: 0.98;
}

.problem-lead {
  max-width: 42em;
  margin: 40px 0 0;
  color: #555a55;
  font-size: 16px;
  line-height: 1.9;
}

.problem-copy blockquote {
  max-width: 39em;
  margin: 30px 0 0;
  padding: 18px 0 18px 24px;
  border-left: 2px solid var(--signal);
  color: #252827;
  font-size: 14px;
  line-height: 1.85;
}

.responsibility-list {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--line-light);
}

.responsibility-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}

.responsibility-list dt {
  color: #8a8e88;
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.responsibility-list dd {
  margin: 0;
  color: #3f443f;
  font-size: 13px;
  line-height: 1.75;
}

.versions-section {
  background: #d9dad2;
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 7vw;
  margin-bottom: 76px;
}

.section-head h2 {
  max-width: 10ch;
  font-size: 68px;
  line-height: 0.98;
}

.section-head > p {
  max-width: 36em;
  margin: 0;
  color: #5a5f59;
  font-size: 14px;
  line-height: 1.85;
}

.version-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: 6vw;
  align-items: end;
}

.paper-stack {
  position: relative;
  z-index: 1;
  min-height: 540px;
}

.paper {
  position: absolute;
  inset: 0;
  border: 1px solid #7d817b;
  background: #f8f8f1;
}

.paper-back {
  transform: translate(30px, -18px) rotate(2deg);
  background: #bcc0b8;
}

.paper-middle {
  transform: translate(15px, -8px) rotate(0.7deg);
  background: #e4e4dc;
}

.paper-front {
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 40px;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.paper-stack[data-active="0"] .paper-front {
  transform: translateX(-16px) rotate(-0.6deg);
}

.paper-stack[data-active="1"] .paper-front {
  transform: translateX(-6px) rotate(-0.2deg);
}

.paper-stack[data-active="2"] .paper-front {
  transform: translateX(7px) rotate(0.18deg);
}

.paper-stack[data-active="3"] .paper-front {
  transform: translateX(16px) rotate(0.5deg);
}

.paper-front > p:first-child {
  margin: 0;
  color: #9a371d;
  font: 600 12px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.paper-front h3 {
  grid-column: 1;
  max-width: 9ch;
  margin: auto 0 16px;
  font-size: 52px;
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: 0;
}

.paper-front > p:nth-of-type(2) {
  grid-column: 1;
  margin: 0;
  color: #5c615b;
  font-size: 14px;
  line-height: 1.75;
}

.paper-front dl {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin: 0;
}

.paper-front dl div {
  padding: 20px 0;
  border-top: 1px solid #b8bbb4;
}

.paper-front dt {
  margin-bottom: 8px;
  color: #9a371d;
  font: 600 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.paper-front dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.version-tabs {
  position: relative;
  z-index: 4;
  border-top: 1px solid #747873;
}

.version-tabs button {
  width: 100%;
  min-height: 82px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #aeb2aa;
  background: transparent;
  color: #6d726c;
  text-align: left;
  cursor: pointer;
}

.version-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.version-tabs button[aria-selected="true"]::after {
  content: "OPEN";
  justify-self: end;
  color: #9a371d;
  font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.version-tabs span {
  font: 600 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.version-tabs strong {
  font-size: 17px;
  font-weight: 520;
}

.process-section {
  background: var(--paper);
  color: var(--ink);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #777b75;
}

.process-list li {
  border-bottom: 1px solid #aeb2aa;
}

.process-list button {
  width: 100%;
  min-height: 96px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  align-items: center;
  gap: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.process-list button span {
  font: 600 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.process-list button strong {
  font-size: 36px;
  font-weight: 520;
  letter-spacing: 0;
}

.process-list button i {
  font-style: normal;
  font-size: 22px;
  transition: transform 160ms ease;
}

.process-list button[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.process-list li > div {
  max-width: 62em;
  padding: 0 0 30px 104px;
}

.process-list li > div p {
  margin: 0;
  color: #505650;
  font-size: 14px;
  line-height: 1.85;
}

.overview-section {
  background: #111313;
  color: #f0f0ea;
}

.overview-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 7vw;
}

.overview-copy .section-kicker {
  grid-column: 1 / -1;
  color: #858983;
}

.overview-copy h2 {
  max-width: 10ch;
  font-size: 72px;
  line-height: 0.98;
}

.overview-copy > p:last-child {
  margin: 0;
  color: #a6aaa4;
  font-size: 15px;
  line-height: 1.85;
}

.overview-facts {
  margin: 80px 0 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  border-top: 1px solid var(--line-dark);
}

.overview-facts div {
  min-height: 118px;
  padding: 22px;
  display: block;
  border-right: 1px solid var(--line-dark);
  border-bottom: 0;
}

.overview-facts div:first-child {
  padding-left: 0;
}

.overview-facts dd {
  margin: 18px 0 0;
  color: #d8d9d3;
  font-size: 13px;
  line-height: 1.65;
}

.overview-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line-dark);
}

.overview-map a {
  min-height: 126px;
}

.works-footer {
  min-height: 150px;
  padding: 36px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line-dark);
  background: #0a0b0b;
  color: #777b76;
  font-size: 11px;
}

.works-footer p {
  margin: 0;
}

.works-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.works-error {
  min-height: 100svh;
  padding: 40px;
  display: grid;
  place-content: center;
  text-align: center;
}

[data-works-root] button:focus-visible,
[data-works-root] a:focus-visible,
[data-works-root] summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 1000px) {
  .project-mast {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 116px;
  }

  .project-mast h1 {
    font-size: 84px;
  }

  .project-proof {
    max-width: 520px;
  }

  .chapter-nav {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
  }

  .delivery-section,
  .problem-section,
  .section-head,
  .version-workbench,
  .overview-copy {
    grid-template-columns: 1fr;
  }

  .delivery-section {
    min-height: auto;
  }

  .delivery-lead h2 {
    font-size: 78px;
  }

  .package-download {
    grid-column: 1;
  }

  .delivery-limits {
    grid-template-columns: 1fr;
  }

  .problem-copy h2,
  .section-head h2 {
    font-size: 58px;
  }

  .responsibility-list {
    margin-top: 40px;
  }

  .paper-stack {
    min-height: 570px;
  }

  .overview-copy h2 {
    font-size: 64px;
  }

  .overview-facts {
    grid-template-columns: 1fr 1fr;
  }

  .overview-facts div {
    border-bottom: 1px solid var(--line-dark);
  }
}

@media (max-width: 620px) {
  .project-back {
    top: 76px;
    left: 20px;
  }

  .project-mast,
  .work-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .project-mast {
    padding-top: 100px;
    padding-bottom: 24px;
    gap: 44px;
    background-size: 100% 80px, 25% 100%, auto;
  }

  .project-mast h1 {
    max-width: none;
    font-size: 52px;
    line-height: 0.98;
  }

  .project-summary {
    margin-top: 28px;
    font-size: 15px;
  }

  .chapter-nav {
    margin-right: -20px;
    margin-left: -20px;
    grid-template-columns: repeat(5, minmax(132px, 1fr));
  }

  .chapter-nav a {
    min-height: 82px;
  }

  .work-section {
    padding-top: 94px;
    padding-bottom: 80px;
  }

  .section-label {
    top: 28px;
    left: 20px;
  }

  .delivery-section {
    gap: 36px;
    background:
      linear-gradient(90deg, var(--signal) 0 6px, transparent 6px),
      #111313;
  }

  .delivery-status {
    margin-bottom: 26px;
  }

  .delivery-lead h2 {
    font-size: 54px;
    line-height: 0.94;
  }

  .delivery-lead > p:last-child {
    margin-top: 28px;
    font-size: 14px;
  }

  .delivery-facts div,
  .project-proof dl div {
    grid-template-columns: 78px 1fr;
  }

  .package-manifest summary {
    grid-template-columns: 1fr 44px;
  }

  .package-manifest summary small {
    display: none;
  }

  .package-manifest ul {
    columns: 1;
  }

  .delivery-limits {
    gap: 32px;
  }

  .delivery-limits h3 {
    font-size: 34px;
  }

  .problem-copy h2,
  .section-head h2 {
    font-size: 46px;
  }

  .problem-lead {
    margin-top: 30px;
    font-size: 15px;
  }

  .section-head {
    gap: 28px;
    margin-bottom: 52px;
  }

  .paper-stack {
    min-height: 620px;
  }

  .paper-back {
    transform: translate(10px, -12px) rotate(1deg);
  }

  .paper-middle {
    transform: translate(5px, -6px) rotate(0.4deg);
  }

  .paper-front {
    padding: 26px 22px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .paper-front h3,
  .paper-front > p:nth-of-type(2),
  .paper-front dl {
    grid-column: 1;
    grid-row: auto;
  }

  .paper-front h3 {
    margin: 28px 0 0;
    font-size: 42px;
  }

  .version-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .version-tabs button {
    min-height: 82px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 5px;
    border-right: 1px solid #aeb2aa;
  }

  .version-tabs button[aria-selected="true"]::after {
    display: none;
  }

  .process-list button {
    grid-template-columns: 48px 1fr 30px;
  }

  .process-list button strong {
    font-size: 24px;
  }

  .process-list li > div {
    padding-left: 72px;
  }

  .overview-copy h2 {
    font-size: 42px;
    line-height: 1.04;
  }

  .overview-facts,
  .overview-map {
    grid-template-columns: 1fr;
  }

  .overview-facts div,
  .overview-facts div:first-child {
    padding: 22px 0;
    border-right: 0;
  }

  .overview-map a {
    min-height: 82px;
  }

  .works-footer {
    padding-right: 20px;
    padding-left: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
